-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow multiple fit runs #170
Allow multiple fit runs #170
Conversation
…report-average-and-range' into 158-allow-multiple-fit-runs-and-report-average-and-range
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I left some initial comments, will continue the review later.
src/eva/interface/interface.py
Outdated
if data.datasets.test is not None: | ||
trainer.test(datamodule=data) | ||
for run_id in range(n_runs): | ||
trainer_run = copy.deepcopy(trainer) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copying the trainer and model for each run could be resource-intensive, especially for heavy models. Not sure if there is a better way to do this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
haven't seen another safe way yet. Let me know if you have a simple idea, otherwise lets open another issue for it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe @ioangatop has another idea. elsewise I'd say let's leave it as is.
…ge-and-range # Conflicts: # src/eva/callbacks/writers/embeddings.py # src/eva/interface/interface.py
closes #158
Trainer
,CSVLogger
andTensorBoardLogger
to add log_dir-setter_adapt_log_dirs
method to interface to set the dir for logger, trainer, callback after 'evaluation_id' is createdn_runs
timesto test, run
and check the results in logs/dino_vits16/patch_camelyon/<evaluation_id>