Download bench/agent/code/cg3d/__init__.py from weihao1115/rsi4dc: direct link, hf CLI and curl.
- Browser
- Download file 871 Bytes
-
https://huggingface.co/datasets/weihao1115/rsi4dc/resolve/main/bench/agent/code/cg3d/__init__.py
- Command line
-
hf download hf://datasets/weihao1115/rsi4dc/bench/agent/code/cg3d/__init__.py
-
curl -L -o __init__.py https://huggingface.co/datasets/weihao1115/rsi4dc/resolve/main/bench/agent/code/cg3d/__init__.py
871 Bytes
| """cg3d: dependency-light (numpy + torch) re-implementation of the CounterGround3D scene-edit executor. | |
| from cg3d import SceneStore, RecordTables, apply_edit, realize | |
| store = SceneStore(scene_dirs=[".../scenes"], superpoint_dir=".../superpoints", | |
| axis_align=".../axis_align_matrix.json") | |
| tables = RecordTables(".../records") | |
| state, info = realize(item["edit"], item["scene_id"], store, tables) # edited raw-frame scene | |
| """ | |
| from .edit import (aligned_flip, apply_edit, apply_T, canonical_edit, edit_ops, flip_transform, has_flip, # noqa: F401 | |
| mirror_aligned_pose, mirror_situated_pose, preserves_point_order, realize, scenes_needed) | |
| from .executor import RecordTables, edited_cloud # noqa: F401 | |
| from .recolor import apply_color, fill_colors # noqa: F401 | |
| from .scene_store import SceneStore # noqa: F401 | |