Arnold icon indicating copy to clipboard operation
Arnold copied to clipboard

AssertionError

Open lz199144 opened this issue 7 years ago • 5 comments

Traceback (most recent call last):
  File "arnold.py", line 24, in <module>
    parse_game_args(remaining + ['--dump_path', dump_path])
  File "/home/ricardoliu/Arnold/src/args.py", line 114, in parse_game_args
    module.main(parser, args)
  File "/home/ricardoliu/Arnold/src/doom/scenarios/health_gathering.py", line 101, in main
    evaluate_health_gathering(game, network, params)
  File "/home/ricardoliu/Arnold/src/doom/scenarios/health_gathering.py", line 144, in evaluate_health_gathering
    action = network.next_action(last_states)
  File "/home/ricardoliu/Arnold/src/model/dqn/base.py", line 193, in next_action
    scores, pred_features = self.f_eval(last_states)
  File "/home/ricardoliu/Arnold/src/model/dqn/feedforward.py", line 51, in f_eval
    [variables[-1, i] for i in range(self.params.n_variables)]
  File "/usr/local/lib/python2.7/dist-packages/torch/nn/modules/module.py", line 477, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/ricardoliu/Arnold/src/model/dqn/feedforward.py", line 27, in forward
    for x in x_variables)
AssertionError

lz199144 avatar Aug 21 '18 07:08 lz199144

I've got the same error.

PygmalionChen avatar Sep 17 '18 07:09 PygmalionChen

me too

RozenAstrayChen avatar Oct 06 '18 17:10 RozenAstrayChen

I solved this by rolling back my PyTorch version to 0.3.1

sophiefsadler avatar Nov 12 '18 11:11 sophiefsadler

I think I fixed the assertion with the PR here: https://github.com/glample/Arnold/pull/10 Made it work with python3 and pytorch 1.3.1

biancini avatar Nov 28 '19 10:11 biancini

File "D:\PyCharmproject\Arnold-master\Arnold-master\src\doom\game.py", line 133, in init assert os.path.isfile(self.scenario_path) AssertionError D:\PyCharmproject\Arnold-master\Arnold-master\resources\scenarios.wad

can anyone solve this issue?

Throne-myworld avatar Nov 18 '21 12:11 Throne-myworld