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