-
Notifications
You must be signed in to change notification settings - Fork 17
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
Headless mode option #8
Comments
I think you can follow this route: https://github.com/zhouxian/FluidLab/blob/56348da2ac22598fb46097ded0ee85b805602344/fluidlab/optimizer/recorder.py#L52C1-L52C1 |
I'm not quite sure if I understand what you mean. Do you mean that I should edit the render_frame() function in gl_renderer.py to disable imshow? |
When calling render_frame(), you can specify the render mode: either 'human' or 'rgb_array'. The latter will simply return a rendered image array without showing a window. For details, see:
|
BTW, I am not sure what your exact need is and your timeline, but in case your need for fluid simulation is not urgent, this repo(https://github.com/Genesis-Embodied-AI/Genesis) might be of interest to you. It's a superset of FluidLab with a lot more features, and way easier to use. We expect to release it in 2~3 months. |
I took a look at the code, and under 'rgb_array', there is still imshow under mode == 'rgb_array':
|
I see. I don't remember exactly why it's there, but i think you can comment out those code. The image is generated here:
|
I am trying to run fluidlab on a remote pc. As such, I am trying to save the frames generated using the save variable in fluidlab.optimizer.recorder.py. However, I am running into an issue regarding the display:
I am wondering if there is a headless mode where I can bypass the cv2.imshow, or will I have to implement it myself. Thank you!
The text was updated successfully, but these errors were encountered: