Cannot disable progress bar with TrainingConfig.enable_progress_bar
when using CAREamist
API
#389
Labels
bug
Something isn't working
Describe the bug
Setting
enable_progress_bar=False
inTrainingConfig
results inMisconfigurationException
from lightning becauseProgressBarCallback
is added to the callbacks inCAREamist._define_callbacks
regardless.To Reproduce
Code snippet allowing reproducing the behaviour:
Error message:
Suggested solution
In
CAREamist._define_callbacks
ProgressBarCallback
should only be added to the callbacks list ifconfig.training_config.enable_progress_bar
isTrue
. See where code should change below.careamics/src/careamics/careamist.py
Lines 246 to 257 in adacfe6
The text was updated successfully, but these errors were encountered: