danijar / dreamerv2

Mastering Atari with Discrete World Models

Home Page:https://danijar.com/dreamerv2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: unsupported operand type(s) for //=: 'str' and 'int'

Lufffya opened this issue · comments

commented

I ran this code

python dreamer.py --logdir ~/logdir/atari_pong/dreamerv2/1 --configs defaults atari --task atari_pong

But I got this mistake

Can you post the stack trace, please?

commented

It seems that the problem is this line of code

config.steps //= config.action_repeat

image

It looks like config.steps is a string for some reason, either because how the configs file is read or how the flags are parsed. My guess is that this could be specific to Windows, because I have never seen this problem on Linux. Unfortunately, I don't have the capacity to support Windows. If you find a solution, please comment here so other people can benefit from it.