openvinotoolkit / anomalib

An anomaly detection library comprising state-of-the-art algorithms and features such as experiment management, hyper-parameter optimization, and edge inference.

Home Page:https://anomalib.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Task]: Training using anomalib train

mohandeeprdori opened this issue · comments

What is the motivation for this task?

image
Install anomalib using 'anomalib install'
tried to start a training using anomalib train --model EffiecientAd --data anomalib.data.MVTec --data.category bottle
Still getting the same error saying error: argument subcommand: invalid choice: 'train'

Describe the solution you'd like

How to run the training for the above configuration

Additional context

No response

I have tried API based,
after pip install anomalib

Install with verbose output, do this

anomalib install -v

And try to train again

We've broken install into two steps to support use cases like installing edge devices, but we also provide a way to install the whole thing in one step.

pip install anomalib[full]
This command will install all the prerequisites for full training and exporting, and is the same as the result of anomalib install -v.

@harimkang I have a doubt.
I did training over few custom datasets and now I want to run inference for a single image outside anomalib. Where in I wrote a custom script to load the model and the checkpoint. But the results seem to vary as of what anomalib gives and the other method gives. Any idea how do I replicate the same results outside anomalib? or if there is any way i can use anomalib to test on a single image instead of using images through data loaders.
perhaps you could also answer. @ashwinvaidya17 ' :)