Replies: 2 comments
-
@lnbxldn The |
Beta Was this translation helpful? Give feedback.
-
Hey, I modified the Lib/site-packages/pytorch_lightning/trainer.py file. In the _predict_impl function i extracted the values box_scores and box_labels and in a new function called _save_results i wrote both values in a .txt file.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What is the motivation for this task?
How to reshape the inference result to origin shape and get the predict boundarys results and modify them?
Describe the solution you'd like
I use reverse_distillation model on my own dataset, and i wanna inference the model and get the predict results, I use the command:
python tools/inference/lightning_inference.py
--config anomalib/models/reverse_distillation/config.yaml
--weights results/reverse_distillation/mvtec/my_dataset/run/weights/model.ckpt
--input datasets/MVTec/my_dataset/test/anomaly/
--output results/reverse_distillation/mvtec/my_dataset/run/images
the result image are transformed as the shape 800 x 800 and the color is green.
How to reshape the image result to origin shape and get the predict boundarys results and modify them?
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions