roboflow / notebooks

Examples and tutorials on using SOTA computer vision models and techniques. Learn everything from old-school ResNet, through YOLO and object-detection transformers like DETR, to the latest models like Grounding DINO and SAM.
https://roboflow.com/models
4.89k stars 759 forks source link

Supervision version issue on sv.Dataset #162

Closed vhuard closed 1 year ago

vhuard commented 1 year ago

Search before asking

Notebook name

i am using without custom code the automated-dataset-annotation-and-evaluation-with-grounding-dino-and-sam.ipynb except that i am using the supervision==0.9.0 to change videos in images that i will use for auto labelling

Bug

then i come to the point to do the dataset save using the command: sv.Dataset( classes=CLASSES, images=images, annotations=annotations ).as_pascal_voc( annotations_directory_path=ANNOTATIONS_DIRECTORY, min_image_area_percentage=MIN_IMAGE_AREA_PERCENTAGE, max_image_area_percentage=MAX_IMAGE_AREA_PERCENTAGE, approximation_percentage=APPROXIMATION_PERCENTAGE )

i have got the following error messsage:

sv.Dataset( classes=CLASSES, images=images, annotations=annotations ).as_pascal_voc( annotations_directory_path=ANNOTATIONS_DIRECTORY, min_image_area_percentage=MIN_IMAGE_AREA_PERCENTAGE, max_image_area_percentage=MAX_IMAGE_AREA_PERCENTAGE, approximation_percentage=APPROXIMATION_PERCENTAGE )

i have tried to unsintall supervision 0.9.0 and pu back the 0.6.0 but same results

Environment

Minimal Reproducible Example

No response

Additional

No response

Are you willing to submit a PR?

vhuard commented 1 year ago

changing sv.Dataset to sv.DetectionDataset works finaly on sv 0.9.0