Skip to content

[ICML'26] PointDiT: Pixel-Space Diffusion for Monocular Geometry Estimation

Python

Add Google Apache-2.0 license headers and move THIRD_PARTY_NOTICES to third_party/

Michael Niemeyer64f3621e279b
diff --git a/.gitignore b/.gitignore
index 81d7ccb..345033b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -173,4 +173,4 @@ generation/
results/
logs/
tmp/
-third_party/
+third_party/dinov3/
diff --git a/README.md b/README.md
index ed6ffa2..23aac17 100644
--- a/README.md
+++ b/README.md
@@ -130,7 +130,7 @@ Program](https://bughunters.google.com/open-source-security).
This codebase is released under the Apache License 2.0 (see the `LICENSE` file at the root of
the repository). It also contains code derived from other open-source projects, which
-remains under its original licenses; see [THIRD_PARTY_NOTICES](THIRD_PARTY_NOTICES) for the
+remains under its original licenses; see [THIRD_PARTY_NOTICES](third_party/THIRD_PARTY_NOTICES) for the
full list and notices.
## Citation
diff --git a/dataloader/configs/res512mix.yaml b/dataloader/configs/res512mix.yaml
index 06112db..cf1046b 100644
--- a/dataloader/configs/res512mix.yaml
+++ b/dataloader/configs/res512mix.yaml
@@ -1,3 +1,17 @@
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
# PointDiT Stage 2: 512x512 fine-tuning mixture (the released 512 checkpoints).
#
# 11 synthetic datasets. `weight` is a sampling probability, independent of corpus
diff --git a/dataloader/configs/scenenet.yaml b/dataloader/configs/scenenet.yaml
index 3f57b28..a266a0d 100644
--- a/dataloader/configs/scenenet.yaml
+++ b/dataloader/configs/scenenet.yaml
@@ -1,3 +1,17 @@
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
# SceneNet-RGBD Single Dataset Configuration
# For indoor scenes without sky
diff --git a/dataloader/eval_depth.py b/dataloader/eval_depth.py
index f56bae1..3fe2def 100644
--- a/dataloader/eval_depth.py
+++ b/dataloader/eval_depth.py
@@ -1,4 +1,16 @@
-# coding=utf-8
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
"""
Evaluation dataloader for depth data in MoGe format.
diff --git a/dataloader/img_depth_intrinsics.py b/dataloader/img_depth_intrinsics.py
index 16455c0..b1ee1c7 100644
--- a/dataloader/img_depth_intrinsics.py
+++ b/dataloader/img_depth_intrinsics.py
@@ -1,4 +1,16 @@
-# coding=utf-8
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
"""
ImageDepthIntrinsicsDataset - Optimized dataloader for depth-to-pointcloud conversion.
diff --git a/dataloader/mixed_dataset.py b/dataloader/mixed_dataset.py
index b695f2a..c099a81 100644
--- a/dataloader/mixed_dataset.py
+++ b/dataloader/mixed_dataset.py
@@ -1,4 +1,16 @@
-# coding=utf-8
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
"""
MixedImageDepthIntrinsicsDataset - Multi-dataset wrapper for mixed training
diff --git a/dataloader/point_transforms.py b/dataloader/point_transforms.py
index 0c43e13..b595aac 100644
--- a/dataloader/point_transforms.py
+++ b/dataloader/point_transforms.py
@@ -1,4 +1,16 @@
-# coding=utf-8
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
"""Paired image/point-map transforms and the point-map scale statistic.
diff --git a/denoiser.py b/denoiser.py
index 3319a7d..3e0b7ae 100644
--- a/denoiser.py
+++ b/denoiser.py
@@ -1,4 +1,16 @@
-# coding=utf-8
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
# Derived from JiT (https://github.com/LTH14/JiT), MIT License,
# Copyright (c) 2025 Tianhong Li. See THIRD_PARTY_NOTICES.
diff --git a/engine.py b/engine.py
index af7b3e9..8a04436 100644
--- a/engine.py
+++ b/engine.py
@@ -1,4 +1,16 @@
-# coding=utf-8
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
# Derived from JiT (https://github.com/LTH14/JiT), MIT License,
# Copyright (c) 2025 Tianhong Li. See THIRD_PARTY_NOTICES.
diff --git a/loss.py b/loss.py
index af8fb8a..c0cf347 100644
--- a/loss.py
+++ b/loss.py
@@ -1,4 +1,16 @@
-# coding=utf-8
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
import torch
diff --git a/main.py b/main.py
index 05433de..8c3540e 100644
--- a/main.py
+++ b/main.py
@@ -1,4 +1,16 @@
-# coding=utf-8
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
# Derived from JiT (https://github.com/LTH14/JiT), MIT License,
# Copyright (c) 2025 Tianhong Li. See THIRD_PARTY_NOTICES.
diff --git a/metrics/alignment.py b/metrics/alignment.py
index 1bf8fa0..8c29438 100644
--- a/metrics/alignment.py
+++ b/metrics/alignment.py
@@ -1,4 +1,16 @@
-# coding=utf-8
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
# Least-squares / least-absolute-deviations alignment of affine-invariant predictions.
# Adapted from MoGe (https://github.com/microsoft/MoGe), MIT License.
diff --git a/metrics/boundary_metrics.py b/metrics/boundary_metrics.py
index ab551a1..ab6f293 100644
--- a/metrics/boundary_metrics.py
+++ b/metrics/boundary_metrics.py
@@ -1,4 +1,16 @@
-# coding=utf-8
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
# Scale-invariant boundary F1 (edge sharpness).
# Adapted from Depth Pro (https://github.com/apple/ml-depth-pro), Apple sample code License.
diff --git a/metrics/compute_metrics.py b/metrics/compute_metrics.py
index ffe49f1..7592b6a 100644
--- a/metrics/compute_metrics.py
+++ b/metrics/compute_metrics.py
@@ -1,4 +1,16 @@
-# coding=utf-8
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
# The evaluation metric suite (affine-invariant point-map and depth metrics).
# Adapted from MoGe (https://github.com/microsoft/MoGe), MIT License.
diff --git a/metrics/helpers.py b/metrics/helpers.py
index 0cdbab7..c7bd766 100644
--- a/metrics/helpers.py
+++ b/metrics/helpers.py
@@ -1,4 +1,16 @@
-# coding=utf-8
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
# Decorators used by the metric suite.
# Adapted from utils3d (https://github.com/EasternJournalist/utils3d), MIT License.
diff --git a/metrics/masked_resize.py b/metrics/masked_resize.py
index 2691482..44a0201 100644
--- a/metrics/masked_resize.py
+++ b/metrics/masked_resize.py
@@ -1,4 +1,16 @@
-# coding=utf-8
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
# Mask-aware tensor resizing.
# Adapted from utils3d (https://github.com/EasternJournalist/utils3d), MIT License.
diff --git a/metrics/metrics.py b/metrics/metrics.py
index 7c00920..75a31e8 100644
--- a/metrics/metrics.py
+++ b/metrics/metrics.py
@@ -1,4 +1,16 @@
-# coding=utf-8
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
# Simple unaligned depth/point metrics, kept for reference.
# The reported numbers come from metrics/compute_metrics.py.
diff --git a/metrics/utils.py b/metrics/utils.py
index 3914702..1a05163 100644
--- a/metrics/utils.py
+++ b/metrics/utils.py
@@ -1,4 +1,16 @@
-# coding=utf-8
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
# Tensor helpers used by the metric suite.
# Adapted from utils3d (https://github.com/EasternJournalist/utils3d), MIT License.
diff --git a/model.py b/model.py
index a6021b5..a3bfbe0 100644
--- a/model.py
+++ b/model.py
@@ -1,4 +1,16 @@
-# coding=utf-8
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
# --------------------------------------------------------
# References:
diff --git a/run.sh b/run.sh
index 068dbc3..a760f09 100644
--- a/run.sh
+++ b/run.sh
@@ -1,5 +1,20 @@
#!/bin/bash
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
#
# Minimal end-to-end smoke test for PointDiT: CPU-only, no GPU, no dataset
# download and no pre-trained checkpoint. It trains a randomly initialised model
diff --git a/scripts/demo_b_512.sh b/scripts/demo_b_512.sh
index 89ed8f1..6d6da20 100755
--- a/scripts/demo_b_512.sh
+++ b/scripts/demo_b_512.sh
@@ -1,5 +1,20 @@
#!/usr/bin/env bash
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# PointDiT-B (512x512) on your own images. Set IMAGE_DIR below; .jpg/.png, nested dirs are fine.
# Results go to generation/pretrained-pointditb-512/<IMAGE_DIR folder name>/, so
# IMAGE_DIR=assets/demo writes to .../demo/. Each output is named after its input:
diff --git a/scripts/demo_h_512.sh b/scripts/demo_h_512.sh
index c7d8954..72bc78b 100755
--- a/scripts/demo_h_512.sh
+++ b/scripts/demo_h_512.sh
@@ -1,5 +1,20 @@
#!/usr/bin/env bash
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# PointDiT-H (512x512) on your own images. Set IMAGE_DIR below; .jpg/.png, nested dirs are fine.
# Results go to generation/pretrained-pointdith-512/<IMAGE_DIR folder name>/, so
# IMAGE_DIR=assets/demo writes to .../demo/. Each output is named after its input:
diff --git a/scripts/demo_l_512.sh b/scripts/demo_l_512.sh
index 7df8e74..e250fb8 100755
--- a/scripts/demo_l_512.sh
+++ b/scripts/demo_l_512.sh
@@ -1,5 +1,20 @@
#!/usr/bin/env bash
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# PointDiT-L (512x512) on your own images. Set IMAGE_DIR below; .jpg/.png, nested dirs are fine.
# Results go to generation/pretrained-pointditl-512/<IMAGE_DIR folder name>/, so
# IMAGE_DIR=assets/demo writes to .../demo/. Each output is named after its input:
diff --git a/scripts/eval_b_256.sh b/scripts/eval_b_256.sh
index 9bf5c88..5d9ce5d 100755
--- a/scripts/eval_b_256.sh
+++ b/scripts/eval_b_256.sh
@@ -1,5 +1,20 @@
#!/usr/bin/env bash
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Zero-shot benchmark: PointDiT-B at 256x256, 1-step sampling, 7 datasets (3,444 samples).
# Drop --eval_no_save_gen to also write depth panels and point clouds
# --no_remove_sky is needed here: Stage 1 trains on SceneNet with handle_sky: false,
diff --git a/scripts/eval_b_512.sh b/scripts/eval_b_512.sh
index 50e3e8c..86641aa 100755
--- a/scripts/eval_b_512.sh
+++ b/scripts/eval_b_512.sh
@@ -1,5 +1,20 @@
#!/usr/bin/env bash
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Zero-shot benchmark: PointDiT-B at 512x512, 1-step sampling, 7 datasets (3,444 samples).
# Drop --eval_no_save_gen to also write depth panels and point clouds
diff --git a/scripts/eval_h_256.sh b/scripts/eval_h_256.sh
index 1b8903f..6d0e191 100755
--- a/scripts/eval_h_256.sh
+++ b/scripts/eval_h_256.sh
@@ -1,5 +1,20 @@
#!/usr/bin/env bash
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Zero-shot benchmark: PointDiT-H at 256x256, 1-step sampling, 7 datasets (3,444 samples).
# Drop --eval_no_save_gen to also write depth panels and point clouds
# --no_remove_sky is needed here: Stage 1 trains on SceneNet with handle_sky: false,
diff --git a/scripts/eval_h_512.sh b/scripts/eval_h_512.sh
index 60bf881..ba8a6e2 100755
--- a/scripts/eval_h_512.sh
+++ b/scripts/eval_h_512.sh
@@ -1,5 +1,20 @@
#!/usr/bin/env bash
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Zero-shot benchmark: PointDiT-H at 512x512, 3-step sampling, 7 datasets (3,444 samples).
# Expected (7 datasets, x100): Rel_p 4.39 d1_p 98.01 Rel_d 2.75 d1_d 98.54 BF1 10.44
# Drop --eval_no_save_gen to also write depth panels and point clouds
diff --git a/scripts/eval_l_256.sh b/scripts/eval_l_256.sh
index 756413b..b4859a7 100755
--- a/scripts/eval_l_256.sh
+++ b/scripts/eval_l_256.sh
@@ -1,5 +1,20 @@
#!/usr/bin/env bash
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Zero-shot benchmark: PointDiT-L at 256x256, 1-step sampling, 7 datasets (3,444 samples).
# Drop --eval_no_save_gen to also write depth panels and point clouds
# --no_remove_sky is needed here: Stage 1 trains on SceneNet with handle_sky: false,
diff --git a/scripts/eval_l_512.sh b/scripts/eval_l_512.sh
index a509308..5afeab4 100755
--- a/scripts/eval_l_512.sh
+++ b/scripts/eval_l_512.sh
@@ -1,5 +1,20 @@
#!/usr/bin/env bash
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Zero-shot benchmark: PointDiT-L at 512x512, 3-step sampling, 7 datasets (3,444 samples).
# Expected (7 datasets, x100): Rel_p 4.85 d1_p 97.54 Rel_d 3.09 d1_d 98.25 BF1 10.36
# Drop --eval_no_save_gen to also write depth panels and point clouds
diff --git a/scripts/train_stage1_256_b.sh b/scripts/train_stage1_256_b.sh
index 5c4eb03..ec7f27f 100755
--- a/scripts/train_stage1_256_b.sh
+++ b/scripts/train_stage1_256_b.sh
@@ -1,5 +1,20 @@
#!/usr/bin/env bash
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Stage 1: PointDiT-B pre-training at 256x256 on SceneNet-RGBD.
# Original run: 16 GPUs x batch 256 (effective batch 4096, lr 8e-4), 30 epochs.
# lr = blr * batch_size * num_gpus / 256, so keep that product at 4096 or pass --lr.
diff --git a/scripts/train_stage1_256_h.sh b/scripts/train_stage1_256_h.sh
index 36be968..2e5a58e 100755
--- a/scripts/train_stage1_256_h.sh
+++ b/scripts/train_stage1_256_h.sh
@@ -1,5 +1,20 @@
#!/usr/bin/env bash
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Stage 1: PointDiT-H pre-training at 256x256 on SceneNet-RGBD.
# Original run: 64 GPUs x batch 16 (effective batch 1024, lr 2e-4), 30 epochs.
# lr = blr * batch_size * num_gpus / 256, so keep that product at 1024 or pass --lr.
diff --git a/scripts/train_stage1_256_l.sh b/scripts/train_stage1_256_l.sh
index 1d7a8e8..0f76aa3 100755
--- a/scripts/train_stage1_256_l.sh
+++ b/scripts/train_stage1_256_l.sh
@@ -1,5 +1,20 @@
#!/usr/bin/env bash
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Stage 1: PointDiT-L pre-training at 256x256 on SceneNet-RGBD.
# Original run: 16 GPUs x batch 64 (effective batch 1024, lr 2e-4), 30 epochs.
# lr = blr * batch_size * num_gpus / 256, so keep that product at 1024 or pass --lr.
diff --git a/scripts/train_stage2_512_b.sh b/scripts/train_stage2_512_b.sh
index b9f530d..2abf021 100755
--- a/scripts/train_stage2_512_b.sh
+++ b/scripts/train_stage2_512_b.sh
@@ -1,5 +1,20 @@
#!/usr/bin/env bash
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Stage 2: PointDiT-B fine-tuning at 512x512 on the 11-dataset mixture.
# Original run: 64 GPUs x batch 32 (effective batch 2048, lr 8e-4); released at epoch 7.
# lr = blr * batch_size * num_gpus / 256, so keep that product at 2048 or pass --lr.
diff --git a/scripts/train_stage2_512_h.sh b/scripts/train_stage2_512_h.sh
index c38b885..1cc6dff 100755
--- a/scripts/train_stage2_512_h.sh
+++ b/scripts/train_stage2_512_h.sh
@@ -1,5 +1,20 @@
#!/usr/bin/env bash
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Stage 2: PointDiT-H fine-tuning at 512x512 on the 11-dataset mixture.
# Original run: 128 GPUs x batch 4 (effective batch 512, lr 2e-4); released at epoch 2.
# lr = blr * batch_size * num_gpus / 256, so keep that product at 512 or pass --lr.
diff --git a/scripts/train_stage2_512_l.sh b/scripts/train_stage2_512_l.sh
index 12ce827..9789489 100755
--- a/scripts/train_stage2_512_l.sh
+++ b/scripts/train_stage2_512_l.sh
@@ -1,5 +1,20 @@
#!/usr/bin/env bash
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Stage 2: PointDiT-L fine-tuning at 512x512 on the 11-dataset mixture.
# Original run: 64 GPUs x batch 16 (effective batch 1024, lr 4e-4); released at epoch 4.
# lr = blr * batch_size * num_gpus / 256, so keep that product at 1024 or pass --lr.
diff --git a/THIRD_PARTY_NOTICES b/third_party/THIRD_PARTY_NOTICES
similarity index 100%
rename from THIRD_PARTY_NOTICES
rename to third_party/THIRD_PARTY_NOTICES
diff --git a/tools/make_smoke_data.py b/tools/make_smoke_data.py
index 69ff36a..6ca9b01 100644
--- a/tools/make_smoke_data.py
+++ b/tools/make_smoke_data.py
@@ -1,4 +1,16 @@
-# coding=utf-8
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
"""Generate a tiny synthetic dataset so run.sh can exercise PointDiT offline.
diff --git a/util/log_tb.py b/util/log_tb.py
index f9c83e5..408b55c 100644
--- a/util/log_tb.py
+++ b/util/log_tb.py
@@ -1,4 +1,16 @@
-# coding=utf-8
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
import torch
from PIL import Image, ImageDraw
diff --git a/util/lr_sched.py b/util/lr_sched.py
index 75aa95b..8c7494c 100644
--- a/util/lr_sched.py
+++ b/util/lr_sched.py
@@ -1,4 +1,16 @@
-# coding=utf-8
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
# Derived from JiT (https://github.com/LTH14/JiT), MIT License,
# Copyright (c) 2025 Tianhong Li. See THIRD_PARTY_NOTICES.
diff --git a/util/misc.py b/util/misc.py
index a985bcf..4f9d689 100644
--- a/util/misc.py
+++ b/util/misc.py
@@ -1,4 +1,16 @@
-# coding=utf-8
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
# Derived from JiT (https://github.com/LTH14/JiT), MIT License,
# Copyright (c) 2025 Tianhong Li. MetricLogger/SmoothedValue trace further
diff --git a/util/model_util.py b/util/model_util.py
index 4ef4857..b506ba3 100644
--- a/util/model_util.py
+++ b/util/model_util.py
@@ -1,4 +1,16 @@
-# coding=utf-8
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
# Derived from JiT (https://github.com/LTH14/JiT), MIT License,
# Copyright (c) 2025 Tianhong Li. See THIRD_PARTY_NOTICES.
diff --git a/util/paths.py b/util/paths.py
index f8c264b..66d7956 100644
--- a/util/paths.py
+++ b/util/paths.py
@@ -1,4 +1,16 @@
-# coding=utf-8
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
"""Paths that resolve against the repository, not the current directory.
diff --git a/util/resize_posemb.py b/util/resize_posemb.py
index a22ebd1..f1bb8d6 100644
--- a/util/resize_posemb.py
+++ b/util/resize_posemb.py
@@ -1,4 +1,16 @@
-# coding=utf-8
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
import torch
import torch.nn.functional as F
diff --git a/util/viz_boundary.py b/util/viz_boundary.py
index 01a8df9..a398000 100644
--- a/util/viz_boundary.py
+++ b/util/viz_boundary.py
@@ -1,4 +1,16 @@
-# coding=utf-8
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
import numpy as np
diff --git a/util/viz_depth.py b/util/viz_depth.py
index 2d0b11f..ed79f6e 100644
--- a/util/viz_depth.py
+++ b/util/viz_depth.py
@@ -1,4 +1,16 @@
-# coding=utf-8
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
import torch
import numpy as np
diff --git a/util/viz_pointcloud.py b/util/viz_pointcloud.py
index 7fbe75a..b0746cf 100644
--- a/util/viz_pointcloud.py
+++ b/util/viz_pointcloud.py
@@ -1,4 +1,16 @@
-# coding=utf-8
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
import numpy as np
import trimesh