Spaces:
Build error
Build error
bug fix
Browse files
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 |
-
|
| 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)
|