Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Problem in the Vertex AI example of 'Multi-class prediction with a DNN hosted on Vertex AI'

Liulizhi_1-1733127398987.png

I runed the Vertex AI example shown above in cloab, when it reaches the De/serialization stage, the error message is as follows.How should I solve this problem?
ValueError: Exception encountered when calling DeSerializeInput.call(). Could not automatically infer the output shape / dtype of 'de_serialize_input' (of type DeSerializeInput). Either the `DeSerializeInput.call()` method is incorrect, or you need to implement the `DeSerializeInput.compute_output_spec() / compute_output_shape()` method. Error encountered: as_list() is not defined on an unknown TensorShape. 

Liulizhi_0-1733129013399.png

In addition, in another example of Hosting a Pre-trained Tree-crown Segmentation Model, a similar problem also occurred, but I was able to run it normally in November 2023.
NotImplementedError: Exception encountered when calling Lambda.call(). We could not automatically infer the shape of the Lambda's output. Please specify the `output_shape` argument for this Lambda layer.

Liulizhi_1-1733129071092.png

 

 

 

0 1 256
1 REPLY 1