How to pass a custom config to overwrite the configs to train a model #1888
-
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Same here. Wondering if there is any runnable sample configuration on anomalib v1.x |
Beta Was this translation helpful? Give feedback.
-
Hi @blueclowd i was not able to run through terminal. But I trained a model from notebook, where i happen to key in all the params. from anomalib.engine import Engine
As I experienced certain configs formats are not yet updated in the updated source code |
Beta Was this translation helpful? Give feedback.
-
Thanks for sharing the hard work. Will try it out as well. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
To pass a custom model or any component, you don't need to specify # ~~model~~: This is not needed when passed with --model flag from the CLI
class_path: anomalib.models.Padim
init_args:
layers:
- layer1
- layer2
input_size: null
backbone: resnet18
pre_trained: true
n_features: null |
Beta Was this translation helpful? Give feedback.
To pass a custom model or any component, you don't need to specify
model
section in the config file. These sections are only needed when a full config file is used.--model
flag in the CLI already specifies that the yaml file will be for the model. So, to fix this you need to do the following: