jpterry commited on
Commit
8bddd63
·
1 Parent(s): c024fb4
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -333,7 +333,7 @@ def predict_and_analyze(model_name, num_channels, dim, input_channel, image):
333
  input_fig = plot_input(input_image, origin=origin)
334
 
335
  # plot mean subtracted activations
336
- fig1 = plot_activations(activation_1, activation_2, model_name, origin=origin)
337
 
338
  # plot raw activations
339
  _, _, activation_1, activation_2 = get_activations(model, image, model_name,
@@ -341,7 +341,7 @@ def predict_and_analyze(model_name, num_channels, dim, input_channel, image):
341
  sub_mean=False)
342
  activation_1 = normalize_array(activation_1)
343
  activation_2 = normalize_array(activation_2)
344
- fig2 = plot_activations(activation_1, activation_2, model_name, origin=origin)
345
 
346
  print("Sending to Hugging Face")
347
 
 
333
  input_fig = plot_input(input_image, origin=origin)
334
 
335
  # plot mean subtracted activations
336
+ fig1 = plot_activations(activation_1, activation_2, origin=origin)
337
 
338
  # plot raw activations
339
  _, _, activation_1, activation_2 = get_activations(model, image, model_name,
 
341
  sub_mean=False)
342
  activation_1 = normalize_array(activation_1)
343
  activation_2 = normalize_array(activation_2)
344
+ fig2 = plot_activations(activation_1, activation_2, origin=origin)
345
 
346
  print("Sending to Hugging Face")
347