The following error is thrown in the original code using later versions of Lightning (e.g. 2.2.1):
TypeError: The classmethod `EfficientSpeech.load_from_checkpoint` cannot be called on an instance. Please call it on the class type and make sure the return value is used.
The following error is thrown in the original code using later versions of Lightning (e.g. 2.2.1):
Fix by changing the code to call
load_from_checkpoint
using class method (see https://github.com/Lightning-AI/pytorch-lightning/issues/18169).