Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssertionError #8

Open
lz199144 opened this issue Aug 21, 2018 · 5 comments
Open

AssertionError #8

lz199144 opened this issue Aug 21, 2018 · 5 comments

Comments

@lz199144
Copy link

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 lz199144 changed the title AssertError AssertionError Aug 21, 2018
@PygmalionChen
Copy link

I've got the same error.

@RozenAstrayChen
Copy link

me too

@sophiefsadler
Copy link

sophiefsadler commented Nov 12, 2018

I solved this by rolling back my PyTorch version to 0.3.1

@biancini
Copy link

I think I fixed the assertion with the PR here: #10
Made it work with python3 and pytorch 1.3.1

@Throne-myworld
Copy link

Throne-myworld commented Nov 18, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants