Skip to content
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

providing run_id to the train() does not continue training #84

Open
kctezcan opened this issue Mar 17, 2025 · 0 comments
Open

providing run_id to the train() does not continue training #84

kctezcan opened this issue Mar 17, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@kctezcan
Copy link
Contributor

kctezcan commented Mar 17, 2025

What happened?

In line 300 in __init__.py, we call the trainer function:
trainer.run(cf, private_cf) without the parameter run_id_contd, which is setto None as default.

Then in the function run(...) in trainer.py the following code is seen:

load model if specified

    if run_id_contd is not None:
        self.model.load(run_id_contd, epoch_contd)
        print(f"Loaded model id={run_id_contd}.")

But because run_id_contd is not provided, it just does not load the model.

This should be passed in as an argument in the _init__.py file in line 300 as:
trainer.run(cf, private_cf, run_id_continue=args.run_id)

What are the steps to reproduce the bug?

as described above

Version

v0.0

Platform (OS and architecture)

linux

Relevant log output

Accompanying data

No response

Organisation

Meteoswiss

@kctezcan kctezcan added the bug Something isn't working label Mar 17, 2025
@kctezcan kctezcan changed the title providing run_id to the train does not continue training providing run_id to the train() does not continue training Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant