Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module 'sparkdl.image.imageIO' has no attribute 'readImagesWithCustomFn' #229

Open
venus-kni opened this issue Jun 4, 2020 · 0 comments

Comments

@venus-kni
Copy link

Hello guys,
I want to apply deep learning to load the images by using pysparkdl and google colab.
but after running the following commands in colab, I take an error.
can anybody help me, please?

the version of pyspark is "sparkdl==0.2.2"

this is the code:

from sparkdl.image import imageIO as imageIO

tulips_df = ImageSchema.readImages("flower_photos/tulips").withColumn("label", lit(1))
daisy_df = imageIO.readImagesWithCustomFn("flower_photos/daisy", decode_f=imageIO.PIL_decode).withColumn("label", lit(0)) 

this is the error:
AttributeError: module 'sparkdl.image.imageIO' has no attribute 'readImagesWithCustomFn'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant