-
Notifications
You must be signed in to change notification settings - Fork 709
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
metrics #2540
Comments
Hey! You will find some example how to do evaluation with different metrics here: https://anomalib.readthedocs.io/en/latest/markdown/guides/how_to/evaluation/evaluator.html If you have some specific questions, maybe you can share some code. |
so for examples if i wrtite this Create the datamoduledatamodule = Folder( Setup the datamoduledatamodule.setup() metricstest_metrics = [ Setup the enviormentmodel = Patchcore(evalutator = evalutator) Train a Patchcore model on the given datamoduleengine.fit(model=model, datamodule=datamodule) Test pahasetest_results = engine.test( It's correct ? How and where it is possible to see and retrive the metrics ? And if i want to calcute the recall how can i do it? Thanks |
Yes it should work this way. However it looks like you are using version 1 API (the folder datamodule doesn't have a task and train_transform argument in v2 https://anomalib.readthedocs.io/en/v2.0.0-beta.1/markdown/guides/reference/data/datamodules/image/folder.html) |
Sorry my bad. Infact i have to use the pre_processor to perform the transformation and the resizing Thansk a lot to help me to understand! |
Yes you have to write a wrappe around the torchmetrics |
if i write the wrapper for Recall directyl on Colab and then i call the new class in the evalutator should work? Or i must put it toghether with the others metrics? |
You can write it in colab yes |
With the release of the v2 of anomalib, how it is possibile to calculate in test the precision/recall/f1Score and AUROC for both task (classification/segmentation)? I see that in the previous realese that i have to set some parameters into the Engine object, it is the same in v2? Someone can explain to me how it's done ?
Thansk a lot
The text was updated successfully, but these errors were encountered: