Closed Pipe-Runner closed 1 year ago
Hi there, 8GB of GPU memory is likely quite limited for the FrankaCabinet environment with camera. Compared with Cartpole, the FrankaCabinet environment has many more higher-fidelity meshes in the scene. You can try reducing the complexity of the scene to save some memory, such as setting numProps
to 0 to reduce the number of blocks in the drawer, and removing the ground plane.
@kellyguo11 I suspected this to be the issue. I have removed the props, but I should simplify the scene further. What GPU are you guys using to test this, by the way?
@kellyguo11 on second thought, if I run a single env, is there a way of doing the physics on the CPU instead of the GPU? That way, I may still be able to have enough memory for the camera-related tasks.
Hello, thanks a lot for the updates in v2023. Finally, having official support for cameras is precisely what I needed for my thesis. I have tried running your Cartpole Camera training example and things run fine. I had to dial back the number of envs to 10 for it to work. But it worked and trained just fine.
I am planning to retrofit the Franka cabinet example with the camera code. For now, I am not changing the obs buffer and just using the demo code to save images taken from the envs. But even with a single env, 16x16x3 img, it fails to even start the sim complaining about memory overflow.
This is a my retrofit code. For clarity, I have only added the 2 functions I have modified wrt to camera addition. The rest of the code is just refactored version of what you guys have and is tested, ie. works if I just set the flag
ENABLE_CAMERA=False
The following is the config that modifies the default over frankaCabinet
The following is a screenshot of my error:
GPU specs are here:
It is totaly possible that I might have done something stupid so my sinsincer apologies in advance.