Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -192,7 +192,7 @@ def inference_and_return_video(dilation_iterations, num_inference_steps, video_s
|
|
192 |
print("mask_tensor shape:",mask_tensor.shape)
|
193 |
img_tensor=img_tensor.to("cuda")
|
194 |
mask_tensor=mask_tensor.to("cuda")
|
195 |
-
mask_tensor = mask_tensor[
|
196 |
|
197 |
pipe.to("cuda")
|
198 |
|
|
|
192 |
print("mask_tensor shape:",mask_tensor.shape)
|
193 |
img_tensor=img_tensor.to("cuda")
|
194 |
mask_tensor=mask_tensor.to("cuda")
|
195 |
+
mask_tensor = mask_tensor[:,:,:,:1]
|
196 |
|
197 |
pipe.to("cuda")
|
198 |
|