Skip to content

Commit

Permalink
update: fixed a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
changhaonan committed Sep 11, 2023
1 parent f8842c4 commit 589f960
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lgmcts/scripts/data_generation/gen_strdiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ def _generate_data_for_one_task(
# normalize depth to fit in structFormer
depth_tensor = depth_tensor * 20.0
# depth_min & depth_max
depth_min = np.min(depth_tensor) * np.ones([2,], dtype=np.float32)
depth_min = np.min(depth_tensor) * np.ones([1,], dtype=np.float32)
depth_max = np.max(depth_tensor) * np.ones([1,], dtype=np.float32)
f.create_dataset("depth_min", data=depth_min)
f.create_dataset("depth_max", data=depth_max)
# normalize depth
Expand Down

0 comments on commit 589f960

Please sign in to comment.