I'm experiencing discrepancies in the results when testing the same image using engine.test compared to TorchInferencer.predict. #2020
Replies: 4 comments 8 replies
-
PatchCore should be trained for one epoch only, according to the paper. It just extracts features from the training dataset in one iteration and then compares them to the new data. For this reason, there is a hardcoded |
Beta Was this translation helpful? Give feedback.
-
@tr1ggerone, can you try using |
Beta Was this translation helpful? Give feedback.
-
@tr1ggerone, can you check the issue again. We have just merged this PR #1953, which, according to @djdameln, should address the problem you are having |
Beta Was this translation helpful? Give feedback.
-
Yeah if you run the following, you would have the latest code # Clone the repository and install in editable mode
git clone https://github.com/openvinotoolkit/anomalib.git
cd anomalib
pip install -e . |
Beta Was this translation helpful? Give feedback.
-
I've trained a PatchCore model, but I'm encountering an inconsistency in the results when using engine.test and TorchInferencer.predict on the same image. Below, I've included my code for review.
Additionally, I'm facing a configuration issue: setting max_epoch=10 directly in the Engine configuration doesn't seem to take effect, whereas using Trainer.max_epochs=10 works as expected. Could you help clarify why this might be happening?
Here is my code
Beta Was this translation helpful? Give feedback.
All reactions