Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Task]: Dataset Robustness on .ipynb_checkpoints issue #1256

Closed
Starlento opened this issue Aug 10, 2023 · 4 comments · Fixed by #1268
Closed

[Task]: Dataset Robustness on .ipynb_checkpoints issue #1256

Starlento opened this issue Aug 10, 2023 · 4 comments · Fixed by #1268

Comments

@Starlento
Copy link

Starlento commented Aug 10, 2023

What is the motivation for this task?

I got ValueError: NumPy boolean array indexing assignment cannot assign 18 input values to the 17 output values where the mask is true and I found out it is because there is .ipynb_checkpoints in the mask dir. And if the dataset could deal with certain situation or even more complex folder structure, that would be great.

Describe the solution you'd like

I think there were some issues related to this. I am just wondering whether there is an elegant solution to ignore every folder starts with .. Because I found the code for "listdir the folder" is not a single entrance, as you have multiple make_xxx_dataset().
And actually for the dataset, I do not see the need to take folders into account, is there certain usage?
Could you share some insights on this?

Additional context

No response

@Starlento Starlento added the Task label Aug 10, 2023
@Starlento
Copy link
Author

Starlento commented Aug 10, 2023

And as a solution from my side. I can delete certain folders before running the script.
find . -type d -name .ipynb_checkpoints -exec rm -r {} \;

@samet-akcay
Copy link
Contributor

@Starlento, thanks for reporting this. In order for us to reproduce this, can you provide more specific details such as which dataset you used, what is your data configuration, model etc.

@samet-akcay
Copy link
Contributor

samet-akcay commented Aug 10, 2023

If you could use the bug template, it would be easier for us to reproduce. Thanks!

@Starlento
Copy link
Author

Starlento commented Aug 14, 2023

If you could use the bug template, it would be easier for us to reproduce. Thanks!

Sorry for the late reply. I think this is not a bug actually. And for reproducing the issue, I just follow https://openvinotoolkit.github.io/anomalib/how_to_guides/train_custom_data.html. And change it to segmentation, mask dir to mask/colour. Then create .ipynb_checkpoints (I browser some images before training) in mask/colour. Then I got the error above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants