From 7190e4a599ac140b056517e50f753f6541ff5173 Mon Sep 17 00:00:00 2001 From: Naveen Raj Manoharan <150385340+Naveen-Raj-M@users.noreply.github.com> Date: Tue, 22 Oct 2024 21:30:03 -0500 Subject: [PATCH] render rollout merge (#87) * render rollout merge * Update config.yaml * Added unit test for render-rollout merge * deleted debugging fixtures * update config * add test for VTK rendering * bug fix for NoneType material property * remove test_rendering and temp directory * add test for vtk rendering * modify config for render_rollout merge * update to merge render-rollout * set default mode to gif * rewrite 'rendering' function in an extensible way * improve readability and consistency * update rendering options * run black * minor fix on viewpoint_rotation type * improve logging and reformat with black * refactor: move n_files function to a separate count_n_files.py in utils directory * rename count_n_files.py to file_utils.py * minor fix on module import * run black * minor fix on raising error * add package for reading vtk files --------- Co-authored-by: Naveen Raj Manoharan Co-authored-by: Naveen Raj Manoharan --- README.md | 21 ++- config.yaml | 10 ++ gns/args.py | 15 +++ gns/render_rollout.py | 5 +- gns/train.py | 41 +++++- requirements.txt | 1 + test/test_vtk.py | 293 ++++++++++++++++++++++++++++++++++++++++++ utils/file_utils.py | 29 +++++ 8 files changed, 408 insertions(+), 7 deletions(-) create mode 100644 test/test_vtk.py create mode 100644 utils/file_utils.py diff --git a/README.md b/README.md index d1f70ac..07f8732 100644 --- a/README.md +++ b/README.md @@ -34,13 +34,19 @@ python3 -m gns.train mode="train" training.resume=True python3 -m meshnet.train mode="train" training.resume=True ``` -> Rollout prediction +> Rollout prediction and render ```shell # For particulate domain, python3 -m gns.train mode="rollout" # For mesh-based domain, python3 -m meshnet.train mode="rollout" ``` +### Rendering Options +Set rendering mode with `rendering.mode=