IrisRainbowNeko / genshin_auto_fish

基于深度强化学习的原神自动钓鱼AI
4.77k stars 719 forks source link

运行python train.py出错 #110

Open q764447890 opened 3 years ago

q764447890 commented 3 years ago

2

Yooofox commented 3 years ago

我的也是这样

Traceback (most recent call last): File "train.py", line 25, in net.load_state_dict(torch.load(args.resume)) File "C:\Users\1\AppData\Local\Programs\Python\Python37\lib\site-packages\torch\serialization.py", line 581, in load with _open_file_like(f, 'rb') as opened_file: File "C:\Users\1\AppData\Local\Programs\Python\Python37\lib\site-packages\torch\serialization.py", line 230, in _open_file_like return _open_file(name_or_buffer, mode) File "C:\Users\1\AppData\Local\Programs\Python\Python37\lib\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: './output/fish_sim_net.pth'

MoOSeeW commented 3 years ago

同 想请教一下如何解决

cydn commented 3 years ago

我的也是这样

Traceback (most recent call last): File "train.py", line 25, in net.load_state_dict(torch.load(args.resume)) File "C:\Users\1\AppData\Local\Programs\Python\Python37\lib\site-packages\torch\serialization.py", line 581, in load with _open_file_like(f, 'rb') as opened_file: File "C:\Users\1\AppData\Local\Programs\Python\Python37\lib\site-packages\torch\serialization.py", line 230, in _open_file_like return _open_file(name_or_buffer, mode) File "C:\Users\1\AppData\Local\Programs\Python\Python37\lib\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: './output/fish_sim_net.pth'

我好像把output/fish_sim_net_399.pth改了个名字就好了,但是实际操作还没成功

StarzL1kerain commented 2 years ago

image 这几个文件都要