YiYiXu HF Staff commited on
Commit
778a168
·
verified ·
1 Parent(s): 3e5a8b3

Update block.py

Browse files
Files changed (1) hide show
  1. block.py +2 -2
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.image = self.prepare_mask(
218
  images, annotations, overlay=True, fill=fill
219
  )
220
 
221
  elif block_state.annotation_output_type == "bounding_box":
222
- block_state.image = self.prepare_bounding_boxes(images, annotations)
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