Skip to content

Commit 336e941

Browse files
committed
fixed memory leak
1 parent 9e0354e commit 336e941

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ WanGP supports the Wan (and derived models), Hunyuan Video and LTV Video models
2020
**Follow DeepBeepMeep on Twitter/X to get the Latest News**: https://x.com/deepbeepmeep
2121

2222
## 🔥 Latest Updates :
23-
### August 29 2025: WanGP v8.2 - Here Goes Your Weekend
23+
### August 29 2025: WanGP v8.21 - Here Goes Your Weekend
2424

2525
- **InfiniteTalk Video to Video**: this feature can be used for Video Dubbing. Keep in mind that it is a *Sparse Video to Video*, that is internally only image is used by Sliding Window. However thanks to the new *Smooth Transition* mode, each new clip is connected to the previous and all the camera work is done by InfiniteTalk. If you dont get any transition, increase the number of frames of a Sliding Window (81 frames recommended)
2626

models/wan/any2video.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -778,13 +778,11 @@ def generate(self,
778778
from preprocessing.face_preprocessor import FaceProcessor
779779
standin_ref_pos = 1 if "K" in video_prompt_type else 0
780780
if len(original_input_ref_images) < standin_ref_pos + 1:
781-
if "I" in video_prompt_type:
781+
if "I" in video_prompt_type and model_type in ["vace_standin_14B"]:
782782
print("Warning: Missing Standin ref image, make sure 'Inject only People / Objets' is selected or if there is 'Landscape and then People or Objects' there are at least two ref images.")
783783
else:
784784
standin_ref_pos = -1
785785
image_ref = original_input_ref_images[standin_ref_pos]
786-
image_ref.save("si.png")
787-
# face_processor = FaceProcessor(antelopv2_path="ckpts/antelopev2")
788786
face_processor = FaceProcessor()
789787
standin_ref = face_processor.process(image_ref, remove_bg = model_type in ["vace_standin_14B"])
790788
face_processor = None

wgp.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def clear_gen_cache():
8181

8282
def release_model():
8383
global wan_model, offloadobj, reload_needed
84+
wan_model = None
8485
clear_gen_cache()
8586
offload.shared_state
8687
if offloadobj is not None:

0 commit comments

Comments
 (0)