fix matanyone 2 device bug

This commit is contained in:
FuouM
2026-03-15 09:59:09 +07:00
parent b0d5e43825
commit ecb9fa14af
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ def inference_matanyone2(
mask_t, processor, n_warmup, repeated_frames, pbar, 0, total_len
)
mask_out = processor.output_prob_to_mask(output_prob)
phas[0] = mask_out.unsqueeze(0).unsqueeze(0)
phas[0] = mask_out.unsqueeze(0).unsqueeze(0).cpu()
for ti in range(1, length):
image = vframes[ti].to(device)
+1 -1
View File
@@ -1,7 +1,7 @@
[project]
name = "ComfyUI-MatAnyone"
description = "MatAnyone in ComfyUI (Remove background)"
version = "2.0"
version = "2.1"
license = {file = "LICENSE"}
dependencies = ["torch", "omegaconf"]