Running into this error when running tutorial on IS2RE
ValueError: Scale factor OutBlock_4_sum (out_blocks.4.scale_sum) is not fitted. Please make sure that you either (1) load a checkpoint with fitted scale factors, (2) explicitly load scale factors using the model.scale_file attribute, or (3) fit the scale factors using the fit.py script.
Hey @dkiiml, it looks like you’re trying to run a GemNet-dT or GemNet-OC model without first fitting scaling factors, hence the error.
These scaling factors are fit on a few batches of data prior to training in order to stabilize the variance of activations. See Sec. 6 in the GemNet paper for more details on this.
We provide some set of scaling factors as part of the ocp codebase that you can reuse by passing the scale_file parameter in the YAML config. For example:
This will recalculate the scaling factors and save them in a checkpoint file path/to/save/checkpoint.pt, that you can then load and launch training from: