tzuhanchang / HyPER

Hypergraph for Particle Event Reconstruction
MIT License
4 stars 1 forks source link

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

Closed tzuhanchang closed 6 months ago

tzuhanchang commented 6 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.