YOLO-World icon indicating copy to clipboard operation
YOLO-World copied to clipboard

关于结果保存

Open KDgggg opened this issue 11 months ago • 6 comments

请问支持把预测的bbox结果和类别保存文件下来吗

KDgggg avatar Mar 11 '24 08:03 KDgggg

当然,完全ok,我可以在demo里面支持一下

wondervictor avatar Mar 11 '24 09:03 wondervictor

当然,完全ok,我可以在demo里面支持一下

在image_demo里面我发现有sv.DetectionDataset( classes=texts, images=images_dict, annotations=annotations_dict ).as_yolo( 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 )我制定了目录,没有报错但是只是创建了文件夹却没有保存下来annotation

KDgggg avatar Mar 11 '24 09:03 KDgggg

Have you solved this problem? I have meet the same problem.

zzzzzzj0 avatar Mar 28 '24 08:03 zzzzzzj0

Have you solved this problem? I have meet the same problem.

tim120526 avatar Apr 30 '24 09:04 tim120526

Have you solved this problem? I have meet the same problem.

Have you solved this problem? I have meet the same problem.

tim120526 avatar Apr 30 '24 09:04 tim120526

@KDgggg @zzzzzzj0 @tim20120526 replace "ANNOTATIONS_DIRECTORY = os.makedirs( "annotations", exist_ok=True)" with "ANNOTATIONS_DIRECTORY = osp.join(output_dir, "annotations") os.makedirs(ANNOTATIONS_DIRECTORY, exist_ok=True)", because os.makedirs() return None

HandsLing avatar May 16 '24 03:05 HandsLing