Anúncio: todos os projetos não comerciais registrados para usar o Earth Engine antes de 15 de abril de 2025 precisam verificar a qualificação não comercial para manter o acesso ao Earth Engine.
Propriedades transmitidas com cada instância de previsão. As previsões de imagem são lado a lado, então essas propriedades serão replicadas em cada instância de bloco de imagem. O padrão é "sem propriedades".
inputTypeOverride
Dicionário, padrão: null
Tipos para os quais as entradas de modelo serão convertidas, se especificadas. As bandas de imagem e as propriedades de imagem/recurso são válidas.
inputShapes
Dicionário, padrão: null
O formato fixo das bandas da matriz de entrada. Para cada banda de matriz não especificada, a forma de matriz fixa será deduzida automaticamente de um pixel não mascarado.
proj
Projeção, padrão: nulo
A projeção de entrada em que todas as bandas serão amostradas. O padrão é a projeção padrão da primeira banda de uma imagem.
fixInputProj
Booleano, padrão: nulo
Se for "true", os pixels serão amostrados em uma projeção fixa especificada por "proj". Caso contrário, a projeção de saída será usada. O padrão é "false".
inputTileSize
Lista, padrão: nulo
Dimensões retangulares de blocos de pixels transmitidos para instâncias de previsão. Obrigatório para previsões de imagens.
inputOverlapSize
Lista, padrão: nulo
Quantidade de sobreposição de blocos adjacentes em X/Y ao longo de cada borda dos blocos de pixels transmitidos para instâncias de previsão. O padrão é [0, 0].
outputTileSize
Lista, padrão: nulo
Dimensões retangulares dos blocos de pixels retornados da AI Platform. O padrão é o valor em "inputTileSize".
outputBands
Dicionário, padrão: null
Um mapa dos nomes de banda de saída para um dicionário de informações de banda de saída. Os campos válidos de informações de banda são "type" e "dimensions". "type" precisa ser um ee.PixelType que descreve a banda de saída, e "dimensions" é um número inteiro opcional com o número de dimensões nessa banda, por exemplo, "outputBands: {'p': {'type': ee.PixelType.int8(), 'dimensions': 1}}". Obrigatório para previsões de imagens.
outputProperties
Dicionário, padrão: null
Um mapa dos nomes das propriedades de saída para um dicionário de informações de propriedades de saída. Os campos válidos de informações de propriedades são "type" e "dimensions". "type" precisa ser um ee.PixelType que descreve a propriedade de saída, e "dimensions" é um número inteiro opcional com o número de dimensões dessa propriedade se ela for uma matriz, por exemplo, "outputBands: {'p': {'type': ee.PixelType.int8(), 'dimensions': 1}}". Obrigatório para previsões de FeatureCollections.
outputMultiplier
Ponto flutuante, padrão: nulo
Uma aproximação do aumento no volume de dados para as saídas do modelo em relação às entradas. Se especificado, precisa ser >= 1. Isso só é necessário se o modelo produzir mais dados do que consome, por exemplo, um modelo que usa cinco bandas e produz 10 saídas por pixel.
maxPayloadBytes
Long, padrão: null
O limite de tamanho do payload de previsão em bytes. O padrão é 1,5 MB (1.500.000 bytes).
payloadFormat
String, padrão: null
O formato do payload das entradas em solicitações e respostas de previsão. Um destes: ["SERIALIZED_TF_TENSORS", "RAW_JSON", "ND_ARRAYS", "GRPC_TF_TENSORS", "GRPC_SERIALIZED_TF_TENSORS", "GRPC_TF_EXAMPLES"]. O padrão é "SERIALIZED_TF_TENSORS".
[null,null,["Última atualização 2025-07-26 UTC."],[[["\u003cp\u003eReturns an \u003ccode\u003eee.Model\u003c/code\u003e representing a Vertex AI model endpoint for making predictions within Earth Engine.\u003c/p\u003e\n"],["\u003cp\u003eEnables integration with pre-trained or custom Vertex AI models for Earth Engine analysis.\u003c/p\u003e\n"],["\u003cp\u003eAccepts various parameters for configuring model inputs, outputs, and prediction behavior.\u003c/p\u003e\n"],["\u003cp\u003eSupports customization of data types, projections, tile sizes, and payload formats for model interaction.\u003c/p\u003e\n"],["\u003cp\u003eThis functionality is currently in public preview and subject to potential changes.\u003c/p\u003e\n"]]],["This document describes the `ee.Model.fromVertexAi` method, which retrieves a model from a Vertex AI endpoint. Key actions include specifying the `endpoint`, input properties, and output properties/bands. Users can define `inputShapes`, `inputTileSize`, and `inputOverlapSize` for image predictions. Control over data handling involves `inputTypeOverride`, `proj`, `fixInputProj`, `outputTileSize`, `outputMultiplier`, `maxPayloadBytes`, and `payloadFormat`. The method returns a Model, with detailed argument specifications provided.\n"],null,["# ee.Model.fromVertexAi\n\nReturns an ee.Model from a description of a Vertex AI model endpoint. (See https://cloud.google.com/vertex-ai).\n\n\u003cbr /\u003e\n\n| **Warning:** This method is in public preview and may undergo breaking changes.\n\n| Usage | Returns |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------|\n| `ee.Model.fromVertexAi(endpoint, `*inputProperties* `, `*inputTypeOverride* `, `*inputShapes* `, `*proj* `, `*fixInputProj* `, `*inputTileSize* `, `*inputOverlapSize* `, `*outputTileSize* `, `*outputBands* `, `*outputProperties* `, `*outputMultiplier* `, `*maxPayloadBytes* `, `*payloadFormat*`)` | Model |\n\n| Argument | Type | Details |\n|---------------------|---------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `endpoint` | String | The endpoint name for predictions. |\n| `inputProperties` | List, default: null | Properties passed with each prediction instance. Image predictions are tiled, so these properties will be replicated into each image tile instance. Defaults to no properties. |\n| `inputTypeOverride` | Dictionary, default: null | Types to which model inputs will be coerced if specified. Both Image bands and Image/Feature properties are valid. |\n| `inputShapes` | Dictionary, default: null | The fixed shape of input array bands. For each array band not specified, the fixed array shape will be automatically deduced from a non-masked pixel. |\n| `proj` | Projection, default: null | The input projection at which to sample all bands. Defaults to the default projection of an image's first band. |\n| `fixInputProj` | Boolean, default: null | If true, pixels will be sampled in a fixed projection specified by 'proj'. The output projection is used otherwise. Defaults to false. |\n| `inputTileSize` | List, default: null | Rectangular dimensions of pixel tiles passed in to prediction instances. Required for image predictions. |\n| `inputOverlapSize` | List, default: null | Amount of adjacent-tile overlap in X/Y along each edge of pixel tiles passed in to prediction instances. Defaults to \\[0, 0\\]. |\n| `outputTileSize` | List, default: null | Rectangular dimensions of pixel tiles returned from AI Platform. Defaults to the value in 'inputTileSize'. |\n| `outputBands` | Dictionary, default: null | A map from output band names to a dictionary of output band info. Valid band info fields are 'type' and 'dimensions'. 'type' should be a ee.PixelType describing the output band, and 'dimensions' is an optional integer with the number of dimensions in that band e.g., \"outputBands: {'p': {'type': ee.PixelType.int8(), 'dimensions': 1}}\". Required for image predictions. |\n| `outputProperties` | Dictionary, default: null | A map from output property names to a dictionary of output property info. Valid property info fields are 'type' and 'dimensions'. 'type' should be a ee.PixelType describing the output property, and 'dimensions' is an optional integer with the number of dimensions for that property if it is an array e.g., \"outputBands: {'p': {'type': ee.PixelType.int8(), 'dimensions': 1}}\". Required for predictions from FeatureCollections. |\n| `outputMultiplier` | Float, default: null | An approximation to the increase in data volume for the model outputs over the model inputs. If specified this must be \\\u003e= 1. This is only needed if the model produces more data than it consumes, e.g., a model that takes 5 bands and produces 10 outputs per pixel. |\n| `maxPayloadBytes` | Long, default: null | The prediction payload size limit in bytes. Defaults to 1.5MB (1500000 bytes.) |\n| `payloadFormat` | String, default: null | The payload format of entries in prediction requests and responses. One of: \\['SERIALIZED_TF_TENSORS, 'RAW_JSON', 'ND_ARRAYS', 'GRPC_TF_TENSORS', 'GRPC_SERIALIZED_TF_TENSORS', 'GRPC_TF_EXAMPLES'\\]. Defaults to 'SERIALIZED_TF_TENSORS'. |"]]