We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a0b9100 + c7fdc0c commit c8e4c1aCopy full SHA for c8e4c1a
src/superannotate/lib/core/usecases/images.py
@@ -834,14 +834,16 @@ def execute(self):
834
835
outline_color = 4 * (255,)
836
for instance in self.annotations["instances"]:
837
+ if not instance.get("className"):
838
+ continue
839
color = class_color_map.get(instance["className"])
840
if not color:
841
class_color_map[instance["className"]] = self.generate_color()
- fill_color = (
- *class_color_map[instance["className"]],
842
- self.TRANSPARENCY,
843
- )
844
for image in images:
+ fill_color = (
+ *class_color_map[instance["className"]],
845
+ 255 if image.type == "fuse" else self.TRANSPARENCY
846
+ )
847
if instance["type"] == "bbox":
848
image.content.draw_bbox(
849
**instance["points"],
0 commit comments