Created
September 13, 2022 15:12
-
-
Save callmemaze/884dd9dc0e7d1fc7a8c8226b4e18da6f to your computer and use it in GitHub Desktop.
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
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 5, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"name": "stdout", | |
"output_type": "stream", | |
"text": [ | |
"Downloading data from https://storage.googleapis.com/download.tensorflow.org/data/imagenet_class_index.json\n", | |
"40960/35363 [==================================] - 0s 1us/step\n", | |
"49152/35363 [=========================================] - 0s 1us/step\n", | |
"[[('n02099601', 'golden_retriever', 0.5354275), ('n02113799', 'standard_poodle', 0.32865775), ('n02104029', 'kuvasz', 0.050152738), ('n02099712', 'Labrador_retriever', 0.017040437), ('n02093647', 'Bedlington_terrier', 0.013122461)]]\n" | |
] | |
} | |
], | |
"source": [ | |
"prediction = model.predict(x_train)\n", | |
"pred = vgg16.decode_predictions(prediction)\n", | |
"print(pred)" | |
] | |
} | |
], | |
"metadata": { | |
"kernelspec": { | |
"display_name": "Python 3.9.7 64-bit", | |
"language": "python", | |
"name": "python3" | |
}, | |
"language_info": { | |
"name": "python", | |
"version": "3.9.7" | |
}, | |
"orig_nbformat": 4, | |
"vscode": { | |
"interpreter": { | |
"hash": "dfcd168785218dca7c4bc510ef2c51c49c0c0203e4213351545f8c8481fa3636" | |
} | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment