Spaces:
Running
on
Zero
Running
on
Zero
Update pipeline_minimax_remover.py
Browse files
pipeline_minimax_remover.py
CHANGED
|
@@ -121,7 +121,8 @@ class Minimax_Remover_Pipeline(DiffusionPipeline):
|
|
| 121 |
output_type: Optional[str] = "np",
|
| 122 |
iterations: int = 16
|
| 123 |
):
|
| 124 |
-
|
|
|
|
| 125 |
self._current_timestep = None
|
| 126 |
self._interrupt = False
|
| 127 |
device = self._execution_device
|
|
@@ -151,7 +152,6 @@ class Minimax_Remover_Pipeline(DiffusionPipeline):
|
|
| 151 |
masks[masks>0] = 1
|
| 152 |
images = rearrange(images, "f h w c -> c f h w")
|
| 153 |
images = self.resize(images[None,...], height, width).to("cuda:0").half()
|
| 154 |
-
print(f"images.shape: {images.shape}, masks.shape:{masks.shape}")
|
| 155 |
|
| 156 |
masked_images = images * (1-masks)
|
| 157 |
|
|
|
|
| 121 |
output_type: Optional[str] = "np",
|
| 122 |
iterations: int = 16
|
| 123 |
):
|
| 124 |
+
|
| 125 |
+
print(f"images.shape: {images.shape}, masks.shape:{masks.shape}")
|
| 126 |
self._current_timestep = None
|
| 127 |
self._interrupt = False
|
| 128 |
device = self._execution_device
|
|
|
|
| 152 |
masks[masks>0] = 1
|
| 153 |
images = rearrange(images, "f h w c -> c f h w")
|
| 154 |
images = self.resize(images[None,...], height, width).to("cuda:0").half()
|
|
|
|
| 155 |
|
| 156 |
masked_images = images * (1-masks)
|
| 157 |
|