Anuncio: Todos los proyectos no comerciales registrados para usar Earth Engine antes del 15 de abril de 2025 deben verificar su elegibilidad no comercial para mantener el acceso a Earth Engine.
Son las propiedades que se pasan con cada instancia de predicción. Las predicciones de imágenes se muestran en mosaico, por lo que estas propiedades se replicarán en cada instancia de mosaico de imagen. La configuración predeterminada es sin propiedades.
inputTypeOverride
Diccionario, valor predeterminado: nulo
Son los tipos a los que se forzarán las entradas del modelo si se especifican. Tanto las bandas de imágenes como las propiedades de imágenes o de entidades son válidas.
inputShapes
Diccionario, valor predeterminado: nulo
Es la forma fija de las bandas del array de entrada. Para cada banda del array que no se especifique, la forma fija del array se deducirá automáticamente a partir de un píxel no enmascarado.
proj
Proyección, valor predeterminado: nulo
Es la proyección de entrada en la que se deben muestrear todas las bandas. El valor predeterminado es la proyección predeterminada de la primera banda de una imagen.
fixInputProj
Booleano, valor predeterminado: nulo
Si es verdadero, se tomarán muestras de los píxeles en una proyección fija especificada por "proj". De lo contrario, se usa la proyección de salida. La configuración predeterminada es "false".
inputTileSize
Lista, valor predeterminado: null
Son las dimensiones rectangulares de las tarjetas de píxeles que se pasan a las instancias de predicción. Es obligatorio para las predicciones de imágenes.
inputOverlapSize
Lista, valor predeterminado: null
Cantidad de superposición de mosaicos adyacentes en X/Y a lo largo de cada borde de los mosaicos de píxeles que se pasan a las instancias de predicción. La configuración predeterminada es [0, 0].
outputTileSize
Lista, valor predeterminado: null
Son las dimensiones rectangulares de las tarjetas de píxeles que devuelve AI Platform. El valor predeterminado es el valor de "inputTileSize".
outputBands
Diccionario, valor predeterminado: nulo
Es un mapa de los nombres de las bandas de salida a un diccionario de información de las bandas de salida. Los campos de información de banda válidos son "type" y "dimensions". "type" debe ser un ee.PixelType que describa la banda de salida, y "dimensions" es un número entero opcional con la cantidad de dimensiones en esa banda, p.ej., "outputBands: {'p': {'type': ee.PixelType.int8(), 'dimensions': 1}}". Es obligatorio para las predicciones de imágenes.
outputProperties
Diccionario, valor predeterminado: nulo
Es un mapa de nombres de propiedades de salida a un diccionario de información de propiedades de salida. Los campos de información de propiedades válidos son "type" y "dimensions". "type" debe ser un ee.PixelType que describa la propiedad de salida, y "dimensions" es un número entero opcional con la cantidad de dimensiones para esa propiedad si es un array, p.ej., "outputBands: {'p': {'type': ee.PixelType.int8(), 'dimensions': 1}}". Se requiere para las predicciones de FeatureCollections.
outputMultiplier
Número de punto flotante, valor predeterminado: nulo
Es una aproximación al aumento en el volumen de datos para los resultados del modelo en comparación con las entradas del modelo. Si se especifica, debe ser >= 1. Esto solo es necesario si el modelo produce más datos de los que consume, p.ej., un modelo que toma 5 bandas y produce 10 salidas por píxel.
maxPayloadBytes
Larga, valor predeterminado: nulo
Es el límite de tamaño de la carga útil de la predicción en bytes. El valor predeterminado es 1.5 MB (1,500,000 bytes).
payloadFormat
Cadena, valor predeterminado: nulo
Es el formato de carga útil de las entradas en las solicitudes y respuestas de predicción. Puede ser uno de los siguientes: ["SERIALIZED_TF_TENSORS", "RAW_JSON", "ND_ARRAYS", "GRPC_TF_TENSORS", "GRPC_SERIALIZED_TF_TENSORS", "GRPC_TF_EXAMPLES"]. El valor predeterminado es “SERIALIZED_TF_TENSORS”.
[null,null,["Última actualización: 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'. |"]]