Skip to content
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

There are some issues with the file 'enviromenents. yaml' #11

Open
1781950192 opened this issue Aug 10, 2024 · 1 comment
Open

There are some issues with the file 'enviromenents. yaml' #11

1781950192 opened this issue Aug 10, 2024 · 1 comment

Comments

@1781950192
Copy link

enviromenents. yaml, The environment here is incomplete

An error occurred while running this code:

python runs/run.py --cfg configs/projects/CLIPFSAR/ucf101/CLIPFSAR_UCF101_1shot_v1.yaml
/home/robot/anaconda3/envs/hyrsm/lib/python3.6/site-packages/aliyunsdkcore/auth/algorithm/sha_hmac256.py:20: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
/home/robot/MyCode/CLIP-FSAR-master/models/base/few_shot.py:56: UserWarning: PyTorch version 1.7.1 or higher is recommended
warnings.warn("PyTorch version 1.7.1 or higher is recommended")
Loading config from /home/robot/MyCode/CLIP-FSAR-master/configs/projects/CLIPFSAR/ucf101/CLIPFSAR_UCF101_1shot_v1.yaml.

Traceback (most recent call last):
File "/home/robot/MyCode/CLIP-FSAR-master/models/base/few_shot.py", line 325, in load
model = torch.jit.load(opened_file, map_location=device if jit else "cpu").eval()
File "/home/robot/anaconda3/envs/hyrsm/lib/python3.6/site-packages/torch/jit/init.py", line 230, in load
cpp_module = torch._C.import_ir_module_from_buffer(cu, f.read(), map_location, extra_files)
RuntimeError: version
<= kMaxSupportedFileFormatVersion INTERNAL ASSERT FAILED at /opt/conda/conda-bld/pytorch_1591914742272/work/caffe2/serialize/inline_container.cc:132, please report a bug to PyTorch. Attempted to read a PyTorch file with version 4, but the maximum supported version for reading is 3. Your PyTorch installation may be too old.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "runs/run.py", line 103, in
main()
File "runs/run.py", line 97, in main
launch_task(cfg=run[0], init_method=run[0].get_args().init_method, func=run[1])
File "/home/robot/MyCode/CLIP-FSAR-master/utils/launcher.py", line 36, in launch_task
func(cfg=cfg)
File "/home/robot/MyCode/CLIP-FSAR-master/runs/train_net_few_shot.py", line 477, in train_few_shot
model, model_ema = build_model(cfg)
File "/home/robot/MyCode/CLIP-FSAR-master/models/base/builder.py", line 32, in build_model
model = BaseVideoModel(cfg)
File "/home/robot/MyCode/CLIP-FSAR-master/models/base/models.py", line 40, in init
self.head = HEAD_REGISTRY.get(cfg.VIDEO.HEAD.NAME)(cfg=cfg)
File "/home/robot/MyCode/CLIP-FSAR-master/models/base/few_shot.py", line 2700, in init
backbone, self.preprocess = load(cfg.VIDEO.HEAD.BACKBONE_NAME, device="cuda", cfg=cfg, jit=False) # ViT-B/16
File "/home/robot/MyCode/CLIP-FSAR-master/models/base/few_shot.py", line 332, in load
state_dict = torch.load(opened_file, map_location="cpu")
File "/home/robot/anaconda3/envs/hyrsm/lib/python3.6/site-packages/torch/serialization.py", line 593, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "/home/robot/anaconda3/envs/hyrsm/lib/python3.6/site-packages/torch/serialization.py", line 763, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
EOFError: Ran out of input

@henry3556108
Copy link

I face the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants