-
-
Save sararob/fa499725a1bae6aeb58f8250a4da7595 to your computer and use it in GitHub Desktop.
Explanation metadata for image models
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Change to the image size your model is expecting | |
# This example takes 192x192 images | |
random_baseline = np.random.rand(192,192,3) | |
explanation_metadata = { | |
"inputs": { | |
"data": { | |
"input_tensor_name": "input_pixels:0", | |
"modality": "image", | |
"input_baselines": [random_baseline.tolist()] | |
} | |
}, | |
"outputs": { | |
"probability": { | |
"output_tensor_name": "dense/Softmax:0" | |
} | |
}, | |
"framework": "tensorflow" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment