Skip to content

Commit

Permalink
[tapvid3d] Updates TAPVid-3D-ADT to RC3.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 657210406
Change-Id: If0d38d8bd5a570ffbea4d36d74629c05f5aa0b8d
  • Loading branch information
ignacio-rocco authored and cdoersch committed Jul 29, 2024
1 parent 5079778 commit 58c5225
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions tapnet/tapvid3d/annotation_generation/adt_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
tf.config.set_visible_devices([], "GPU")

import os
import hashlib

import numpy as np
import numpy.typing as npt
Expand Down Expand Up @@ -433,13 +432,11 @@ def process_vid(
rgb_jpegs,
)

# Verify trajectories to millimeter precision.
trajectories_hash = hashlib.md5(
np.round(trajectories * 1000).astype(np.int32).data.tobytes()
).hexdigest()
assert trajectories_hash == in_npz["tracks_XYZ_hash"]
# Verify trajectories means.
trajectories_mean = trajectories.mean(axis=(0, 1))
assert np.allclose(trajectories_mean, in_npz["tracks_XYZ_mean"], atol=1e-5)

# Verify visibilities to 1e-5 precision.
# Verify visibilities means.
assert np.abs(visibilities.mean() - in_npz["visibility_mean"]) < 1e-5

example = {
Expand Down
2 changes: 1 addition & 1 deletion tapnet/tapvid3d/annotation_generation/gcs_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from tapnet.tapvid3d.splits import tapvid3d_splits # pylint: disable=g-import-not-at-top, g-bad-import-order

TAPVID3D_GCS_URL = (
"https://storage.googleapis.com/dm-tapnet/tapvid3d/release_files/rc2"
"https://storage.googleapis.com/dm-tapnet/tapvid3d/release_files/rc3"
)


Expand Down

0 comments on commit 58c5225

Please sign in to comment.