message | InvalidSubmission:
T [...]InvalidSubmission:
Traceback (most recent call last):
File "/workspace/src/duckietown-challenges/src/duckietown_challenges/cie_concrete.py", line 486, in wrap_evaluator
raise InvalidSubmission(out[SPECIAL_INVALID_SUBMISSION])
InvalidSubmission: Invalid solution:
Traceback (most recent call last):
File "/workspace/src/duckietown-challenges/src/duckietown_challenges/cie_concrete.py", line 585, in wrap_solution
solution.run(cis)
File "solution.py", line 111, in run
solve(params, cis)
File "solution.py", line 60, in solve
model.load("DDPG_2_2", "pytorch_models")
File "/workspace/ddpg.py", line 199, in load
self.actor.load_state_dict(torch.load('{}/{}_actor.pth'.format(directory, filename), map_location=device))
File "/opt/conda/lib/python3.6/site-packages/torch/serialization.py", line 303, in load
return _load(f, map_location, pickle_module)
File "/opt/conda/lib/python3.6/site-packages/torch/serialization.py", line 469, in _load
result = unpickler.load()
File "/opt/conda/lib/python3.6/site-packages/torch/serialization.py", line 437, in persistent_load
data_type(size), location)
File "/opt/conda/lib/python3.6/site-packages/torch/serialization.py", line 323, in restore_location
result = map_location(storage, location)
TypeError: 'torch.Device' object is not callable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/workspace/src/duckietown-challenges/src/duckietown_challenges/cie_concrete.py", line 590, in wrap_solution
raise InvalidSubmission(msg)
duckietown_challenges.exceptions.InvalidSubmission: Uncaught exception in solution:
Traceback (most recent call last):
File "/workspace/src/duckietown-challenges/src/duckietown_challenges/cie_concrete.py", line 585, in wrap_solution
solution.run(cis)
File "solution.py", line 111, in run
solve(params, cis)
File "solution.py", line 60, in solve
model.load("DDPG_2_2", "pytorch_models")
File "/workspace/ddpg.py", line 199, in load
self.actor.load_state_dict(torch.load('{}/{}_actor.pth'.format(directory, filename), map_location=device))
File "/opt/conda/lib/python3.6/site-packages/torch/serialization.py", line 303, in load
return _load(f, map_location, pickle_module)
File "/opt/conda/lib/python3.6/site-packages/torch/serialization.py", line 469, in _load
result = unpickler.load()
File "/opt/conda/lib/python3.6/site-packages/torch/serialization.py", line 437, in persistent_load
data_type(size), location)
File "/opt/conda/lib/python3.6/site-packages/torch/serialization.py", line 323, in restore_location
result = map_location(storage, location)
TypeError: 'torch.Device' object is not callable
|