Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import math
|
|
6 |
from pathlib import Path
|
7 |
from models import PosADANet
|
8 |
import json
|
9 |
-
|
10 |
import gdown
|
11 |
|
12 |
|
@@ -105,13 +105,13 @@ col1.subheader("Input Z-Buffer")
|
|
105 |
|
106 |
# apply transformations
|
107 |
pc = render_util.rotate_pc(pc, rx, ry, rz)
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
|
116 |
# Project and render the point z-buffer
|
117 |
zbuffer = render_util.draw_pc(pc, radius=model_data[model_key]['point_radius'], dy=dy, scale=scale)
|
|
|
6 |
from pathlib import Path
|
7 |
from models import PosADANet
|
8 |
import json
|
9 |
+
import plotly.graph_objects as go
|
10 |
import gdown
|
11 |
|
12 |
|
|
|
105 |
|
106 |
# apply transformations
|
107 |
pc = render_util.rotate_pc(pc, rx, ry, rz)
|
108 |
+
trace1 = [go.Scatter3d(x=pc[:, 0], y=pc[:, 1], z=-pc[:, 2], mode="markers",
|
109 |
+
marker=dict(
|
110 |
+
symbol="circle",
|
111 |
+
size=1,
|
112 |
+
color=point_color))]
|
113 |
+
fig = go.Figure(trace1, layout=go.Layout())
|
114 |
+
col1_head.plotly_chart(fig, use_container_width=True)
|
115 |
|
116 |
# Project and render the point z-buffer
|
117 |
zbuffer = render_util.draw_pc(pc, radius=model_data[model_key]['point_radius'], dy=dy, scale=scale)
|