Skip to content

Commit

Permalink
Rename vars
Browse files Browse the repository at this point in the history
  • Loading branch information
HonzaCuhel committed Oct 25, 2024
1 parent 057a9b4 commit 437d067
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datadreamer/pipelines/generate_dataset_from_scratch.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
det_annotators = {"owlv2": OWLv2Annotator}
clf_annotators = {"clip": CLIPAnnotator}
inst_seg_annotators = {"owlv2-slimsam": SlimSAMAnnotator}
inst_seg_to_det = {"owlv2-slimsam": OWLv2Annotator}
inst_seg_detectors = {"owlv2-slimsam": OWLv2Annotator}

setup_logging(use_rich=True)

Expand Down Expand Up @@ -606,7 +606,7 @@ def read_image_batch(image_batch, batch_num, batch_size):
if args.task == "detection":
annotator_class = det_annotators[args.image_annotator]
else:
annotator_class = inst_seg_to_det[args.image_annotator]
annotator_class = inst_seg_detectors[args.image_annotator]
inst_seg_annotator_class = inst_seg_annotators[args.image_annotator]
inst_seg_annotator = inst_seg_annotator_class(device=args.device)
annotator = annotator_class(device=args.device, size=args.annotator_size)
Expand Down

0 comments on commit 437d067

Please sign in to comment.