-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError #40
Comments
Hi, I got the same issue and was about to report it. Fresh installation on a new workstation. |
Hi Folks, Fresh install, getting the same error: │ /membrain-seg/lib/python3.9/site-packages/pytorch_lightning/utilities/model_helpers.py:93 in get |
Hi all, just to say I know that @LorenzLamm is away at the moment on holiday. Not sure this ever worked, the correct API is to call the method on the class model = ModelClass.load_from_checkpoint() Easy fix if someone wants to open a PR |
Thanks everyone who reported the issue. I managed to reproduce it in a fresh install. It looks like a recent update in pytorch-lightning (or some other dependency) broke our code. Please bear with us while we work on a fix, which might take a couple days.
|
Hi everyone, So if you now I'll leave this issue open for a couple of days in case a problem comes up. |
Just to confirm that it's all good on my side. Thanks. |
Great, thanks for the feedback. Closing this issue now. |
Just cloned the repo and installation went fine. Now testing
membrain segment --tomogram-path some_tomo_gram.mrc --ckpt-path MemBrain_seg_v9b.ckpt
produces this error:
TypeError: The classmethod
SemanticSegmentationUnet.load_from_checkpointcannot be called on an instance. Please call it on the class type and make sure the return value is used.
coming from membrain_seg/segmentation/segment.py:82 in segment
Is this a bug or am I doing something wrong here?
The text was updated successfully, but these errors were encountered: