Problem while running inference #625
-
If I run the following inference on my own dataset (which is for testing purposes the same as the classical MVTec AD) command, I get the error: python tools/inference/lightning_inference.py --config configs\model\padim.yaml --weights results\padim\mvtec\wood\weights\model-v3.ckpt --input datasets\MVTec\wood\test\scratch File "\anomalib\tools\inference\lightning_inference.py", line 75, in Any ideas how to solve it? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey @kusstox
you are misplacing '\' with '/' . Try correcting these simply and your error might be resolved. @ashwinvaidya17 Please close this issue as the error might be in the input command only. |
Beta Was this translation helpful? Give feedback.
-
In addition to what @Owaiskhan9654 suggested, another issue is the configuration file. If you want to use the old CLI such as So, the command to run the inference would be python tools/inference/lightning_inference.py \
--config anomalib/models/padim/config.yaml \
--weights results/padim/mvtec/wood/weights/model-v3.ckpt \
--input datasets/MVTec/wood/test/scratch Of course, depending on the OS The config files location in |
Beta Was this translation helpful? Give feedback.
Hey @kusstox
It looks to me like you're trying to run this on windows and in your inference command
python tools/inference/lightning_inference.py --config configs\model\padim.yaml --weights results\padim\mvtec\wood\weights\model-v3.ckpt --input datasets\MVTec\wood\test\scratch
you are misplacing '\' with '/' . Try correcting these simply and your error might be resolved.
if still getting errors do comment down with newer logs.
@ashwinvaidya17 Please close this issue as the error might be in the input command only.