Last active
May 2, 2018 16:27
-
-
Save FavioVazquez/af566a98d19952eb0b61938c4752f7dc 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 pyspark.ml.image import ImageSchema | |
image_df = ImageSchema.readImages("flower_photos/sample/") | |
image_df.registerTempTable("sample_images") | |
df = spark.sql("SELECT inceptionV3_udf_with_preprocessing(image) as predictions from sample_images").show(truncate=False) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment