trying to find out output issue
Browse files
app.py
CHANGED
@@ -175,6 +175,8 @@ def predict_and_analyze(model_name, num_channels, dim, image):
|
|
175 |
print("Looking at activations")
|
176 |
output, activation_1, activation_2 = get_activations(model, image, sub_mean=True)
|
177 |
|
|
|
|
|
178 |
if output[0] < output[1]:
|
179 |
output = 'Planet prediction with %f percent confidence' % (100*output[1])
|
180 |
else:
|
|
|
175 |
print("Looking at activations")
|
176 |
output, activation_1, activation_2 = get_activations(model, image, sub_mean=True)
|
177 |
|
178 |
+
print(output)
|
179 |
+
|
180 |
if output[0] < output[1]:
|
181 |
output = 'Planet prediction with %f percent confidence' % (100*output[1])
|
182 |
else:
|