Closed JPDarby closed 4 weeks ago
I agree that virial should be divided by natoms, but not stress.
Yes must be a bug. Explains poor stress behaviour before, and especially recently. Can someone please just put in a PR deleting this scaling?
Merged! Thanks James.
Why is stress divided by num_atoms here? Maybe a bug?
https://github.com/ACEsuit/mace/blob/dee204f1f9d587f28fd792fdad1f45039ef71e94/mace/modules/loss.py#L30C1-L39C12
The Huber loss looks like it doesn't have the division by num_atoms.