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

where is .pth #4

Open
sudaAustin opened this issue Jun 17, 2024 · 4 comments
Open

where is .pth #4

sudaAustin opened this issue Jun 17, 2024 · 4 comments

Comments

@sudaAustin
Copy link

How can I get '/path/to/m3ae_base_audio.pth'
as I use MVSA dataset by input python main.py --train --ckpt_path ckpt --gpu_ids 0 --batch_size 64 --lorb m3ae --modulation Normal --epochs 100 --datasetn MVSA --gs_flag --dynamic
and the error comes:
Traceback (most recent call last):
File "main.py", line 968, in
main(av_alpha = 0.55)
File "main.py", line 713, in main
model = M3AEClassifier(args)
File "/home/zyzhao/mutimodal_sentiment_classification/MLA/models/basic_model.py", line 170, in init
sdA_audio = torch.load(m3ae_ckpt_audio, map_location=device)
File "/home/zyzhao/anaconda3/envs/MLA/lib/python3.8/site-packages/torch/serialization.py", line 579, in load
with _open_file_like(f, 'rb') as opened_file:
File "/home/zyzhao/anaconda3/envs/MLA/lib/python3.8/site-packages/torch/serialization.py", line 230, in _open_file_like
return _open_file(name_or_buffer, mode)
File "/home/zyzhao/anaconda3/envs/MLA/lib/python3.8/site-packages/torch/serialization.py", line 211, in init
super(_open_file, self).init(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/m3ae_base_audio.pth'

@zhenzhangchen
Copy link

How can I get '/path/to/m3ae_base_audio.pth' as I use MVSA dataset by input python main.py --train --ckpt_path ckpt --gpu_ids 0 --batch_size 64 --lorb m3ae --modulation Normal --epochs 100 --datasetn MVSA --gs_flag --dynamic and the error comes: Traceback (most recent call last): File "main.py", line 968, in main(av_alpha = 0.55) File "main.py", line 713, in main model = M3AEClassifier(args) File "/home/zyzhao/mutimodal_sentiment_classification/MLA/models/basic_model.py", line 170, in init sdA_audio = torch.load(m3ae_ckpt_audio, map_location=device) File "/home/zyzhao/anaconda3/envs/MLA/lib/python3.8/site-packages/torch/serialization.py", line 579, in load with _open_file_like(f, 'rb') as opened_file: File "/home/zyzhao/anaconda3/envs/MLA/lib/python3.8/site-packages/torch/serialization.py", line 230, in _open_file_like return _open_file(name_or_buffer, mode) File "/home/zyzhao/anaconda3/envs/MLA/lib/python3.8/site-packages/torch/serialization.py", line 211, in init super(_open_file, self).init(open(name, mode)) FileNotFoundError: [Errno 2] No such file or directory: '/path/to/m3ae_base_audio.pth'

hello,did you work it out?

@nepentheSO16
Copy link

I also have this problem. Could you tell me how to fix it?

@user2021wsy
Copy link

How can I get '/path/to/m3ae_base_audio.pth' as I use MVSA dataset by input python main.py --train --ckpt_path ckpt --gpu_ids 0 --batch_size 64 --lorb m3ae --modulation Normal --epochs 100 --datasetn MVSA --gs_flag --dynamic and the error comes: Traceback (most recent call last): File "main.py", line 968, in main(av_alpha = 0.55) File "main.py", line 713, in main model = M3AEClassifier(args) File "/home/zyzhao/mutimodal_sentiment_classification/MLA/models/basic_model.py", line 170, in init sdA_audio = torch.load(m3ae_ckpt_audio, map_location=device) File "/home/zyzhao/anaconda3/envs/MLA/lib/python3.8/site-packages/torch/serialization.py", line 579, in load with _open_file_like(f, 'rb') as opened_file: File "/home/zyzhao/anaconda3/envs/MLA/lib/python3.8/site-packages/torch/serialization.py", line 230, in _open_file_like return _open_file(name_or_buffer, mode) File "/home/zyzhao/anaconda3/envs/MLA/lib/python3.8/site-packages/torch/serialization.py", line 211, in init super(_open_file, self).init(open(name, mode)) FileNotFoundError: [Errno 2] No such file or directory: '/path/to/m3ae_base_audio.pth'

hello,did you work it out?

Could you tell me how to fix it?

@Mannix-D
Copy link

hi, have you guys figured out this issue? I barely can't find this m3ae_base_audio.pth file. I also find the correct file name is m3ae_base.pkl. However, the pkl file is difficult to load as a pre-trained model. I also emailed the author to question this problem, but I haven't received any response. One odd thing is that the GitHub records show that the author has built a new repository, but no issue with this project has been answered.

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

5 participants