Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -65,5 +65,5 @@ else:
|
|
65 |
st.write(cnn.apply({"params": params}, input).argmax(axis=1)[0])
|
66 |
|
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).transpose(1,2,0)
|
69 |
st.image(Image.fromarray(rgb, mode="RGB").resize((28, 28)))
|
|
|
65 |
st.write(cnn.apply({"params": params}, input).argmax(axis=1)[0])
|
66 |
|
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).astype(np.uint8).transpose(1,2,0)
|
69 |
st.image(Image.fromarray(rgb, mode="RGB").resize((28, 28)))
|