Spaces:
Build error
Build error
going back to just model
Browse files
app.py
CHANGED
|
@@ -118,8 +118,8 @@ def get_activations(model, image: list, model_name: str,
|
|
| 118 |
|
| 119 |
layer_outputs = {}
|
| 120 |
temp_image = image
|
| 121 |
-
for i in range(len(model.
|
| 122 |
-
temp_image = model.
|
| 123 |
if i in activation_indices[model_name]:
|
| 124 |
layer_outputs[i] = image
|
| 125 |
print(i, layer_outputs[i].shape)
|
|
|
|
| 118 |
|
| 119 |
layer_outputs = {}
|
| 120 |
temp_image = image
|
| 121 |
+
for i in range(len(model.features)):
|
| 122 |
+
temp_image = 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)
|