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

evaluate part #6

Open
shivarajabi opened this issue Jul 28, 2023 · 1 comment
Open

evaluate part #6

shivarajabi opened this issue Jul 28, 2023 · 1 comment

Comments

@shivarajabi
Copy link

the main code exacute successfully and after that in result 5 folder i got model.pt but when i run evaluate on this file i get this error i will be apperciate if you help me out 👍
im using colab and requierments are installed properly.

INFO:root:agent_0 action: 1
INFO:root:agent_1 action: 3
INFO:root:agent_2 action: 3


NoSuchDisplayException Traceback (most recent call last)

/content/drive/MyDrive/maddpg-pettingzoo-pytorch-master/evaluate.py in
39 actions = maddpg.select_action(states)
40 next_states, rewards, dones, infos = env.step(actions)
---> 41 frame_list.append(Image.fromarray(env.render(mode='rgb_array')))
42 states = next_states
43

13 frames

/usr/local/lib/python3.10/dist-packages/pyglet/canvas/xlib.py in init(self, name, x_screen)
86 self._display = xlib.XOpenDisplay(name)
87 if not self._display:
---> 88 raise NoSuchDisplayException(f'Cannot connect to "{name}"')
89
90 screen_count = xlib.XScreenCount(self._display)

NoSuchDisplayException: Cannot connect to "None"

@dongingmaker
Copy link

是不是pyglet版本用了最新版,你回退到1.5.21试试
Did the pyglet version use the latest version? You can try rolling back to 1.5.21

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

2 participants