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

Headless, USE_MESA: True within the view section of the config file. Where exactly? #169

Closed
xpat opened this issue May 20, 2023 · 5 comments

Comments

@xpat
Copy link

xpat commented May 20, 2023

Begin Update ...

Where? The file is in animated_drawings/mvc_base_cfg.yaml.

scene:
  ADD_FLOOR: False
  ADD_AD_RETARGET_BVH: False
view:
  CLEAR_COLOR: [1.0, 1.0, 1.0, 0.0]
  BACKGROUND_IMAGE: null
  WINDOW_DIMENSIONS: [500, 500]
  DRAW_AD_RIG: False
  DRAW_AD_TXTR: True
  DRAW_AD_COLOR: False
  DRAW_AD_MESH_LINES: False
  USE_MESA: False
  CAMERA_POS: [0.0, 0.7, 2.0]
  CAMERA_FWD: [0.0, 0.5, 2.0]

Change USE_MESA: from False to True

---- End Update and close issue ----

Perhaps the Headless Rendering section in the README.md should be expanded?

There are a number of closed issues that are related to headless renderings: #96, #99, #158, #167, etc. Are those even issues if one changes the USE_MESA to true? Unfortunately I didn't notice the headless instructions until after I'd messed around with other solutions. But now that I see there's a section on Headless Rendering, I can't find where I'm supposed to change false to true.

Is it in:
AnimatedDrawings/animated_drawings/config.py? If so, where, in the Class View section? or
AnimatedDrawings/animated_drawings/view/view.py or
AnimatedDrawings/animated_drawings/view/mesa_view.py

or somewhere else? I'm not seeing it (partly because I'm panicking, hahaha).

I just almost successfully ran my first garlic_out test on a Ubuntu 22.04 in the cloud. Everything but the video was produced, e.g. mask.png, texture.png, bounding_box.yaml, char_cfg.yaml. Very exciting after a week torturing myself on an inadequately provisioned local machine.

@hjessmith
Copy link
Contributor

May I inquire about why you are panicking?

Don't change anything in the code. Rather, add those two lines to the top-level MVC config that is being passed into 'render.start()' function. Details about the MVC config options are here:

examples/config/README.md

@hjessmith
Copy link
Contributor

There are some os-specific dependencies required for osmesa rendering. You may find those closed issues helpful for resolving those.

@xpat
Copy link
Author

xpat commented May 21, 2023

The files in the MVC folder aren't where I expected I would need to add the USE_MESA: true directive (although good to know; I've managed to get a few -- but not all -- of those animations to work on my local machine - Chromebook with Debian 11). So that section on Headless Rendering only applies to the yaml files in the MVC section? There's no where to add it in image_to_animations.py or image_to_annotations.py or annotions_to_animations.py? I'll check.

Thanks for reminding me about examples/config/README.md I forgot to read it the first time around (in my panic! or really, my excitement -- but yes, I do have to remind myself to breathe deeply and remain calm and read the instructions!).

I'm so excited to be nearly at the point where I can get this to work. (Huge difference installing it on a powerful cloud vm and not beating my head against a mid-range Chromebook.)

@hjessmith
Copy link
Contributor

All of the options for running the Animated Drawings code in different ways are specified within the MVC config file (or, at least, that was my intention when creating them). The [image|annotations]to[annotations|animation].py files are just examples to get you started, they aren't supposed to be robust scripts that support passing in different parameters.

I hope you get it working soon!

@xpat
Copy link
Author

xpat commented May 21, 2023

I got it to work. See the Update, above. Thank you, btw, for this great project.

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

2 participants