You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When executing a subset selection using Class Ranker, the run fails if using PyTorch v1.12.1. This is somewhat expected as the default model has been trained with PyTorch 1.10.0.
It would be useful to have multiple models trained with different PyTorch versions shipped with RELION and enable relion_class_ranker to automatically select the correct one based on the PyTorch version (with CLI/GUI override).
Traceback (most recent call last):
File "/anfhome/apps/EasyBuild/x86_64/amd/zen3/EasyBuild/software/RELION/4.0.1-foss-2022a-CUDA-11.7.0/bin/relion_class_ranker.py", line 32, in <module>
model = torch.jit.load(model_fn)
File "/apps/EasyBuild/x86_64/amd/zen3/EasyBuild/software/PyTorch/1.12.1-foss-2022a-CUDA-11.7.0/lib/python3.10/site-packages/torch/jit/_serialization.py", line 162, in load
cpp_module = torch._C.import_ir_module(cu, str(f), map_location, _extra_files)
RuntimeError: Legacy model format is not supported on mobile.
in: /mnt/nvme/RELION/4.0.1/foss-2022a-CUDA-11.7.0/relion-4.0.1/src/class_ranker.cpp, line 1949
ERROR:
Failed to run external python script with the following command:
python /anfhome/apps/EasyBuild/x86_64/amd/zen3/EasyBuild/software/RELION/4.0.1-foss-2022a-CUDA-11.7.0/bin/relion_class_ranker.py /anfhome/apps/EasyBuild/x86_64/amd/zen3/EasyBuild/software/RELION/4.0.1-foss-2022a-CUDA-11.7.0/bin/relion_class_ranker_default_model.pt Select/job019/
=== Backtrace ===
relion_class_ranker(_ZN11RelionErrorC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_l+0x66) [0x4c7b56]
relion_class_ranker() [0x42b495]
relion_class_ranker(_ZN11ClassRanker14performRankingEv+0x96f) [0x49b8af]
relion_class_ranker(_ZN11ClassRanker3runEv+0x46) [0x4aa066]
relion_class_ranker(main+0x38) [0x47f898]
/lib64/libc.so.6(__libc_start_main+0xf5) [0x2b1d95e20555]
relion_class_ranker() [0x48035f]
==================
ERROR:
Failed to run external python script with the following command:
python /anfhome/apps/EasyBuild/x86_64/amd/zen3/EasyBuild/software/RELION/4.0.1-foss-2022a-CUDA-11.7.0/bin/relion_class_ranker.py /anfhome/apps/EasyBuild/x86_64/amd/zen3/EasyBuild/software/RELION/4.0.1-foss-2022a-CUDA-11.7.0/bin/relion_class_ranker_default_model.pt Select/job019/
The text was updated successfully, but these errors were encountered:
When executing a subset selection using Class Ranker, the run fails if using PyTorch v1.12.1. This is somewhat expected as the default model has been trained with PyTorch 1.10.0.
It would be useful to have multiple models trained with different PyTorch versions shipped with RELION and enable
relion_class_ranker
to automatically select the correct one based on the PyTorch version (with CLI/GUI override).Environment:
Job options:
note.txt
in the job directory):Error message:
The text was updated successfully, but these errors were encountered: