Thông báo: Tất cả dự án phi thương mại đã đăng ký sử dụng Earth Engine trước ngày 15 tháng 4 năm 2025 phải xác minh điều kiện sử dụng phi thương mại để duy trì quyền truy cập vào Earth Engine.
Các thuộc tính được truyền cùng với mỗi phiên bản dự đoán. Các dự đoán về hình ảnh được xếp thành ô, vì vậy, các thuộc tính này sẽ được sao chép vào từng thực thể ô hình ảnh. Giá trị mặc định là không có thuộc tính.
inputTypeOverride
Từ điển, mặc định: null
Các loại mà đầu vào mô hình sẽ được chuyển đổi nếu được chỉ định. Cả dải hình ảnh và thuộc tính Hình ảnh/Đối tượng đều hợp lệ.
inputShapes
Từ điển, mặc định: null
Hình dạng cố định của các dải mảng đầu vào. Đối với mỗi dải ô mảng không được chỉ định, hình dạng mảng cố định sẽ tự động được suy ra từ một pixel không được che.
proj
Phép chiếu, mặc định: null
Phép chiếu đầu vào để lấy mẫu tất cả các dải tần. Mặc định là phép chiếu mặc định của dải tần đầu tiên của hình ảnh.
fixInputProj
Boolean, mặc định: null
Nếu đúng, các pixel sẽ được lấy mẫu trong một phép chiếu cố định do "proj" chỉ định. Nếu không, chế độ chiếu đầu ra sẽ được dùng. Giá trị mặc định là false.
inputTileSize
Danh sách, mặc định: null
Kích thước hình chữ nhật của các ô pixel được truyền vào các phiên bản dự đoán. Bắt buộc đối với tính năng dự đoán hình ảnh.
inputOverlapSize
Danh sách, mặc định: null
Lượng ô liền kề chồng lên nhau theo hướng X/Y dọc theo mỗi cạnh của các ô pixel được truyền vào các phiên bản dự đoán. Giá trị mặc định là [0, 0].
outputTileSize
Danh sách, mặc định: null
Kích thước hình chữ nhật của các ô pixel do AI Platform trả về. Giá trị mặc định là giá trị trong "inputTileSize".
outputBands
Từ điển, mặc định: null
Bản đồ từ tên dải tần đầu ra đến một từ điển thông tin dải tần đầu ra. Các trường thông tin dải tần hợp lệ là "type" và "dimensions". "type" phải là ee.PixelType mô tả băng tần đầu ra và "dimensions" là một số nguyên không bắt buộc với số lượng phương diện trong băng tần đó, ví dụ: "outputBands: {'p': {'type': ee.PixelType.int8(), 'dimensions': 1}}". Bắt buộc đối với tính năng dự đoán hình ảnh.
outputProperties
Từ điển, mặc định: null
Bản đồ từ tên thuộc tính đầu ra đến một từ điển thông tin thuộc tính đầu ra. Các trường thông tin thuộc tính hợp lệ là "type" và "dimensions". "type" phải là ee.PixelType mô tả thuộc tính đầu ra và "dimensions" là một số nguyên không bắt buộc với số lượng phương diện cho thuộc tính đó nếu đó là một mảng, ví dụ: "outputBands: {'p': {'type': ee.PixelType.int8(), 'dimensions': 1}}". Bắt buộc đối với thông tin dự đoán từ FeatureCollection.
outputMultiplier
Float, mặc định: null
Mức tăng gần đúng về khối lượng dữ liệu cho đầu ra của mô hình so với đầu vào của mô hình. Nếu được chỉ định, giá trị này phải >= 1. Bạn chỉ cần làm việc này nếu mô hình tạo ra nhiều dữ liệu hơn mức tiêu thụ, ví dụ: một mô hình lấy 5 dải tần và tạo ra 10 đầu ra cho mỗi pixel.
maxPayloadBytes
Dài, mặc định: null
Giới hạn kích thước tải trọng dự đoán tính bằng byte. Giá trị mặc định là 1,5 MB (1.500.000 byte).
payloadFormat
Chuỗi, mặc định: null
Định dạng tải trọng của các mục trong yêu cầu và phản hồi dự đoán. Một trong các loại sau: ['SERIALIZED_TF_TENSORS, 'RAW_JSON', 'ND_ARRAYS', 'GRPC_TF_TENSORS', 'GRPC_SERIALIZED_TF_TENSORS', 'GRPC_TF_EXAMPLES']. Giá trị mặc định là "SERIALIZED_TF_TENSORS".
[null,null,["Cập nhật lần gần đây nhất: 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'. |"]]