Collecting experience...
Traceback (most recent call last):
File "train_sim.py", line 47, in
agent.storetransition(s, a, r, s, int(done))
File "E:\genshin_auto_fish\fisher\agent.py", line 45, in storetransition
transition = np.hstack((s, [a, r], s, done)) # horizontally stack these vectors
File "<__array_function__ internals>", line 200, in hstack
File "D:\Anaconda3\envs\ysfishing\lib\site-packages\numpy\core\shape_base.py", line 363, in hstack
arrs = atleast_1d(*tup)
File "<__array_function__ internals>", line 200, in atleast_1d
File "D:\Anaconda3\envs\ysfishing\lib\site-packages\numpy\core\shape_base.py", line 65, in atleast_1d
ary = asanyarray(ary)
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.
以上的报错请求大佬救救
代码能跑起来自动钓鱼,就是这个python train_sim.py会报错,然后就缺少一个399的模型,原神游戏内的训练就跑不了
(ysfishing) E:\genshin_auto_fish>python train_sim.py
Collecting experience... Traceback (most recent call last): File "train_sim.py", line 47, in
agent.storetransition(s, a, r, s, int(done))
File "E:\genshin_auto_fish\fisher\agent.py", line 45, in storetransition
transition = np.hstack((s, [a, r], s, done)) # horizontally stack these vectors
File "<__array_function__ internals>", line 200, in hstack
File "D:\Anaconda3\envs\ysfishing\lib\site-packages\numpy\core\shape_base.py", line 363, in hstack
arrs = atleast_1d(*tup)
File "<__array_function__ internals>", line 200, in atleast_1d
File "D:\Anaconda3\envs\ysfishing\lib\site-packages\numpy\core\shape_base.py", line 65, in atleast_1d
ary = asanyarray(ary)
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.
以上的报错请求大佬救救
代码能跑起来自动钓鱼,就是这个python train_sim.py会报错,然后就缺少一个399的模型,原神游戏内的训练就跑不了