Update documentation and clean up code; fixed output path in camera config and removed unnecessary lines in script.

This commit is contained in:
Cristian Predut
2025-12-03 11:32:26 +01:00
parent b800b6f39b
commit c8cd20da3d
7 changed files with 16 additions and 5 deletions
+10
View File
@@ -0,0 +1,10 @@
{
"git.enabled": true,
"git.decorations.enabled": true,
"scm.diffDecorations": "all",
"scm.diffDecorationsGutterVisibility": "always",
"files.decorations.enabled": true,
"explorer.decorations.badges": true,
"explorer.decorations.colors": true
}
@@ -205,3 +205,4 @@ If you encounter issues:
3. Verify `unit_scale` calculation
4. Ensure lens parameters match Nuke camera settings
+1
View File
@@ -146,3 +146,4 @@ If motion still doesn't match:
- Check that ComfyUI render resolution matches pose file resolution
- Consider using camera projection in Nuke to validate the converted poses
@@ -1,6 +1,6 @@
{
"input": "../inputs/camTrack_1.7m_v02.asci",
"output": "../outputs/camTrack_1.7m_v02_converted.txt",
"output": "../outputs/camTrack_1.7m_v04_converted.txt",
"fps": 25.0,
"unit_scale": 0.1,
"lens": {
-2
View File
@@ -73,8 +73,6 @@ def generate_nuke_script(output_path: Path, num_frames: int = 50) -> None:
" xpos 0",
" ypos -200",
"}",
"",
"end_group",
]
output_path.write_text("\n".join(script_lines))
+1
View File
@@ -54,3 +54,4 @@ python3 validate_conversion.py \
echo ""
echo "=== Pipeline test complete! ==="
+2 -2
View File
@@ -123,8 +123,8 @@ def compare_poses(asci_path: Path, pose_path: Path, unit_scale: float = 1.0) ->
R_asci = euler_zxy_to_matrix(rx, ry, rz)
R_asci_np = np.array(R_asci)
# Get pose data
timestamp, intrinsics, R_pose_row = parse_pose_line(pose_data[i])
# Get pose data (already parsed on line 97)
timestamp, intrinsics, R_pose_row = pose_data[i]
R_pose = [row[:3] for row in R_pose_row] # Extract rotation part
t_pose = [row[3] for row in R_pose_row] # Extract translation part
R_pose_np = np.array(R_pose)