visual-layer / fastdup

fastdup is a powerful free tool designed to rapidly extract valuable insights from your image & video datasets. Assisting you to increase your dataset images & labels quality and reduce your data operations costs at an unparalleled scale.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: Cropped files are not saving within the specified folder

VimukthiRandika1997 opened this issue · comments

What happened?

fd.vis.component_gallery(metric='size', max_width=900, show=True,
                        # draw_bbox=True,
                        save_path=save_to('similarity_clusters'),
                        saving_artifact=True,
                        load_crop=True
                        )

What did you expect to see?

Cropped images should be saved within the defined saving path. I even tried with the default option. But it did not seem to work either.

What version of fastdup were you runnning on?

1.27

What version of Python were you running on?

Python 3.9

Operating System

Ubuntu 22.04

Reproduction steps

No response

Relevant log output

No response

Attach a screenshot [Optional]

Screenshot from 2023-08-01 18-44-28

Contact Details [Optional]

No response

I found the error, if we want to save resulted crop files, then we need to set the command save_artifacts=True within the particular function, but the message displayed in the output log is misleading. For other functions, it is showing created crop files, but those would not be saved unless we use save_artifacts attribute. But in this case, crop files are not even showing.

Hi @VimukthiRandika1997 apologies for the unclear documentation. Did you try to run() with the flag save_crops=1 ? this will make sure to save the bounding box crops into the crops subfolder.