chore(layout): misc update for layout sim. (#43)

This commit is contained in:
Xinjie 2025-09-28 19:46:18 +08:00 committed by GitHub
parent 137855bdc6
commit f8b1f1635f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7 additions and 5 deletions

View File

@ -115,7 +115,9 @@ def entrypoint() -> None:
# Background GEN (for efficiency, temp use retrieval instead)
bg_node = layout_info.relation[Scene3DItemEnum.BACKGROUND.value]
text = layout_info.objs_desc[bg_node]
match_key = SCENE_MATCHER.query(text, str(scene_dict))
match_key = SCENE_MATCHER.query(
text, str(scene_dict), params=gpt_params
)
match_scene_path = f"{os.path.dirname(args.bg_list)}/{match_key}"
bg_save_dir = os.path.join(output_root, "background")
copytree(match_scene_path, bg_save_dir, dirs_exist_ok=True)

View File

@ -137,7 +137,7 @@ def with_seed(seed_attr_name: str = "seed"):
def compute_convex_hull_path(
vertices: np.ndarray,
z_threshold: float = 0.05,
interp_per_edge: int = 3,
interp_per_edge: int = 10,
margin: float = -0.02,
x_axis: int = 0,
y_axis: int = 1,

View File

@ -574,7 +574,7 @@ def test_semantic_matcher(
# "presence_penalty": 0.3,
# }
gpt_params = None
match_key = SCENE_MATCHER.query(text, str(scene_dict))
match_key = SCENE_MATCHER.query(text, str(scene_dict), params=gpt_params)
print(match_key, ",", scene_dict[match_key])

View File

@ -9,8 +9,8 @@ text3d-cli --prompts "small bronze figurine of a lion" \
--n_image_retry 2 --n_asset_retry 2 --n_pipe_retry 1 --seed_img 0 \
--output_root ${output_dir}/textto3d
texture-cli --mesh_path "apps/assets/example_texture/meshes/robot_text.obj" \
--prompt "举着牌子的写实风格机器人大眼睛牌子上写着“Hello”的文字" \
texture-cli --mesh_path "apps/assets/example_texture/meshes/horse.obj" \
--prompt "A gray horse head with flying mane and brown eyes" \
--output_root "${output_dir}/texture_gen" \
--seed 0