AdneneBoumessouer / MVTec-Anomaly-Detection

This project proposes an end-to-end framework for semi-supervised Anomaly Detection and Segmentation in images based on Deep Learning.
278 stars 59 forks source link

about train #30

Closed c-dada closed 4 years ago

c-dada commented 4 years ago
  Hello,when I finish training,displays“Please invoke the Learner.lr_plot() method to visually inspect the loss plot to help identify the maximal learning rate associated with falling loss.”what shoud I do next.
  Looking forward to your reply.Thank you.
AdneneBoumessouer commented 4 years ago

Actually it wasn't training per se. It was just a simulation of training in order to determine the best learning rate, in which learning rates are being increased exponentially from a very small number untill the loss becomes too large. At the end of this process you are prompted to input the optimal learning rate. To do this, open the lr_find_plot.png image stored in the directory of your saved model and choose a suitable learning rate.

Example: If you trained an mvtec2 model on the bottle dataset using SSIM loss, the image would be stored in: Anomaly-Detection/saved_models/mvtec/bottle/mvtec2/SSIM/27-04-2020_16-08-12/lr_find_plot.png Then, you should choose a suitable learning rate corresponding to a falling loss. Please read the corresponding section in this post.

I am planning to do some modifications in the near future to make everything run automatically.

c-dada commented 4 years ago

Thank for your replay,I have run successfully for my own dataset,but the result is bad,mabye my settings have some wrong.I want to ask whether this work can mark the defect area.

AdneneBoumessouer commented 4 years ago

Not for the moment. I am planning on adding this fnuctionality in the near future. Thank you for your suggestion.