Instructions to use zeyuren2002/EvalMDE with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use zeyuren2002/EvalMDE with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("zeyuren2002/EvalMDE", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Add files using upload-large-folder tool
Browse files- Depth-Anything-3/da3_streaming/configs/tum.yaml +51 -0
- Depth-Anything-3/da3_streaming/fastloop/__init__.py +15 -0
- Depth-Anything-3/da3_streaming/fastloop/solve.cpp +111 -0
- Depth-Anything-3/da3_streaming/fastloop/solve_python.py +100 -0
- data/infinigen/test_scenes_release_cleaned_final/indoor__slow_solve-long_focal-2025-09-06-19-53-32___142efe82/synth_depth/affine_transformation_of_depth/02.0.npz +3 -0
- data/infinigen/test_scenes_release_cleaned_final/indoor__slow_solve-long_focal-2025-09-06-19-53-32___142efe82/synth_depth/affine_transformation_of_depth/03.0.npz +3 -0
- data/infinigen/test_scenes_release_cleaned_final/indoor__slow_solve-long_focal-2025-09-06-19-53-32___142efe82/synth_depth/boundary/01.0.npz +3 -0
- data/infinigen/test_scenes_release_cleaned_final/indoor__slow_solve-long_focal-2025-09-06-19-53-32___142efe82/synth_depth/boundary/02.0.npz +3 -0
- data/infinigen/test_scenes_release_cleaned_final/indoor__slow_solve-long_focal-2025-09-06-19-53-32___142efe82/synth_depth/boundary/03.0.npz +3 -0
- data/infinigen/test_scenes_release_cleaned_final/indoor__slow_solve-long_focal-2025-09-06-19-53-32___142efe82/synth_depth/boundary/06.0.npz +3 -0
- data/infinigen/test_scenes_release_cleaned_final/indoor__slow_solve-long_focal-2025-09-06-19-53-32___142efe82/synth_depth/boundary/09.0.npz +3 -0
- data/infinigen/test_scenes_release_cleaned_final/indoor__slow_solve-long_focal-2025-09-06-19-53-32___142efe82/synth_depth/boundary/12.0.npz +3 -0
- data/infinigen/test_scenes_release_cleaned_final/indoor__slow_solve-long_focal-2025-09-06-19-53-32___142efe82/synth_depth/curv_high_freq/0.002_1.0.npz +3 -0
- data/infinigen/test_scenes_release_cleaned_final/indoor__slow_solve-long_focal-2025-09-06-19-53-32___142efe82/synth_depth/curv_high_freq/0.004_1.0.npz +3 -0
- data/infinigen/test_scenes_release_cleaned_final/indoor__slow_solve-long_focal-2025-09-06-19-53-32___142efe82/synth_depth/curv_high_freq/0.006_1.0.npz +3 -0
- data/infinigen/test_scenes_release_cleaned_final/indoor__slow_solve-long_focal-2025-09-06-19-53-32___142efe82/synth_depth/curv_high_freq/0.008_1.0.npz +3 -0
- data/infinigen/test_scenes_release_cleaned_final/indoor__slow_solve-long_focal-2025-09-06-19-53-32___142efe82/synth_depth/curv_high_freq/0.010_1.0.npz +3 -0
- data/infinigen/test_scenes_release_cleaned_final/indoor__slow_solve-long_focal-2025-09-06-19-53-32___142efe82/synth_depth/curv_high_freq/0.015_1.0.npz +3 -0
- data/infinigen/test_scenes_release_cleaned_final/indoor__slow_solve-long_focal-2025-09-06-19-53-32___142efe82/synth_depth/curv_high_freq/0.020_1.0.npz +3 -0
- data/infinigen/test_scenes_release_cleaned_final/nature__desert-long_focal-2025-09-07-11-43-28___1c33a692/synth_depth/curv_high_freq/0.006_1.0.npz +3 -0
Depth-Anything-3/da3_streaming/configs/tum.yaml
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Weights:
|
| 2 |
+
DA3: './weights/model.safetensors'
|
| 3 |
+
DA3_CONFIG: './weights/config.json'
|
| 4 |
+
SALAD: './weights/dino_salad.ckpt'
|
| 5 |
+
|
| 6 |
+
Model:
|
| 7 |
+
chunk_size: 120
|
| 8 |
+
overlap: 60
|
| 9 |
+
loop_chunk_size: 20 # imgs of loop chunk = 2 * loop_chunk_size
|
| 10 |
+
loop_enable: True
|
| 11 |
+
useDBoW: False
|
| 12 |
+
delete_temp_files: True
|
| 13 |
+
align_lib: 'triton' # choose among 'triton' (GPU), 'torch' (GPU), 'numba' (CPU) or 'numpy' (CPU)
|
| 14 |
+
align_method: 'sim3' # choose among 'sim3', 'se3' or 'scale+se3'
|
| 15 |
+
scale_compute_method: 'auto' # choose among 'auto', 'ransac' or 'weighted'. It is used when align_method == 'scale+se3'
|
| 16 |
+
align_type: 'dense' # choose between 'dense' or 'sparse'. Sparse align is constructing, not avaible for now
|
| 17 |
+
|
| 18 |
+
ref_view_strategy: 'saddle_balanced' # 'middle', 'saddle_balanced', 'first' or 'saddle_sim_range'
|
| 19 |
+
ref_view_strategy_loop: 'saddle_balanced' # 'middle', 'saddle_balanced', 'first' or 'saddle_sim_range'
|
| 20 |
+
depth_threshold: 15.0
|
| 21 |
+
|
| 22 |
+
save_depth_conf_result: True
|
| 23 |
+
save_debug_info: False
|
| 24 |
+
|
| 25 |
+
Sparse_Align:
|
| 26 |
+
keypoint_select: 'orb' # choose among 'orb', 'fast' or 'disk'
|
| 27 |
+
keypoint_num: 5000
|
| 28 |
+
|
| 29 |
+
IRLS:
|
| 30 |
+
delta: 0.1
|
| 31 |
+
max_iters: 5
|
| 32 |
+
tol: 1e-9
|
| 33 |
+
|
| 34 |
+
Pointcloud_Save:
|
| 35 |
+
sample_ratio: 0.015
|
| 36 |
+
conf_threshold_coef: 0.75 # conf_threshold = np.mean(confs) * conf_threshold_coef
|
| 37 |
+
|
| 38 |
+
Loop:
|
| 39 |
+
SALAD:
|
| 40 |
+
image_size: [336, 336]
|
| 41 |
+
batch_size: 32
|
| 42 |
+
similarity_threshold: 0.85
|
| 43 |
+
top_k: 5
|
| 44 |
+
use_nms: True
|
| 45 |
+
nms_threshold: 25
|
| 46 |
+
|
| 47 |
+
SIM3_Optimizer:
|
| 48 |
+
lang_version: 'cpp'
|
| 49 |
+
# choose between 'cpp' or 'python'. will auto set 'python' if c++ version has not installed
|
| 50 |
+
max_iterations: 30
|
| 51 |
+
lambda_init: 1e-6
|
Depth-Anything-3/da3_streaming/fastloop/__init__.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright (c) 2025 ByteDance Ltd. and/or its affiliates
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
# you may not use this file except in compliance with the License.
|
| 5 |
+
# You may obtain a copy of the License at
|
| 6 |
+
#
|
| 7 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
#
|
| 9 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
# See the License for the specific language governing permissions and
|
| 13 |
+
# limitations under the License.
|
| 14 |
+
#
|
| 15 |
+
# Adapted from [VGGT-Long](https://github.com/DengKaiCQ/VGGT-Long)
|
Depth-Anything-3/da3_streaming/fastloop/solve.cpp
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright (c) 2025 ByteDance Ltd. and/or its affiliates
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
//
|
| 15 |
+
// Adapted from [VGGT-Long](https://github.com/DengKaiCQ/VGGT-Long)
|
| 16 |
+
|
| 17 |
+
#include <torch/extension.h>
|
| 18 |
+
#include <vector>
|
| 19 |
+
#include <unordered_map>
|
| 20 |
+
#include <algorithm>
|
| 21 |
+
#include <iostream>
|
| 22 |
+
#include <Eigen/Core>
|
| 23 |
+
#include <Eigen/Sparse>
|
| 24 |
+
|
| 25 |
+
typedef Eigen::SparseMatrix<double> SpMat;
|
| 26 |
+
typedef Eigen::Triplet<double> T;
|
| 27 |
+
|
| 28 |
+
Eigen::VectorXd solve(const SpMat &A, const Eigen::VectorXd &b, int freen){
|
| 29 |
+
|
| 30 |
+
if (freen < 0){
|
| 31 |
+
const Eigen::SimplicialCholesky<SpMat> chol(A);
|
| 32 |
+
return chol.solve(b); // n x 1
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
const SpMat A_sub = A.topLeftCorner(freen, freen);
|
| 36 |
+
const Eigen::VectorXd b_sub = b.topRows(freen);
|
| 37 |
+
const Eigen::VectorXd delta = solve(A_sub, b_sub, -7);
|
| 38 |
+
|
| 39 |
+
Eigen::VectorXd delta2(b.rows());
|
| 40 |
+
delta2.setZero();
|
| 41 |
+
delta2.topRows(freen) = delta;
|
| 42 |
+
|
| 43 |
+
return delta2;
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
std::vector<torch::Tensor> solve_system(torch::Tensor J_Ginv_i, torch::Tensor J_Ginv_j, torch::Tensor ii, torch::Tensor jj, torch::Tensor res, float ep, float lm, int freen)
|
| 47 |
+
{
|
| 48 |
+
|
| 49 |
+
const torch::Device device = res.device();
|
| 50 |
+
J_Ginv_i = J_Ginv_i.to(torch::kCPU);
|
| 51 |
+
J_Ginv_j = J_Ginv_j.to(torch::kCPU);
|
| 52 |
+
ii = ii.to(torch::kCPU);
|
| 53 |
+
jj = jj.to(torch::kCPU);
|
| 54 |
+
res = res.clone().to(torch::kCPU);
|
| 55 |
+
|
| 56 |
+
const int r = res.size(0);
|
| 57 |
+
const int n = std::max(ii.max().item<long>(), jj.max().item<long>()) + 1;
|
| 58 |
+
|
| 59 |
+
res.resize_({r*7});
|
| 60 |
+
float *res_ptr = res.data_ptr<float>();
|
| 61 |
+
Eigen::Map<Eigen::VectorXf> v(res_ptr, r*7);
|
| 62 |
+
|
| 63 |
+
SpMat J(r*7, n*7);
|
| 64 |
+
std::vector<T> tripletList;
|
| 65 |
+
tripletList.reserve(r*7*7*2);
|
| 66 |
+
|
| 67 |
+
auto ii_acc = ii.accessor<long,1>();
|
| 68 |
+
auto jj_acc = jj.accessor<long,1>();
|
| 69 |
+
auto J_Ginv_i_acc = J_Ginv_i.accessor<float,3>();
|
| 70 |
+
auto J_Ginv_j_acc = J_Ginv_j.accessor<float,3>();
|
| 71 |
+
|
| 72 |
+
for (int x=0; x<r; x++){
|
| 73 |
+
const int i = ii_acc[x];
|
| 74 |
+
const int j = jj_acc[x];
|
| 75 |
+
for (int k=0; k<7; k++){
|
| 76 |
+
for (int l=0; l<7; l++){
|
| 77 |
+
if (i == j)
|
| 78 |
+
exit(1);
|
| 79 |
+
const float val_i = J_Ginv_i_acc[x][k][l];
|
| 80 |
+
tripletList.emplace_back(x*7 + k, i*7 + l, val_i);
|
| 81 |
+
const float val_j = J_Ginv_j_acc[x][k][l];
|
| 82 |
+
tripletList.emplace_back(x*7 + k, j*7 + l, val_j);
|
| 83 |
+
}
|
| 84 |
+
}
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
J.setFromTriplets(tripletList.begin(), tripletList.end());
|
| 88 |
+
const SpMat Jt = J.transpose();
|
| 89 |
+
Eigen::VectorXd b = -(Jt * v.cast<double>());
|
| 90 |
+
SpMat A = Jt * J;
|
| 91 |
+
|
| 92 |
+
A.diagonal() += (A.diagonal() * lm);
|
| 93 |
+
A.diagonal().array() += ep;
|
| 94 |
+
Eigen::VectorXf delta = solve(A, b, freen*7).cast<float>();
|
| 95 |
+
|
| 96 |
+
torch::Tensor delta_tensor = torch::from_blob(delta.data(), {n*7}).clone().to(device);
|
| 97 |
+
delta_tensor.resize_({n, 7});
|
| 98 |
+
return {delta_tensor};
|
| 99 |
+
|
| 100 |
+
Eigen::Matrix<float, -1, -1, Eigen::RowMajor> dense_J(J.cast<float>());
|
| 101 |
+
torch::Tensor dense_J_tensor = torch::from_blob(dense_J.data(), {r*7, n*7}).clone().to(device);
|
| 102 |
+
dense_J_tensor.resize_({r, 7, n, 7});
|
| 103 |
+
|
| 104 |
+
return {delta_tensor, dense_J_tensor};
|
| 105 |
+
|
| 106 |
+
}
|
| 107 |
+
|
| 108 |
+
|
| 109 |
+
PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) {
|
| 110 |
+
m.def("solve_system", &solve_system, "temporal neighboor indicies");
|
| 111 |
+
}
|
Depth-Anything-3/da3_streaming/fastloop/solve_python.py
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright (c) 2025 ByteDance Ltd. and/or its affiliates
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
# you may not use this file except in compliance with the License.
|
| 5 |
+
# You may obtain a copy of the License at
|
| 6 |
+
#
|
| 7 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
#
|
| 9 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
# See the License for the specific language governing permissions and
|
| 13 |
+
# limitations under the License.
|
| 14 |
+
#
|
| 15 |
+
# Adapted from [VGGT-Long](https://github.com/DengKaiCQ/VGGT-Long)
|
| 16 |
+
|
| 17 |
+
import numpy as np
|
| 18 |
+
import torch
|
| 19 |
+
from scipy.sparse import coo_matrix, csc_matrix
|
| 20 |
+
from scipy.sparse.linalg import spsolve
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
def solve_sparse(A: csc_matrix, b: np.ndarray, freen: int) -> np.ndarray:
|
| 24 |
+
"""Solve linear system A * delta = b, supports submatrix solving"""
|
| 25 |
+
if freen < 0:
|
| 26 |
+
return spsolve(A, b)
|
| 27 |
+
else:
|
| 28 |
+
A_sub = A[:freen, :freen].tocsc()
|
| 29 |
+
b_sub = b[:freen]
|
| 30 |
+
delta_sub = spsolve(A_sub, b_sub)
|
| 31 |
+
delta = np.zeros_like(b)
|
| 32 |
+
delta[:freen] = delta_sub
|
| 33 |
+
return delta
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
def solve_system_py(
|
| 37 |
+
J_Ginv_i: torch.Tensor,
|
| 38 |
+
J_Ginv_j: torch.Tensor,
|
| 39 |
+
ii: torch.Tensor,
|
| 40 |
+
jj: torch.Tensor,
|
| 41 |
+
res: torch.Tensor,
|
| 42 |
+
ep: float,
|
| 43 |
+
lm: float,
|
| 44 |
+
freen: int,
|
| 45 |
+
) -> torch.Tensor:
|
| 46 |
+
# Ensure all tensors are on CPU
|
| 47 |
+
device = res.device
|
| 48 |
+
J_Ginv_i = J_Ginv_i.cpu()
|
| 49 |
+
J_Ginv_j = J_Ginv_j.cpu()
|
| 50 |
+
ii = ii.cpu()
|
| 51 |
+
jj = jj.cpu()
|
| 52 |
+
res = res.clone().cpu()
|
| 53 |
+
|
| 54 |
+
r = res.size(0) # Number of edges
|
| 55 |
+
n = max(ii.max().item(), jj.max().item()) + 1 # Number of nodes
|
| 56 |
+
|
| 57 |
+
res_vec = res.view(-1).numpy().astype(np.float64)
|
| 58 |
+
|
| 59 |
+
rows, cols, data = [], [], []
|
| 60 |
+
ii_np = ii.numpy()
|
| 61 |
+
jj_np = jj.numpy()
|
| 62 |
+
J_Ginv_i_np = J_Ginv_i.numpy()
|
| 63 |
+
J_Ginv_j_np = J_Ginv_j.numpy()
|
| 64 |
+
|
| 65 |
+
for x in range(r):
|
| 66 |
+
i = ii_np[x]
|
| 67 |
+
j = jj_np[x]
|
| 68 |
+
if i == j:
|
| 69 |
+
raise ValueError("Self-edges are not allowed")
|
| 70 |
+
|
| 71 |
+
for k in range(7):
|
| 72 |
+
for l in range(7):
|
| 73 |
+
row_idx = x * 7 + k
|
| 74 |
+
col_idx_i = i * 7 + l
|
| 75 |
+
val_i = J_Ginv_i_np[x, k, l]
|
| 76 |
+
rows.append(row_idx)
|
| 77 |
+
cols.append(col_idx_i)
|
| 78 |
+
data.append(val_i)
|
| 79 |
+
|
| 80 |
+
col_idx_j = j * 7 + l
|
| 81 |
+
val_j = J_Ginv_j_np[x, k, l]
|
| 82 |
+
rows.append(row_idx)
|
| 83 |
+
cols.append(col_idx_j)
|
| 84 |
+
data.append(val_j)
|
| 85 |
+
|
| 86 |
+
J = coo_matrix((data, (rows, cols)), shape=(r * 7, n * 7)).tocsc()
|
| 87 |
+
|
| 88 |
+
b_vec = -J.T @ res_vec
|
| 89 |
+
|
| 90 |
+
A_mat = J.T @ J
|
| 91 |
+
|
| 92 |
+
diag = A_mat.diagonal()
|
| 93 |
+
new_diag = diag * (1.0 + lm) + ep
|
| 94 |
+
A_mat.setdiag(new_diag)
|
| 95 |
+
|
| 96 |
+
freen_total = freen * 7
|
| 97 |
+
delta = solve_sparse(A_mat.tocsc(), b_vec, freen_total)
|
| 98 |
+
|
| 99 |
+
delta_tensor = torch.from_numpy(delta.astype(np.float32)).view(n, 7).to(device)
|
| 100 |
+
return delta_tensor
|
data/infinigen/test_scenes_release_cleaned_final/indoor__slow_solve-long_focal-2025-09-06-19-53-32___142efe82/synth_depth/affine_transformation_of_depth/02.0.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:59ef74b7185341e52ffb2612008ef0de5fe4c5f616ee4a460e4812074675e7de
|
| 3 |
+
size 4608778
|
data/infinigen/test_scenes_release_cleaned_final/indoor__slow_solve-long_focal-2025-09-06-19-53-32___142efe82/synth_depth/affine_transformation_of_depth/03.0.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:24e4686b9465730f0fca137ce2b6470a7a51e886a5a1358ab2bffef216d0f87e
|
| 3 |
+
size 4608778
|
data/infinigen/test_scenes_release_cleaned_final/indoor__slow_solve-long_focal-2025-09-06-19-53-32___142efe82/synth_depth/boundary/01.0.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0ad23521132eb0a78c32cc32327d72bcdd24116c43ef5c525ee6c89f6c15b078
|
| 3 |
+
size 4608778
|
data/infinigen/test_scenes_release_cleaned_final/indoor__slow_solve-long_focal-2025-09-06-19-53-32___142efe82/synth_depth/boundary/02.0.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aa3b37afe04ca9cee0d9def8257e34cd3c45dcf9a4196c1f660ed6e18f40975c
|
| 3 |
+
size 4608778
|
data/infinigen/test_scenes_release_cleaned_final/indoor__slow_solve-long_focal-2025-09-06-19-53-32___142efe82/synth_depth/boundary/03.0.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b6a17c94c0342f27d647b412796dc0fc8de271729cd0325856bb5366dc60e8fe
|
| 3 |
+
size 4608778
|
data/infinigen/test_scenes_release_cleaned_final/indoor__slow_solve-long_focal-2025-09-06-19-53-32___142efe82/synth_depth/boundary/06.0.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4d08d17dd8e08c54879510417689a6ac7b04eadba08a5deb4870401fa853d707
|
| 3 |
+
size 4608778
|
data/infinigen/test_scenes_release_cleaned_final/indoor__slow_solve-long_focal-2025-09-06-19-53-32___142efe82/synth_depth/boundary/09.0.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c1ad664a424374422e779e13346b626b585b689aa75eaf5ab25faf4b8fe4d3c4
|
| 3 |
+
size 4608778
|
data/infinigen/test_scenes_release_cleaned_final/indoor__slow_solve-long_focal-2025-09-06-19-53-32___142efe82/synth_depth/boundary/12.0.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:af4565beaacca75ca028fcc3f66de988f6e0f4e66d6034f37defcc3fedcdadb4
|
| 3 |
+
size 4608778
|
data/infinigen/test_scenes_release_cleaned_final/indoor__slow_solve-long_focal-2025-09-06-19-53-32___142efe82/synth_depth/curv_high_freq/0.002_1.0.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8a8b81dc4ee7d3c95e108b0830bebd140db24adca2838e8df7929bdd930ff12c
|
| 3 |
+
size 4608778
|
data/infinigen/test_scenes_release_cleaned_final/indoor__slow_solve-long_focal-2025-09-06-19-53-32___142efe82/synth_depth/curv_high_freq/0.004_1.0.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7f2ef03a831fef69cad4a8c6e275b0655f15baf0fda7c5f1194c52d7bf934d26
|
| 3 |
+
size 4608778
|
data/infinigen/test_scenes_release_cleaned_final/indoor__slow_solve-long_focal-2025-09-06-19-53-32___142efe82/synth_depth/curv_high_freq/0.006_1.0.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0e53055694ccdf2f4c06750711c69671f136c34246e3e0d8a4963e9680fdb900
|
| 3 |
+
size 4608778
|
data/infinigen/test_scenes_release_cleaned_final/indoor__slow_solve-long_focal-2025-09-06-19-53-32___142efe82/synth_depth/curv_high_freq/0.008_1.0.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:711dece9ffd63d0f6f47256e25e7a3eb617c7899cf74df0e049ec818e0e23ae0
|
| 3 |
+
size 4608778
|
data/infinigen/test_scenes_release_cleaned_final/indoor__slow_solve-long_focal-2025-09-06-19-53-32___142efe82/synth_depth/curv_high_freq/0.010_1.0.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bc586307efab8ebf4e723f39d7b46e93a38b870be55c61b8956fdff0c40b86fe
|
| 3 |
+
size 4608778
|
data/infinigen/test_scenes_release_cleaned_final/indoor__slow_solve-long_focal-2025-09-06-19-53-32___142efe82/synth_depth/curv_high_freq/0.015_1.0.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5a1de897b39a662ded584aec1cb63df2b00e2ebb5fd6a68a2d79fd77c86b022c
|
| 3 |
+
size 4608778
|
data/infinigen/test_scenes_release_cleaned_final/indoor__slow_solve-long_focal-2025-09-06-19-53-32___142efe82/synth_depth/curv_high_freq/0.020_1.0.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:22444e9dd24c0885f07f2d419646f5d0b1f9ad9b6522e5e48e62d89f34ba85ed
|
| 3 |
+
size 4608778
|
data/infinigen/test_scenes_release_cleaned_final/nature__desert-long_focal-2025-09-07-11-43-28___1c33a692/synth_depth/curv_high_freq/0.006_1.0.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d9884661e49e1a3801e72cd448779fce89d806fbed349c2a2e295d5136bd6b00
|
| 3 |
+
size 4608778
|