-
Notifications
You must be signed in to change notification settings - Fork 13
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
TypeError: tuple indices must be integers or slices, not tuple #3
Comments
Since you are using the env.py as the environment, the prey policy should be implemented outside the environment by yourself. This is a little different from the modified gym environment which we implement the prey policy inside the environment. You can refer this repository to see how to use env.py correctly. I am not sure whether this is caused by the environment. |
Hello! I got the same error when running the main.py main_add_agents.py, slow_replay.py files, as shown below: |
Would you please delete the env folder and try our env.py implementation. You can refer this repository . |
Hello.
Thanks for your codes, but I got some errors.
I’m using your
env.py
, so I renamed theenv
folder and changedfrom env import envs
toimport env as envs
.Is it correct?
Since I only have CPU, I change
self.sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))
toself.sess = tf.Session()
But maybe this is not related to the errors.
When I ran the codes, I get such errors:
I tried to solve it by changing
action[ii,:] = self.agents[ii].action(state[ii,:])
toaction[ii,:] = self.agents[ii].action(state[ii])
, but it lead to other errors.Do you have some idea of the errors?
Thank you.
The text was updated successfully, but these errors were encountered: