carla_cil_pytorch icon indicating copy to clipboard operation
carla_cil_pytorch copied to clipboard

Error when run main.py

Open SExpert12 opened this issue 9 months ago • 0 comments

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?

SExpert12 avatar May 25 '24 10:05 SExpert12