update
Browse files- app.py +19 -0
- requirements.txt +0 -1
- src/experiments/log/gs/temp/form_video.mp4 +0 -0
- src/experiments/log/gs/temp/form_video_init.mp4 +0 -0
- src/experiments/log/gs/temp/gs_pred.splat +1 -1
- src/experiments/log/temp/0000.png +2 -2
- src/experiments/log/temp/0001.png +2 -2
- src/experiments/log/temp/0002.png +2 -2
- src/experiments/log/temp/0003.png +2 -2
- src/experiments/log/temp/0004.png +2 -2
- src/experiments/log/temp/0005.png +2 -2
- src/experiments/log/temp/0006.png +2 -2
- src/experiments/log/temp/0007.png +2 -2
- src/experiments/log/temp/0008.png +2 -2
- src/experiments/log/temp/0009.png +2 -2
- src/experiments/log/temp/0010.png +2 -2
- src/experiments/log/temp/0011.png +2 -2
- src/experiments/log/temp/0012.png +2 -2
- src/experiments/log/temp/0013.png +2 -2
- src/experiments/log/temp/0014.png +2 -2
app.py
CHANGED
@@ -22,6 +22,11 @@ import kornia
|
|
22 |
import yaml
|
23 |
import matplotlib.pyplot as plt
|
24 |
from sklearn.neighbors import NearestNeighbors
|
|
|
|
|
|
|
|
|
|
|
25 |
from dgl.geometry import farthest_point_sampler
|
26 |
|
27 |
import sys
|
@@ -60,6 +65,20 @@ def fps(x, enabled, n, device, random_start=False):
|
|
60 |
return fps_idx
|
61 |
|
62 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
class DynamicsVisualizer:
|
64 |
|
65 |
def __init__(self):
|
|
|
22 |
import yaml
|
23 |
import matplotlib.pyplot as plt
|
24 |
from sklearn.neighbors import NearestNeighbors
|
25 |
+
|
26 |
+
gs_path = str(Path(__file__).parent / 'src/third-party/diff-gaussian-rasterization-w-depth')
|
27 |
+
os.system(f'pip install -e {gs_path}')
|
28 |
+
os.system('conda install -c dglteam/label/th24_cu124 dgl')
|
29 |
+
os.system('conda install conda-forge::ffmpeg')
|
30 |
from dgl.geometry import farthest_point_sampler
|
31 |
|
32 |
import sys
|
|
|
65 |
return fps_idx
|
66 |
|
67 |
|
68 |
+
def fps_new(x, enabled, n, device, random_start=False):
|
69 |
+
assert torch.diff(enabled * 1.0).sum() in [0.0, -1.0]
|
70 |
+
# start_idx = random.randint(0, enabled.sum() - 1) if random_start else 0
|
71 |
+
N = enabled.sum().item()
|
72 |
+
pcd = o3d.geometry.PointCloud()
|
73 |
+
pcd.points = o3d.utility.Vector3dVector(x[enabled].cpu().numpy())
|
74 |
+
pcd.colors = o3d.utility.Vector3dVector(
|
75 |
+
np.arange(len(pcd.points))[:, None] / len(pcd.points) * np.ones((1, 3), dtype=np.float32)
|
76 |
+
)
|
77 |
+
downpcd_farthest = pcd.farthest_point_down_sample(n)
|
78 |
+
fps_idx = np.array(downpcd_farthest.colors)[:, 0] * N
|
79 |
+
return fps_idx
|
80 |
+
|
81 |
+
|
82 |
class DynamicsVisualizer:
|
83 |
|
84 |
def __init__(self):
|
requirements.txt
CHANGED
@@ -27,4 +27,3 @@ torch==2.5.1 --index-url https://download.pytorch.org/whl/cu124
|
|
27 |
torchvision==0.20.1 --index-url https://download.pytorch.org/whl/cu124
|
28 |
torchaudio==2.5.1 --index-url https://download.pytorch.org/whl/cu124
|
29 |
torchdata==0.7.1
|
30 |
-
dgl -f https://data.dgl.ai/wheels/torch-2.4/cu124/repo.html
|
|
|
27 |
torchvision==0.20.1 --index-url https://download.pytorch.org/whl/cu124
|
28 |
torchaudio==2.5.1 --index-url https://download.pytorch.org/whl/cu124
|
29 |
torchdata==0.7.1
|
|
src/experiments/log/gs/temp/form_video.mp4
CHANGED
Binary files a/src/experiments/log/gs/temp/form_video.mp4 and b/src/experiments/log/gs/temp/form_video.mp4 differ
|
|
src/experiments/log/gs/temp/form_video_init.mp4
CHANGED
Binary files a/src/experiments/log/gs/temp/form_video_init.mp4 and b/src/experiments/log/gs/temp/form_video_init.mp4 differ
|
|
src/experiments/log/gs/temp/gs_pred.splat
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 7675392
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:14a7bd4f83ff4c2c640e57589673f1c0b0ec571515f3bdb5437fba6bea9035ed
|
3 |
size 7675392
|
src/experiments/log/temp/0000.png
CHANGED
![]() |
Git LFS Details
|
![]() |
Git LFS Details
|
src/experiments/log/temp/0001.png
CHANGED
![]() |
Git LFS Details
|
![]() |
Git LFS Details
|
src/experiments/log/temp/0002.png
CHANGED
![]() |
Git LFS Details
|
![]() |
Git LFS Details
|
src/experiments/log/temp/0003.png
CHANGED
![]() |
Git LFS Details
|
![]() |
Git LFS Details
|
src/experiments/log/temp/0004.png
CHANGED
![]() |
Git LFS Details
|
![]() |
Git LFS Details
|
src/experiments/log/temp/0005.png
CHANGED
![]() |
Git LFS Details
|
![]() |
Git LFS Details
|
src/experiments/log/temp/0006.png
CHANGED
![]() |
Git LFS Details
|
![]() |
Git LFS Details
|
src/experiments/log/temp/0007.png
CHANGED
![]() |
Git LFS Details
|
![]() |
Git LFS Details
|
src/experiments/log/temp/0008.png
CHANGED
![]() |
Git LFS Details
|
![]() |
Git LFS Details
|
src/experiments/log/temp/0009.png
CHANGED
![]() |
Git LFS Details
|
![]() |
Git LFS Details
|
src/experiments/log/temp/0010.png
CHANGED
![]() |
Git LFS Details
|
![]() |
Git LFS Details
|
src/experiments/log/temp/0011.png
CHANGED
![]() |
Git LFS Details
|
![]() |
Git LFS Details
|
src/experiments/log/temp/0012.png
CHANGED
![]() |
Git LFS Details
|
![]() |
Git LFS Details
|
src/experiments/log/temp/0013.png
CHANGED
![]() |
Git LFS Details
|
![]() |
Git LFS Details
|
src/experiments/log/temp/0014.png
CHANGED
![]() |
Git LFS Details
|
![]() |
Git LFS Details
|