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

Deep Image Featurizer for both MLeap serializeToBundle and model.save #203

Open
Karl-Keller opened this issue Jul 25, 2019 · 0 comments
Open

Comments

@Karl-Keller
Copy link

I've tried saving an InceptionV3-based model using DeepImageFeaturizer with both MLeap and model.save receiving the following errors:

p_model.serializeToBundle("jar:file:/tmp/Images/ParkingSpaces/Models/psinception.zip", tested_df)
java.util.NoSuchElementException: key not found: com.databricks.sparkdl.DeepImageFeaturizer

and

p_model.save('/dbfs://FileStore/psinception.pb') # saves to the distributed (persistent) filesystem to the URL location accessible at /files...
ValueError: ('Pipeline write will fail on this pipeline because stage %s of type %s is not MLWritable', 'DeepImageFeaturizer_b717d8e93b47', <class 'sparkdl.transformers.named_image.DeepImageFeaturizer'>)

Since it's failing in both approaches and the issue resolved here seemed aimed directly at solving persistence for DIF, I thought this might be the best place to post. I've also posted in Forum but received no feedback.

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