anomalib
anomalib copied to clipboard
Canvas to Numpy conversion error
Describe the bug
Visualization is failing to convert from canvas/matplotlib to numpy.
To Reproduce
Steps to reproduce the behavior:
- download repo and pip install . anomalib
- set log_images to True in Visualization config file (pick any model) and run it on the mvtech dataset
or
Check out my comet project for debugging info, specifically the output section. Can also use reproduce button to run my exact experiment
Expected behavior
- Expected the canvas figure to convert to numpy
Screenshots
- If applicable, add screenshots to help explain your problem.
Hardware and Software Configuration
- OS: [Mac OS x]
- CPU: Apple M1 Pro
Additional context
- Add any other context about the problem here.
I can't reproduce this issue on my system, so it could be specific to apple hardware. Also, the link you provided does not point to your comet project. Could you have a look and provide the right url?
Apologies! Updated the link to my comet project!
https://www.comet.com/sherpan/mvtec?shareable=kLHa8CnBSEb80CqXmOMSOhehA
@sherpan I can see two projects (padim and dfm) but I cannot see any errors in the output. Also, the reproduce button shows up disabled on my end.
@sherpan can you confirm if you still see this error?
sorry guys,
that comet project was being overwritten as i was doing the integration.
here is the new [link] (https://www.comet.com/sherpan/debug-anomalib?shareable=hzv6uZxZBsfP2SRzdJjBgMlRz)
@sherpan the reproduce button is disabled for me. Maybe because you are the owner of the project. Can you checkout the latest main branch and let us know. I tried running it on CPU only model and I am able to upload images to comet dashboard. Can you also share your config file. I saw that for padim model, the value of max_epochs is set to 5. Padim model is not trained. We only collect statistics from the train set. But leaving that aside, visualization works on my end with these changes.
Closing due to inactivity and non-reproducibility. Feel free to re-open if the problem persists.