Skip to content
Python

refinements

DeepBeepMeepa45fcecc615c
diff --git a/profiles/qwen/Lightning Qwen Edit v1.0 - 4 Steps.json b/profiles/qwen/Lightning Qwen Edit v1.0 - 4 Steps.json
new file mode 100644
index 0000000..5bdc32c
--- /dev/null
+++ b/profiles/qwen/Lightning Qwen Edit v1.0 - 4 Steps.json
@@ -0,0 +1,8 @@
+{
+ "activated_loras": [
+ "https://huggingface.co/DeepBeepMeep/Qwen_image/resolve/main/loras_accelerators/Qwen-Image-Edit-Lightning-4steps-V1.0-bf16.safetensors"
+ ],
+ "loras_multipliers": "1",
+ "num_inference_steps": 4,
+ "guidance_scale": 1
+}
diff --git a/profiles/qwen/Lightning Qwen Edit v1.0 - 8 Steps.json b/profiles/qwen/Lightning Qwen Edit v1.0 - 8 Steps.json
new file mode 100644
index 0000000..10a72a9
--- /dev/null
+++ b/profiles/qwen/Lightning Qwen Edit v1.0 - 8 Steps.json
@@ -0,0 +1,8 @@
+{
+ "activated_loras": [
+ "https://huggingface.co/DeepBeepMeep/Qwen_image/resolve/main/loras_accelerators/Qwen-Image-Edit-Lightning-8steps-V1.0-bf16.safetensors"
+ ],
+ "loras_multipliers": "1",
+ "num_inference_steps": 8,
+ "guidance_scale": 1
+}
diff --git a/profiles/qwen/Lightning v1.0 - 4 Steps.json b/profiles/qwen/Lightning Qwen v1.0 - 4 Steps.json
similarity index 100%
rename from profiles/qwen/Lightning v1.0 - 4 Steps.json
rename to profiles/qwen/Lightning Qwen v1.0 - 4 Steps.json
diff --git a/profiles/qwen/Lightning v1.1 - 8 Steps.json b/profiles/qwen/Lightning Qwen v1.1 - 8 Steps.json
similarity index 100%
rename from profiles/qwen/Lightning v1.1 - 8 Steps.json
rename to profiles/qwen/Lightning Qwen v1.1 - 8 Steps.json
diff --git a/wgp.py b/wgp.py
index 35f61a9..faf0a5c 100644
--- a/wgp.py
+++ b/wgp.py
@@ -78,7 +78,7 @@ global_queue_ref = []
AUTOSAVE_FILENAME = "queue.zip"
PROMPT_VARS_MAX = 10
target_mmgp_version = "3.6.7"
-WanGP_version = "9.3"
+WanGP_version = "9.31"
settings_version = 2.39
max_source_video_frames = 3000
prompt_enhancer_image_caption_model, prompt_enhancer_image_caption_processor, prompt_enhancer_llm_model, prompt_enhancer_llm_tokenizer = None, None, None, None
@@ -3955,7 +3955,7 @@ def get_resampled_video(video_in, start_frame, max_frames, target_fps, bridge='t
reader = decord.VideoReader(video_in)
fps = round(reader.get_avg_fps())
if max_frames < 0:
- max_frames = max(len(reader)/ fps * target_fps + max_frames, 0)
+ max_frames = int(max(len(reader)/ fps * target_fps + max_frames, 0))
frame_nos = resample(fps, len(reader), max_target_frames_count= max_frames, target_fps=target_fps, start_target_frame= start_frame)