Replies: 2 comments
-
Hi! PyTorch Lightning models contain a lot of crucial information for training, especially for EfficientAD. It handles the download of additional data for training, normalization of anomaly maps, etc. I think it makes more sense to work with PyTorch Lightning instead of just PyTorch, example can be found here. |
Beta Was this translation helpful? Give feedback.
-
Hi @bebatrix, glad you like the repo. You don't need the lightning. this is the exact reason why we created the Can you try instantiating the model safely first, then assign it to cuda device. Sth like: from anomalib.models.efficient_ad.torch_model import EfficientAdModel
model = EfficientAdModel(..) See if the model is there. Then assign it to cuda to see why you get that error |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
before I get to my question, I would like to say that I just came across this project and it looks absolutely fantastic! I'm relatively new to
PyTorch
and AI in general, and I can't say how happy I am that a library like this exists, so thank you so much ❤️!Now, I just looked at the notebooks available to learn how to use this library, but I don't know if it will be suitable for my specific needs. I need to test several models for anomaly detection in a continuous learning scenario, so I'd like to be able to train/evaluate them manually and manipulate them via
torch
. Since I read in theREADME.md
file in the root of this library thatEfficientAD
achieves very good results, I decided to start my learning of the library from that model. So, I basically created a new notebook where I simply tried to instantiate it as follows:Unfortunately, I get this error:
At this point I ask you, is it possible to train/evaluate the models manually, or is it absolutely necessary to use
PyTorch Lightning
and the scripts you provide?Thank you very much and see you soon!
Beta Was this translation helpful? Give feedback.
All reactions