Repository navigation
Replies: 2 comments
|
@lnbxldn The |
0 replies
|
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. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
All reactions