maddpg-pettingzoo-pytorch
maddpg-pettingzoo-pytorch copied to clipboard
evaluate part
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"