Update block.py
Browse files
block.py
CHANGED
|
@@ -214,12 +214,12 @@ class Florence2ImageAnnotatorBlock(ModularPipelineBlocks):
|
|
| 214 |
block_state.mask_image = None
|
| 215 |
|
| 216 |
if block_state.annotation_output_type == "mask_overlay":
|
| 217 |
-
block_state.
|
| 218 |
images, annotations, overlay=True, fill=fill
|
| 219 |
)
|
| 220 |
|
| 221 |
elif block_state.annotation_output_type == "bounding_box":
|
| 222 |
-
block_state.
|
| 223 |
|
| 224 |
self.set_block_state(state, block_state)
|
| 225 |
|
|
|
|
| 214 |
block_state.mask_image = None
|
| 215 |
|
| 216 |
if block_state.annotation_output_type == "mask_overlay":
|
| 217 |
+
block_state.images = self.prepare_mask(
|
| 218 |
images, annotations, overlay=True, fill=fill
|
| 219 |
)
|
| 220 |
|
| 221 |
elif block_state.annotation_output_type == "bounding_box":
|
| 222 |
+
block_state.images = self.prepare_bounding_boxes(images, annotations)
|
| 223 |
|
| 224 |
self.set_block_state(state, block_state)
|
| 225 |
|