Created
May 2, 2018 15:46
-
-
Save FavioVazquez/b6e4ab8787f4bd4a7186d858a86c3521 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| from sparkdl import DeepImagePredictor | |
| # Read images using Spark | |
| image_df = ImageSchema.readImages("flower_photos/sample/") | |
| predictor = DeepImagePredictor(inputCol="image", outputCol="predicted_labels", modelName="InceptionV3", decodePredictions=True, topK=10) | |
| predictions_df = predictor.transform(image_df) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment