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

TypeError: can't pickle MatterSim.Simulator objects #108

Open
IMNearth opened this issue Mar 7, 2022 · 1 comment
Open

TypeError: can't pickle MatterSim.Simulator objects #108

IMNearth opened this issue Mar 7, 2022 · 1 comment

Comments

@IMNearth
Copy link

IMNearth commented Mar 7, 2022

Hi,

I'm trying to speed up the training of the navigation agents. I've tried python's multiprocessing package but I get this error:
TypeError: can't pickle MatterSim.Simulator objects

It has been found that pybind11 support C++ objects to be pickled in python by pickling-support.

Would you please add this feature to V0.1 M3D simulator ?

Thank you.

PS: I have also tried the newest version of M3D simulator. Although the speed of new simulator is faster than the v0.1 in case of loop call, multiprocessing can speed up v0.1 simulator by 3.x faster than the newest version (batch_size = 16). I would appreciate if the v0.1 simulator can have pickle support.

@IMNearth IMNearth changed the title TypeError: can't pickleMatterSim.Simulator objects TypeError: can't pickle MatterSim.Simulator objects Mar 7, 2022
@IMNearth
Copy link
Author

IMNearth commented Mar 8, 2022

Anyone has the idea about how to define getstate and setstate in the c++ source of M3D simulator ?
I am not an expert on c++ .... :(

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

1 participant