I'm using tensorflow==1.13.1
When I try to create the model using exact steps as you in colab notebook, I'm getting the error:
ERROR: (gcloud.beta.ai-platform.versions.create) FAILED_PRECONDITION: Field: prediction_class Error: Exactly one of "prediction_class" and "framework" may be provided. In order to use a custom prediction class, "framework" should be left unspecified.
description: Exactly one of "prediction_class" and "framework" may be provided.
In order to use a custom prediction class, "framework" should be left unspecified.
field: prediction_class
As the above ERROR suggests: In order to use a custom prediction class, "framework" should be left unspecified.
I've removed the field: --framework='TENSORFLOW' \
but now I'm getting the below error:
ERROR: (gcloud.beta.ai-platform.versions.create) Create Version failed. Bad model detected with error: "Failed to load model: User-provided package so_predict-0.1.tar.gz failed to install: Command '['python-default', '-m', 'pip', 'install', '--target=/tmp/custom_lib', '--no-cache-dir', '-b', '/tmp/pip_builds', '/tmp/custom_code/so_predict-0.1.tar.gz']' returned non-zero exit status 1 (Error code: 0)"
Also, I tried using the same model locally and it's working fine.
Really appreciate your help.
Hi @sararob,
I'm using tensorflow==1.13.1 When I try to create the model using exact steps as you in colab notebook, I'm getting the error:
ERROR: (gcloud.beta.ai-platform.versions.create) FAILED_PRECONDITION: Field: prediction_class Error: Exactly one of "prediction_class" and "framework" may be provided. In order to use a custom prediction class, "framework" should be left unspecified.
As the above ERROR suggests: In order to use a custom prediction class, "framework" should be left unspecified. I've removed the field: --framework='TENSORFLOW' \
but now I'm getting the below error:
ERROR: (gcloud.beta.ai-platform.versions.create) Create Version failed. Bad model detected with error: "Failed to load model: User-provided package so_predict-0.1.tar.gz failed to install: Command '['python-default', '-m', 'pip', 'install', '--target=/tmp/custom_lib', '--no-cache-dir', '-b', '/tmp/pip_builds', '/tmp/custom_code/so_predict-0.1.tar.gz']' returned non-zero exit status 1 (Error code: 0)"
Also, I tried using the same model locally and it's working fine. Really appreciate your help.