tzuhanchang / HyPER

Hypergraph for Particle Event Reconstruction
MIT License
3 stars 0 forks source link

Fix `TypeError` raised by `HyPER.predict` #30

Closed tzuhanchang closed 3 months ago

tzuhanchang commented 3 months ago

Following the updated pytorch_lightning, the HyPER.predict raises

TypeError: The classmethod `HyPERModel.load_from_checkpoint` cannot be called on an instance. Please call it on the class type and make sure the return value is used.

This issue can be fond in https://github.com/Lightning-AI/pytorch-lightning/issues/18169.