anomalib icon indicating copy to clipboard operation
anomalib copied to clipboard

Canvas to Numpy conversion error

Open sherpan opened this issue 2 years ago • 3 comments

Describe the bug

Visualization is failing to convert from canvas/matplotlib to numpy.

To Reproduce

Steps to reproduce the behavior:

  1. download repo and pip install . anomalib
  2. 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.

sherpan avatar Sep 09 '22 05:09 sherpan

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?

djdameln avatar Sep 09 '22 08:09 djdameln

Apologies! Updated the link to my comet project!

https://www.comet.com/sherpan/mvtec?shareable=kLHa8CnBSEb80CqXmOMSOhehA

sherpan avatar Sep 09 '22 16:09 sherpan

@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. image

ashwinvaidya17 avatar Sep 22 '22 08:09 ashwinvaidya17

@sherpan can you confirm if you still see this error?

ashwinvaidya17 avatar Sep 26 '22 15:09 ashwinvaidya17

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 avatar Sep 26 '22 23:09 sherpan

@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.

ashwinvaidya17 avatar Sep 28 '22 14:09 ashwinvaidya17

Closing due to inactivity and non-reproducibility. Feel free to re-open if the problem persists.

djdameln avatar Oct 18 '22 13:10 djdameln