You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sparkdl 0.2.2 available in pip returns the following error when importing either DeepImageFeaturizer or KerasTransformer.
It seems there is an incompatibility on the use of KerasImageFileTransformer since keras_image.py has been modified but the graph attribute not.
`---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
in
2 from pyspark.ml.evaluation import MulticlassClassificationEvaluator
3 from pyspark.ml import Pipeline
----> 4 from sparkdl import DeepImageFeaturizer
5
6 featurizer = DeepImageFeaturizer(inputCol="image", outputCol="features", modelName="InceptionV3")
/conda/envs/py36/lib/python3.6/site-packages/sparkdl/init.py in
15
16 from sparkdl.image.imageIO import imageSchema, imageType, readImages
---> 17 from sparkdl.transformers.keras_image import KerasImageFileTransformer
18 from sparkdl.transformers.named_image import DeepImagePredictor, DeepImageFeaturizer
19 from sparkdl.transformers.tf_image import TFImageTransformer
/conda/envs/py36/lib/python3.6/site-packages/sparkdl/transformers/keras_image.py in
20 from pyspark.ml.param import Params, TypeConverters
21
---> 22 import sparkdl.graph.utils as tfx
23 from sparkdl.transformers.keras_utils import KSessionWrap
24 from sparkdl.param import (
AttributeError: module 'sparkdl' has no attribute 'graph'
`
The text was updated successfully, but these errors were encountered:
I ran into such error a lot with the latest release. It's quite tedious to install one package at a time to keep eliminating the exceptions. So I took the easy way out and use older releases, instead. For me 1.3.0-spark2.4-s_2.11 works the best
sparkdl 0.2.2 available in pip returns the following error when importing either DeepImageFeaturizer or KerasTransformer.
It seems there is an incompatibility on the use of KerasImageFileTransformer since keras_image.py has been modified but the graph attribute not.
`---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
in
2 from pyspark.ml.evaluation import MulticlassClassificationEvaluator
3 from pyspark.ml import Pipeline
----> 4 from sparkdl import DeepImageFeaturizer
5
6 featurizer = DeepImageFeaturizer(inputCol="image", outputCol="features", modelName="InceptionV3")
/conda/envs/py36/lib/python3.6/site-packages/sparkdl/init.py in
15
16 from sparkdl.image.imageIO import imageSchema, imageType, readImages
---> 17 from sparkdl.transformers.keras_image import KerasImageFileTransformer
18 from sparkdl.transformers.named_image import DeepImagePredictor, DeepImageFeaturizer
19 from sparkdl.transformers.tf_image import TFImageTransformer
/conda/envs/py36/lib/python3.6/site-packages/sparkdl/transformers/keras_image.py in
20 from pyspark.ml.param import Params, TypeConverters
21
---> 22 import sparkdl.graph.utils as tfx
23 from sparkdl.transformers.keras_utils import KSessionWrap
24 from sparkdl.param import (
AttributeError: module 'sparkdl' has no attribute 'graph'
`
The text was updated successfully, but these errors were encountered: