Traceback (most recent call last): File "C:\Users\hp\Downloads\girs.py", line 610, in…
- User
Traceback (most recent call last): File "C:\Users\hp\Downloads\girs.py", line 610, in train(epochs=350, render=True) # Change to False if you want to disable rendering ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\hp\Downloads\girs.py", line 563, in train agent = Agent(render=render) ^^^^^^^^^^^^^^^^^^^^ File "C:\Users\hp\Downloads\girs.py", line 336, in init self.load_model() File "C:\Users\hp\Downloads\girs.py", line 341, in load_model self.model.load_state_dict(torch.load('model.pth', map_location=device)) File "C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\site-packages\torch\nn\modules\module.py", line 2153, in load_state_dict raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format( RuntimeError: Error(s) in loading state_dict for DuelingDQN: size mismatch for fc1.weight: copying a param with shape torch.Size([256, 11]) from checkpoint, the shape in current model is torch.Size([2120, 11]). size mismatch for fc1.bias: copying a param with shape torch.Size([256]) from checkpoint, the shape in current model is torch.Size([2120]). size mismatch for fc_adv.weight: copying a param with shape torch.Size([256, 256]) from checkpoint, the shape in current model is torch.Size([2120, 2120]). size mismatch for fc_adv.bias: copying a param with shape torch.Size([256]) from checkpoint, the shape in current model is torch.Size([2120]). size mismatch for fc_adv_out.weight: copying a param with shape torch.Size([3, 256]) from checkpoint, the shape in current model is torch.Size([3, 2120]). size mismatch for fc_val.weight: copying a param with shape torch.Size([256, 256]) from checkpoint, the shape in current model is torch.Size([2120, 2120]). size mismatch for fc_val.bias: copying a param with shape torch.Size([256]) from checkpoint, the shape in current model is torch.Size([2120]). size mismatch for fc_val_out.weight: copying a param with shape torch.Size([1, 256]) from checkpoint, the shape in current model is torch.Size([1, 2120]).
- Assistant