-
Notifications
You must be signed in to change notification settings - Fork 40
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
Errror running example job #75
Comments
The latest version of the code is no longer compatible with the pretrained weights because we did indeed recently change some things there. Rather than installing from the latest commit, if you install from a release and use weights provided there everything should be consistent. Apologies for this confusion. A new and better version is coming soon, but in the mean time, some things are a bit in flux. |
Hi, I tried different peak files provided as well: casanovo --mode=denovo --model=2022-10-10_weights/casanovo_massivekb.ckpt --peak_path=Casanovo_preprocessed_data/preproc.high.mouse.PXD004948.mgf --config=casanovo/config.yaml I encounter same error every time as follows: Traceback (most recent call last): Please kindly indicate which step I might did wrong. Thanks! |
Hi! I have encountered this bug before, and have found that uninstalling and then reinstalling the PyPI package |
Thanks a lot! It works for me. By the way, would you please provide more information on "casanovo_massivekb.ckpt"? How it this trained, on which datasets? |
Hi, |
Thanks for your information! I will close this issue. |
When running the provided following command:
casanovo --mode=denovo --model=22-07-02_weights/pretrained_excl_mouse.ckpt --peak_path=sample_data/sample_preprocessed_spectra.mgf --config=casanovo/config.yaml
This error shows:
File "D:\miniconda3\lib\site-packages\torch\nn\modules\module.py", line 1497, in load_state_dict
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for Spec2Pep:
size mismatch for decoder.aa_encoder.weight: copying a param with shape torch.Size([25, 512]) from checkpoint, the shape in current model is torch.Size([29, 512]).
size mismatch for decoder.final.weight: copying a param with shape torch.Size([25, 512]) from checkpoint, the shape in current model is torch.Size([29, 512]).
size mismatch for decoder.final.bias: copying a param with shape torch.Size([25]) from checkpoint, the shape in current model is torch.Size([29]).
Did you recently updated depthcharge-ms, the pretrained weights, the sample .mgf file or config.yaml?
Shall I try any older version of any of these files? Thanks!
The text was updated successfully, but these errors were encountered: