Open guanjiayi opened 3 months ago
That's expected as one process can only have one MetaDrive instance.
So we suggest:
env1 = MetaDriveEnv(...)
...
env1.close()
env2 = MetaDriveEnv(...)
...
env2.close()
In the case where you have a training environment, and you want to instantiate a new eval env, you should close the training env first before creating the eval env.
Hi Dr. Peng. Thank you for the feedback. I was quite busy over the past couple of days and forgot to respond. The issue has been resolved.
Hello. After training the model for a period, I conducted online testing by calling the environment. However, when I called env.reset() for the second time, it prompted that the current MetaDrive instance was corrupted and suggested calling env.close() before env.reset(). Nevertheless, even after calling env.close() before env.reset(), the problem still persisted.
The error message is as follows.
Below is our code snippet:
Note the len(self.env_list) ==1