shubham680 commited on
Commit
f890be7
·
verified ·
1 Parent(s): b69ffdf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -27,7 +27,8 @@ scaler = MinMaxScaler()
27
  for j in range(6):
28
  layer=conv_layers[layer_ind]
29
  weights=layer.get_weights()[0][:,:,0,j]
30
- norm_weights = scaler.fit_transform(weights)
 
31
  plt.subplot(2,3,j+1)
32
  plt.imshow(norm_weights,cmap='gray')
33
  plt.title(f"Conv Layer")
@@ -80,7 +81,7 @@ if uploaded_img is not None:
80
  fig1 = plt.figure(figsize=(100, 50))
81
  for i in range(120):
82
  plt.subplot(30, 4, i + 1)
83
- plt.imshow(fm[:, :, i], cmap='gray')
84
  plt.title(f"Feature Map {i+1}")
85
  plt.axis('off')
86
 
 
27
  for j in range(6):
28
  layer=conv_layers[layer_ind]
29
  weights=layer.get_weights()[0][:,:,0,j]
30
+ #norm_weights = scaler.fit_transform(weights)
31
+ norm_weights=weights
32
  plt.subplot(2,3,j+1)
33
  plt.imshow(norm_weights,cmap='gray')
34
  plt.title(f"Conv Layer")
 
81
  fig1 = plt.figure(figsize=(100, 50))
82
  for i in range(120):
83
  plt.subplot(30, 4, i + 1)
84
+ plt.imshow(fm[:, :, i])
85
  plt.title(f"Feature Map {i+1}")
86
  plt.axis('off')
87