Spaces:
Sleeping
Sleeping
debugging: xai output distortion
Browse files
app.py
CHANGED
|
@@ -211,8 +211,8 @@ def explain_image(input_image,model_name,explain_method,nb_samples):
|
|
| 211 |
else:
|
| 212 |
size = 600
|
| 213 |
#saliency, integrated, smoothgrad,
|
| 214 |
-
h,w = input_image.shape[:2]
|
| 215 |
-
classes,exp_list = explain(model,input_image,h,w,explain_method,nb_samples,size = size, n_classes=n_classes)
|
| 216 |
#original = saliency + integrated + smoothgrad
|
| 217 |
print('done')
|
| 218 |
|
|
|
|
| 211 |
else:
|
| 212 |
size = 600
|
| 213 |
#saliency, integrated, smoothgrad,
|
| 214 |
+
h, w = input_image.shape[:2]
|
| 215 |
+
classes,exp_list = explain(model,input_image, h, w, explain_method,nb_samples,size = size, n_classes=n_classes)
|
| 216 |
#original = saliency + integrated + smoothgrad
|
| 217 |
print('done')
|
| 218 |
|