Update block.py
Browse files
block.py
CHANGED
|
@@ -58,7 +58,7 @@ class DepthProcessorBlock(PipelineBlock):
|
|
| 58 |
block_state = self.get_block_state(state)
|
| 59 |
|
| 60 |
image = block_state.image
|
| 61 |
-
depth_map = pipeline.depth_processor(image)
|
| 62 |
block_state.image = depth_map.to(block_state.device)
|
| 63 |
|
| 64 |
self.add_block_state(state, block_state)
|
|
|
|
| 58 |
block_state = self.get_block_state(state)
|
| 59 |
|
| 60 |
image = block_state.image
|
| 61 |
+
depth_map = pipeline.depth_processor(image, return_type="pt")
|
| 62 |
block_state.image = depth_map.to(block_state.device)
|
| 63 |
|
| 64 |
self.add_block_state(state, block_state)
|