problem to train Padim model #838
nargolakbari
started this conversation in
General
Replies: 1 comment 8 replies
-
@nargolakbari, |
Beta Was this translation helpful? Give feedback.
8 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.
-
Hello everyone.
I have a problem to train Padim model , I use Colab version and start running all commands without any changes , but when I want to train model with > !python tools/train.py --config anomalib/models/padim/config.yaml I got this error :
Traceback (most recent call last):
File "tools/train.py", line 19, in
from anomalib.data.utils import TestSplitMode
ImportError: cannot import name 'TestSplitMode' from 'anomalib.data.utils' (/usr/local/lib/python3.8/dist-packages/anomalib/data/utils/init.py)
it seems that train.py does not consider anomalib in this path /content/anomalib and try to find modules in wrong path . how can force it to use right path ?
I would be grateful if you help me .
a part of train.py ;
,,,
from anomalib.config import get_configurable_parameters
from anomalib.data import get_datamodule
from anomalib.data.utils import TestSplitMode
from anomalib.models import get_model
from anomalib.utils.callbacks import LoadModelCallback, get_callbacks
from anomalib.utils.loggers import configure_logger, get_experiment_logger
.....
Beta Was this translation helpful? Give feedback.
All reactions