Skip to content

How to change the default number of epochs when using EfficentAD? #2294

Answered by samet-akcay
tamamoto0821 asked this question in Q&A
Discussion options

You must be logged in to vote

You could set max_epochs argument from the Engine.

Depending on whether you are using CLI or API, you could achieve this by the following:

CLI

anomalib train --model anomalib.models.EfficientAd --data MVTec --trainer.max_epochs 3

API

from 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)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tamamoto0821
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2293 on September 04, 2024 05:13.