-
Notifications
You must be signed in to change notification settings - Fork 318
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
GCP AI Platform (unified) Python export_model FailedPrecondition: 400 Exporting artifact in format `` is not supported #194
Comments
Hello @zdhernandez: Thank you for reporting the issue. The service defaults to the first supported export formats if it is not specified in the request: https://github.com/googleapis/python-aiplatform/blob/master/google/cloud/aiplatform_v1beta1/types/model_service.py#L220-L225 So it appears that the model you have does not support any export format. Only certain model types support model export: tabular and edge according to the documentation. |
@dizcology The model that I am trying to export is of type: MOBILE_TF_LOW_LATENCY_1 update: I double-checked the AIPlatform and I can confirm it is an edge model.
|
Thank you @zdhernandez, for good measure could you try again with a modified request like this: https://github.com/googleapis/python-aiplatform/blob/master/samples/snippets/export_model_video_action_recognition_sample.py#L34-L37 (Looking at the sample test, it seems you might need to format the string in a certain particular way.) |
@dizcology I tried:
and got:
|
I think the value of
|
@dizcology That works! It printed: and I have a bucket with one model.tflite file The export_model_sample should include the "export_format_id" as well as the example from GCP. Thank you very much for your time and help. |
I am using the Google AiPlatform (Unified) Python client to export a trained model to a Google Cloud bucket. I am following the sample code from: export_model_sample.
The application has "owner" credentials at the moment because I want to make sure it is not a permissions issue. However, when I try to execute the sample code I am getting the following error:
(I have omitted the project id and the models id. Using 10101 and 123123)
I have verified my inputs but everything seems ok:
I am also using the latest version of google-cloud-aiplatform==0.4.0
The trained model that I am trying to export is of type: MOBILE_TF_LOW_LATENCY_1
I would like to just export the model to a cloud bucket.
My requirements.txt is:
The text was updated successfully, but these errors were encountered: