Skip to content

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

Description

@venus-kni

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'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions