Training Error #645
-
Describe the bug
To Reproduce Steps to reproduce the behavior: No changes were made to the provided Colab workbook: by @bth5 Expected behaviour
!python tools/train.py --config anomalib/models/padim/config.yaml ERROR response when running training command: Traceback (most recent call last): Hardware and Software Configuration
Additional context
|
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 5 replies
-
@ANTZ314, this is probably due to one of our recent PRs #637. I'll check the notebooks and fix them if needed. |
Beta Was this translation helpful? Give feedback.
-
Same happens for me |
Beta Was this translation helpful? Give feedback.
-
interesting, we tried to ensure the backward compatibility, but apparently, it is broken. @JACKYNIKK, can you confirm you have this issue in the jupyter notebooks as well? |
Beta Was this translation helpful? Give feedback.
-
I'm sorry, you mean if the same problem happens if i run the lines in my local jupyter notebook instead of running it online on colab? Or is something else meant? |
Beta Was this translation helpful? Give feedback.
-
I meant Jupyter notebook in general, both local or cloud? Or do you also have this issue when you run train.py as well? |
Beta Was this translation helpful? Give feedback.
-
Im not sure if this is what was meant. Even if i use this repository i'm unexperienced with python, colab, cloud and so on and i'm not sure i understood what was meant. Hope this was it, otherwise let me know if i should try something else. |
Beta Was this translation helpful? Give feedback.
-
@ANTZ314, @JACKYNIKK, the problem is that the jupyter notebook installs anomalib via pip, which installs v0.3.6 now. You clone the repo via Solution Option - 1 !python tools/train.py --model padim Option - 2 !git clone https://github.com/openvinotoolkit/anomalib.git
%cd anomalib
!pip install -e . We'll soon update the pypi version with v0.3.7, which would remedy this issue completely. |
Beta Was this translation helpful? Give feedback.
@ANTZ314, @JACKYNIKK, the problem is that the jupyter notebook installs anomalib via pip, which installs v0.3.6 now. You clone the repo via
!git clone https://github.com/openvinotoolkit/anomalib.git
, which clones the latest commit, and causes conflict with the pypi version.Solution
For now, if you clone and install anomalib as the following, the problem would temporarily be resolved.
Option - 1
Train the model via
!python tools/train.py --model padim
Option - 2
Install the library locally
We'll soon update the pypi version with v0.3.7, which would remedy this issue completely.