[Bug]: Custom Callbacks are not being logged in default_root_dir
since anomalib V1
#2117
Open
1 task done
default_root_dir
since anomalib V1
#2117
Describe the bug
With the update of
anomalib
toV1
, the way to create callbacks changed. Now you can pass some callbacks in theconfig.yaml
file, with the desiredinit_args
. Example below:So your models will be logged into "weights/lightning". However, if you see
engine.py line 421
:the default
ModelCheckpoint
callback usesself._cache.args["default_root_dir"]
which inengine.py _setup_workspace()
method (line 315
) was updated. So the default callbacks will log into thisself._cache.args["default_root_dir"]
but the custom callbacks will not. And I think the correct would be that all stuff related with the same run to be logged within the same dafault_root_dir.Dataset
N/A
Model
N/A
Steps to reproduce the behavior
config.yaml
, setting thedirpath
init_arg to whatever.dirpath
)OS information
OS information:
Expected behavior
That all custom callbacks to be logged in the
default_root_dir
path (plus some aditional path provided by the user).Screenshots
No response
Pip/GitHub
pip
What version/branch did you use?
main
Configuration YAML
Logs
Code of Conduct
The text was updated successfully, but these errors were encountered: