Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -67,4 +67,4 @@ else:
|
|
67 |
with st.expander("See first convolutional layer"):
|
68 |
rgb = np.repeat(np.expand_dims(np.array(params["Conv_0"]["kernel"].squeeze()[:,:,0]+1)*127., axis=0), repeats=3, axis=0)
|
69 |
print(rgb)
|
70 |
-
st.image(Image.fromarray(rgb, mode="RGB").resize((28, 28)))
|
|
|
67 |
with st.expander("See first convolutional layer"):
|
68 |
rgb = np.repeat(np.expand_dims(np.array(params["Conv_0"]["kernel"].squeeze()[:,:,0]+1)*127., axis=0), repeats=3, axis=0)
|
69 |
print(rgb)
|
70 |
+
st.image(Image.fromarray(rgb, mode="RGB").transpose(1,2,0).resize((28, 28)))
|