brasil-ia | Master-IASD | ourasi | Error | 0 | 1000 | 0 | 0 | bytes: b'Traceback (most recent call last):\n File "/home/lamsade/testplatform/test-platform-a2/repos/Master-IASD/brasil-ia/generate.py", line 27, in \n model = load_model(model, \'checkpoints\')\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/home/lamsade/testplatform/test-platform-a2/repos/Master-IASD/brasil-ia/utils.py", line 71, in load_model\n G.load_state_dict({k.replace(\'module.\', \'\'): v for k, v in ckpt.items()})\n File "/home/lamsade/testplatform/test-platform-a2/venv/lib/python3.11/site-packages/torch/nn/modules/module.py", line 2041, in load_state_dict\n raise RuntimeError(\'Error(s) in loading state_dict for {}:\\n\\t{}\'.format(\nRuntimeError: Error(s) in loading state_dict for Generator:\n\tMissing key(s) in state_dict: "fc3.weight", "fc3.bias", "fc4.weight", "fc4.bias". \n\tsize mismatch for fc1.weight: copying a param with shape torch.Size([400, 100]) from checkpoint, the shape in current model is torch.Size([256, 100]).\n\tsize mismatch for fc1.bias: copying a param with shape torch.Size([400]) from checkpoint, the shape in current model is torch.Size([256]).\n\tsize mismatch for fc2.weight: copying a param with shape torch.Size([784, 400]) from checkpoint, the shape in current model is torch.Size([512, 256]).\n\tsize mismatch for fc2.bias: copying a param with shape torch.Size([784]) from checkpoint, the shape in current model is torch.Size([512]).\n' |