How to change the default number of epochs when using EfficentAD? #2294
Answered
by
samet-akcay
tamamoto0821
asked this question in
Q&A
-
What is the motivation for this task?The number of epoch is 999 when using EfficentAD Describe the solution you'd likeThe number of epoch is 999 when using EfficentAD Additional contextThe number of epoch is 999 when using EfficentAD |
Beta Was this translation helpful? Give feedback.
Answered by
samet-akcay
Sep 4, 2024
Replies: 1 comment
-
You could set Depending on whether you are using CLI or API, you could achieve this by the following: CLIanomalib train --model anomalib.models.EfficientAd --data MVTec --trainer.max_epochs 3 APIfrom anomalib.data import MVTec
from anomalib.models import EfficientAd
from anomalib.engine import Engine
datamodule = MVTec()
model = EfficientAd()
engine = Engine(max_epochs=10)
engine.train(datamodule=datamodule, model=model) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
tamamoto0821
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You could set
max_epochs
argument from theEngine
.Depending on whether you are using CLI or API, you could achieve this by the following:
CLI
API