Spaces:
Sleeping
Sleeping
fabiencasenave
commited on
Commit
•
1036858
1
Parent(s):
4629515
Update app.py
Browse files
app.py
CHANGED
@@ -55,9 +55,9 @@ def sample_info(sample_id_str, fieldn):
|
|
55 |
[ 0, 0, 0, 1]])
|
56 |
|
57 |
# render scene
|
58 |
-
|
59 |
-
|
60 |
-
color = np.random.rand(512, 512)
|
61 |
|
62 |
plt.figure(figsize=(8,8))
|
63 |
plt.imshow(color)
|
|
|
55 |
[ 0, 0, 0, 1]])
|
56 |
|
57 |
# render scene
|
58 |
+
r = pyrender.OffscreenRenderer(512, 512)
|
59 |
+
color, _ = r.render(scene)
|
60 |
+
# color = np.random.rand(512, 512)
|
61 |
|
62 |
plt.figure(figsize=(8,8))
|
63 |
plt.imshow(color)
|