IrisRainbowNeko / genshin_auto_fish

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

钓完第一条鱼后卡死,且不会换饵 #207

Open cacikoo opened 2 years ago

cacikoo commented 2 years ago

2021-12-30 03:57:58.100 | INFO | fisher.predictor:inference:77 - Infer time: 0.2080s 2021-12-30 03:57:58.535 | INFO | fisher.predictor:inference:77 - Infer time: 0.2100s 2021-12-30 03:57:58.961 | INFO | fisher.predictor:inference:77 - Infer time: 0.2020s 2021-12-30 03:58:00.397 | INFO | fisher.predictor:inference:77 - Infer time: 0.2000s tensor(348.8350) tensor(141.4723) 2021-12-30 03:58:00.696 | INFO | fisher.predictor:inference:77 - Infer time: 0.1990s tensor(290.0164) tensor(146.4398) 2021-12-30 03:58:01.027 | INFO | fisher.predictor:inference:77 - Infer time: 0.2270s tensor(78.7783) tensor(100.5845) 2021-12-30 03:58:01.334 | INFO | fisher.predictor:inference:77 - Infer time: 0.2060s tensor(-97.8647) tensor(63.8777) 2021-12-30 03:58:01.647 | INFO | fisher.predictor:inference:77 - Infer time: 0.2100s Traceback (most recent call last): File "D:\MyTool\genshin_auto_fish\fisher\environment.py", line 70, in throw_rod key=lambda x: distance((x[2][0]+x[2][2])/2, (x[2][1]+x[2][3])/2, rod_cx, rod_cy)) ValueError: min() arg is an empty sequence 2021-12-30 03:58:01.950 | INFO | fisher.predictor:inference:77 - Infer time: 0.2040s tensor(-101.6060) tensor(-2.5364) 2021-12-30 03:58:02.261 | INFO | fisher.predictor:inference:77 - Infer time: 0.2060s 2021-12-30 03:58:02.686 | INFO | fisher.predictor:inference:77 - Infer time: 0.2040s

ykjiang123 commented 2 years ago

我也是 你解决了吗

Alex-Beng commented 2 years ago

应该是env.step返回done的条件太难触发了。 我的解决方案是自己加了段检测图标退出钓鱼的代码,类似检测咬钩。

sandboxdream commented 2 years ago

221