jpterry commited on
Commit
8f4303a
·
1 Parent(s): 3f9e954
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -117,8 +117,9 @@ def get_activations(model, image: list, model_name: str,
117
 
118
 
119
  layer_outputs = {}
 
120
  for i in range(len(model.model.features)):
121
- image = model.model.features[i](image)
122
  if i in activation_indices[model_name]:
123
  layer_outputs[i] = image
124
  print(i, layer_outputs[i].shape)
 
117
 
118
 
119
  layer_outputs = {}
120
+ temp_image = image
121
  for i in range(len(model.model.features)):
122
+ temp_image = model.model.features[i](temp_image)
123
  if i in activation_indices[model_name]:
124
  layer_outputs[i] = image
125
  print(i, layer_outputs[i].shape)