Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion wanvideo/modules/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1151,7 +1151,7 @@ def block_swap(self, blocks_to_swap, offload_txt_emb=False, offload_img_emb=Fals
if blocks_to_swap != -1 and vace_blocks_to_swap == 0:
vace_blocks_to_swap = 1

if vace_blocks_to_swap > 0 and self.vace_layers is not None:
if vace_blocks_to_swap is not None and vace_blocks_to_swap > 0 and self.vace_layers is not None:
self.vace_blocks_to_swap = vace_blocks_to_swap

for b, block in tqdm(enumerate(self.vace_blocks), total=len(self.vace_blocks), desc="Initializing vace block swap"):
Expand Down