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

Fix bug about undefined swa #584

Merged
merged 2 commits into from
Sep 12, 2024
Merged

Fix bug about undefined swa #584

merged 2 commits into from
Sep 12, 2024

Conversation

Hongyu-yu
Copy link
Contributor

Thanks for the great MLIP! I encountered an issue at the end of the training and fixed it in this pull.

Here is the error message when swa is not used and training is finished:

mace/tools/train.py", line 262, in train.
if patience_counter >= patience and epoch < swa.start:
AttributeError: 'NoneType' object has no attribute 'start'.

ilyes319 and others added 2 commits August 27, 2024 10:18
Merge develop, pylint + log changes
Bug will come out when swa is not used at the end of training.
```
mace/tools/train.py", line 262, in train
    if patience_counter >= patience and epoch < swa.start:
AttributeError: 'NoneType' object has no attribute 'start'
```
@Hongyu-yu Hongyu-yu changed the base branch from main to develop September 5, 2024 01:29
@ilyes319 ilyes319 merged commit d950e18 into ACEsuit:develop Sep 12, 2024
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

Successfully merging this pull request may close these issues.

2 participants