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 |
grid = np.array(params["Conv_0"]["kernel"].reshape((3, 3, 4, 8)).transpose(2,0,3,1).reshape(12, 24)+1)*127.
|
69 |
rgb = np.repeat(np.expand_dims(grid, axis=0), repeats=3, axis=0).astype(np.uint8).transpose(1,2,0)
|
70 |
-
st.image(Image.fromarray(rgb, mode="RGB")
|
|
|
67 |
with st.expander("See first convolutional layer"):
|
68 |
grid = np.array(params["Conv_0"]["kernel"].reshape((3, 3, 4, 8)).transpose(2,0,3,1).reshape(12, 24)+1)*127.
|
69 |
rgb = np.repeat(np.expand_dims(grid, axis=0), repeats=3, axis=0).astype(np.uint8).transpose(1,2,0)
|
70 |
+
st.image(Image.fromarray(rgb, mode="RGB"))
|