got tid of .model
Browse files
app.py
CHANGED
@@ -88,11 +88,11 @@ def get_activations(model, image: list, model_name: str,
|
|
88 |
|
89 |
|
90 |
layer_outputs = {}
|
91 |
-
for i in range(len(model.
|
92 |
-
image = model.
|
93 |
layer_outputs[i] = image
|
94 |
print(i, layer_outputs[i].shape)
|
95 |
-
output = model
|
96 |
output_1 = activation_indices[model_name].detach().cpu().numpy()
|
97 |
output_2 = activation_indices[model_name].detach().cpu().numpy()
|
98 |
|
|
|
88 |
|
89 |
|
90 |
layer_outputs = {}
|
91 |
+
for i in range(len(model.features)):
|
92 |
+
image = model.features[i](image)
|
93 |
layer_outputs[i] = image
|
94 |
print(i, layer_outputs[i].shape)
|
95 |
+
output = model(image).detach().cpu().numpy()
|
96 |
output_1 = activation_indices[model_name].detach().cpu().numpy()
|
97 |
output_2 = activation_indices[model_name].detach().cpu().numpy()
|
98 |
|