app.py
Browse files
app.py
CHANGED
|
@@ -640,8 +640,15 @@ def demo_lhm(pose_estimator, face_detector, lhm, cfg):
|
|
| 640 |
|
| 641 |
# PLY export: build GaussianModel from GaussianAppOutput and save
|
| 642 |
gs_output = gs_model_list[0]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 643 |
gs_model = GaussianModel(
|
| 644 |
-
xyz=
|
| 645 |
opacity=gs_output.opacity,
|
| 646 |
rotation=gs_output.rotation,
|
| 647 |
scaling=gs_output.scaling,
|
|
|
|
| 640 |
|
| 641 |
# PLY export: build GaussianModel from GaussianAppOutput and save
|
| 642 |
gs_output = gs_model_list[0]
|
| 643 |
+
print(f"DEBUG offset_xyz shape: {gs_output.offset_xyz.shape}, min: {gs_output.offset_xyz.min():.4f}, max: {gs_output.offset_xyz.max():.4f}")
|
| 644 |
+
print(f"DEBUG query_points shape: {query_points.shape}, min: {query_points.min():.4f}, max: {query_points.max():.4f}")
|
| 645 |
+
|
| 646 |
+
# Combine base positions with offsets for actual world-space positions
|
| 647 |
+
actual_xyz = query_points.squeeze(0) + gs_output.offset_xyz
|
| 648 |
+
print(f"DEBUG actual_xyz shape: {actual_xyz.shape}, min: {actual_xyz.min():.4f}, max: {actual_xyz.max():.4f}")
|
| 649 |
+
|
| 650 |
gs_model = GaussianModel(
|
| 651 |
+
xyz=actual_xyz,
|
| 652 |
opacity=gs_output.opacity,
|
| 653 |
rotation=gs_output.rotation,
|
| 654 |
scaling=gs_output.scaling,
|