PrakhAI commited on
Commit
34afd71
·
1 Parent(s): d92da68

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -65,6 +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)
69
- print(rgb)
70
- st.image(Image.fromarray(rgb, mode="RGB").transpose(1,2,0).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).transpose(1,2,0)
69
+ st.image(Image.fromarray(rgb, mode="RGB").resize((28, 28)))