Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -39,9 +39,13 @@ import base64
|
|
39 |
|
40 |
file = open(r'./training(3).gif', 'rb')
|
41 |
contents = file.read()
|
42 |
-
data_url = base64.b64encode(contents).decode('utf-8
|
43 |
file.close()
|
44 |
-
|
|
|
|
|
|
|
|
|
45 |
|
46 |
st.markdown("[NeRF](https://arxiv.org/abs/2003.08934) proposes an ingenious way to synthesize novel views of a scene by modelling the volumetric scene function through a neural network. The network learns to model the volumetric scene, thus generating novel views (images) of the 3D scene that the model was not shown at training time.")
|
47 |
st.markdown("![](https://github.com/alesteba/training_NeRF/blob/e89da9448b3993117c78532c14c7142970f0d8df/training(3).gif)")
|
@@ -54,6 +58,7 @@ st.markdown("## Interactive Demo")
|
|
54 |
from huggingface_hub import from_pretrained_keras
|
55 |
nerf_loaded = from_pretrained_keras("Alesteba/NeRF_ficus")
|
56 |
|
|
|
57 |
# set the values of r theta phi
|
58 |
r = 4.0
|
59 |
theta = st.slider("",min_value=0.0, max_value=360.0, label_visibility="hidden")
|
|
|
39 |
|
40 |
file = open(r'./training(3).gif', 'rb')
|
41 |
contents = file.read()
|
42 |
+
data_url = base64.b64encode(contents).decode('utf-8')
|
43 |
file.close()
|
44 |
+
|
45 |
+
st.markdown(
|
46 |
+
f'<img src="data:image/gif;base64,{data_url}" alt="cat gif">',
|
47 |
+
unsafe_allow_html=True,
|
48 |
+
)
|
49 |
|
50 |
st.markdown("[NeRF](https://arxiv.org/abs/2003.08934) proposes an ingenious way to synthesize novel views of a scene by modelling the volumetric scene function through a neural network. The network learns to model the volumetric scene, thus generating novel views (images) of the 3D scene that the model was not shown at training time.")
|
51 |
st.markdown("![](https://github.com/alesteba/training_NeRF/blob/e89da9448b3993117c78532c14c7142970f0d8df/training(3).gif)")
|
|
|
58 |
from huggingface_hub import from_pretrained_keras
|
59 |
nerf_loaded = from_pretrained_keras("Alesteba/NeRF_ficus")
|
60 |
|
61 |
+
|
62 |
# set the values of r theta phi
|
63 |
r = 4.0
|
64 |
theta = st.slider("",min_value=0.0, max_value=360.0, label_visibility="hidden")
|