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

项目名称包含下划线(_)时,恢复训练时提取 history_step 异常 #102

Open
frankxzw opened this issue Nov 11, 2022 · 0 comments

Comments

@frankxzw
Copy link

/utils/train.py
line: 58

checkpoint_name = checkpoint.split(".")[0].split("_")
if int(checkpoint_name[3]) > history_step:
    newer_checkpoint = checkpoint
    history_step = int(checkpoint_name[3])

to

checkpoint_name = checkpoint.split(".")[0].split("_")
if int(checkpoint_name[-1]) > history_step:
    newer_checkpoint = checkpoint
    history_step = int(checkpoint_name[-1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant