Skip to content

Instantly share code, notes, and snippets.

@FavioVazquez

FavioVazquez/dl_sql_3.py

Last active May 2, 2018
Embed
What would you like to do?
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
You can’t perform that action at this time.