Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tasks/interactive_idino_m2m.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def interactive_infer_image(model, image,all_classes,all_parts, thresh,text_size
areas.append(area)
mask,_=remove_small_regions(mask,int(hole_scale),mode="holes")
mask,_=remove_small_regions(mask,int(island_scale),mode="islands")
mask=(mask).astype(np.float)
mask=(mask).astype(float)
out_txt = texts
visual = Visualizer(image_ori, metadata=metadata)
color=[0.,0.,1.0]
Expand Down
2 changes: 1 addition & 1 deletion tasks/interactive_predictor.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def process_multi_mask(self, masks, ious, image_ori):
areas.append(area)
mask, _ = self.remove_small_regions(mask, int(self.hole_scale), mode="holes")
mask, _ = self.remove_small_regions(mask, int(self.island_scale), mode="islands")
mask = (mask).astype(np.float)
mask = (mask).astype(float)
out_txt = texts
visual = Visualizer(image_ori, metadata=metadata)
color = [0., 0., 1.0]
Expand Down