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

Error when run main.py #10

Open
SExpert12 opened this issue May 25, 2024 · 0 comments
Open

Error when run main.py #10

SExpert12 opened this issue May 25, 2024 · 0 comments

Comments

@SExpert12
Copy link

Hi,

I am getting this error when I run main.py.

python3 main.py
[2024-05-25 08:08:36.538732]: batch_size: 1
[2024-05-25 08:08:36.538852]: branch_weight: 1
[2024-05-25 08:08:36.538903]: epochs: 90
[2024-05-25 08:08:36.538942]: eval_dir: /home/ryzen/carlacilpytorch/datacilpytorch/AgentHuman/SegVal
[2024-05-25 08:08:36.538981]: evaluate: False
[2024-05-25 08:08:36.539018]: evaluate_log:
[2024-05-25 08:08:36.539054]: gpu: None
[2024-05-25 08:08:36.539090]: id: test
[2024-05-25 08:08:36.539127]: lr: 0.0001
[2024-05-25 08:08:36.539165]: lr_gamma: 0.5
[2024-05-25 08:08:36.539201]: lr_step: 10
[2024-05-25 08:08:36.539236]: net_structure: 2
[2024-05-25 08:08:36.539271]: print_freq: 10
[2024-05-25 08:08:36.539306]: resume:
[2024-05-25 08:08:36.539341]: seed: None
[2024-05-25 08:08:36.539377]: speed_weight: 0.1
[2024-05-25 08:08:36.539412]: start_epoch: 0
[2024-05-25 08:08:36.539447]: train_dir: /home/ryzen/carlacilpytorch/datacilpytorch/AgentHuman/SeqTrain
[2024-05-25 08:08:36.539485]: weight_decay: 0.0001
[2024-05-25 08:08:36.539521]: workers: 4
[2024-05-25 08:08:36.539556]: world_size: 1
Traceback (most recent call last):
File "main.py", line 409, in
main()
File "main.py", line 149, in main
torch.load("./save_models/new_structure_best.pth")['state_dict'])
File "/home/.local/lib/python3.8/site-packages/torch/serialization.py", line 997, in load
with _open_file_like(f, 'rb') as opened_file:
File "/home/.local/lib/python3.8/site-packages/torch/serialization.py", line 444, in _open_file_like
return _open_file(name_or_buffer, mode)
File "/home/.local/lib/python3.8/site-packages/torch/serialization.py", line 425, in init
super().init(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: './save_models/new_structure_best.pth'

How to resolve this?

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

1 participant