सूचना: 15 अप्रैल, 2025 से पहले, Earth Engine का इस्तेमाल करने के लिए रजिस्टर किए गए सभी गैर-व्यावसायिक प्रोजेक्ट को, Earth Engine का ऐक्सेस बनाए रखने के लिए, गैर-व्यावसायिक इस्तेमाल की ज़रूरी शर्तों की पुष्टि करनी होगी.
हर अनुमान के उदाहरण के साथ पास की गई प्रॉपर्टी. इमेज के अनुमानों को टाइल किया जाता है. इसलिए, इन प्रॉपर्टी को हर इमेज टाइल इंस्टेंस में कॉपी किया जाएगा. डिफ़ॉल्ट रूप से, कोई प्रॉपर्टी नहीं होती है.
inputTypeOverride
डिक्शनरी, डिफ़ॉल्ट: null
अगर मॉडल के इनपुट के टाइप तय किए गए हैं, तो उन्हें इन टाइप में बदल दिया जाएगा. इमेज बैंड और इमेज/सुविधा की प्रॉपर्टी, दोनों मान्य हैं.
inputShapes
डिक्शनरी, डिफ़ॉल्ट: null
इनपुट ऐरे बैंड का तय किया गया आकार. हर ऐसे ऐरे बैंड के लिए जिसे तय नहीं किया गया है, फ़िक्स्ड ऐरे शेप को बिना मास्क किए गए पिक्सल से अपने-आप घटा दिया जाएगा.
proj
प्रोजेक्शन, डिफ़ॉल्ट: null
इनपुट प्रोजेक्शन, जिस पर सभी बैंड को सैंपल करना है. यह इमेज के पहले बैंड के डिफ़ॉल्ट प्रोजेक्शन पर डिफ़ॉल्ट रूप से सेट होता है.
fixInputProj
बूलियन, डिफ़ॉल्ट: null
अगर यह वैल्यू सही है, तो पिक्सल को 'proj' में तय किए गए फ़िक्स्ड प्रोजेक्शन में सैंपल किया जाएगा. ऐसा न होने पर, आउटपुट प्रोजेक्शन का इस्तेमाल किया जाता है. डिफ़ॉल्ट रूप से, यह 'गलत' पर सेट होती है.
inputTileSize
सूची, डिफ़ॉल्ट: null
प्रेडिक्शन इंस्टेंस में पास किए गए पिक्सल टाइल के आयताकार डाइमेंशन. इमेज के आधार पर अनुमान लगाने के लिए ज़रूरी है.
inputOverlapSize
सूची, डिफ़ॉल्ट: null
अनुमान के उदाहरणों में पास की गई पिक्सल टाइल के हर किनारे पर, X/Y में आस-पास की टाइल के ओवरलैप की मात्रा. डिफ़ॉल्ट रूप से, यह [0, 0] पर सेट होता है.
outputTileSize
सूची, डिफ़ॉल्ट: null
AI Platform से मिले पिक्सल टाइल के आयताकार डाइमेंशन. डिफ़ॉल्ट रूप से, इसकी वैल्यू 'inputTileSize' में मौजूद वैल्यू के बराबर होती है.
outputBands
डिक्शनरी, डिफ़ॉल्ट: null
यह आउटपुट बैंड के नामों से लेकर आउटपुट बैंड की जानकारी देने वाले शब्दकोश तक का मैप होता है. बैंड की जानकारी देने वाले मान्य फ़ील्ड, 'टाइप' और 'डाइमेंशन' हैं. 'type' को ee.PixelType होना चाहिए, जो आउटपुट बैंड के बारे में बताता है.साथ ही, 'dimensions' एक पूर्णांक होता है, जिसमें उस बैंड में डाइमेंशन की संख्या होती है. उदाहरण के लिए, "outputBands: {'p': {'type': ee.PixelType.int8(), 'dimensions': 1}}". इमेज के आधार पर अनुमान लगाने के लिए ज़रूरी है.
outputProperties
डिक्शनरी, डिफ़ॉल्ट: null
यह आउटपुट प्रॉपर्टी के नामों से लेकर आउटपुट प्रॉपर्टी की जानकारी के डिक्शनरी तक का मैप होता है. प्रॉपर्टी की जानकारी देने वाले मान्य फ़ील्ड 'type' और 'dimensions' हैं. 'type' को ee.PixelType होना चाहिए, जो आउटपुट प्रॉपर्टी के बारे में बताता है. साथ ही, 'dimensions' एक पूर्णांक होता है. यह उस प्रॉपर्टी के डाइमेंशन की संख्या बताता है. हालांकि, यह ज़रूरी नहीं है. उदाहरण के लिए, "outputBands: {'p': {'type': ee.PixelType.int8(), 'dimensions': 1}}". FeatureCollections से अनुमान पाने के लिए ज़रूरी है.
outputMultiplier
फ़्लोट, डिफ़ॉल्ट: null
मॉडल के इनपुट की तुलना में, मॉडल के आउटपुट के लिए डेटा वॉल्यूम में हुई बढ़ोतरी का अनुमान. अगर यह एट्रिब्यूट दिया गया है, तो इसकी वैल्यू 1 या इससे ज़्यादा होनी चाहिए. इसकी ज़रूरत सिर्फ़ तब होती है, जब मॉडल, इस्तेमाल किए गए डेटा से ज़्यादा डेटा जनरेट करता है. उदाहरण के लिए, ऐसा मॉडल जो पांच बैंड लेता है और हर पिक्सल के लिए 10 आउटपुट जनरेट करता है.
maxPayloadBytes
Long, डिफ़ॉल्ट: null
पूर्वानुमान के पेलोड के साइज़ की सीमा, बाइट में. डिफ़ॉल्ट रूप से, यह 1.5 एमबी (15,00,000 बाइट) पर सेट होती है.
payloadFormat
स्ट्रिंग, डिफ़ॉल्ट: null
पूर्वानुमान के अनुरोधों और जवाबों में मौजूद एंट्री का पेलोड फ़ॉर्मैट. इनमें से एक: ['SERIALIZED_TF_TENSORS, 'RAW_JSON', 'ND_ARRAYS', 'GRPC_TF_TENSORS', 'GRPC_SERIALIZED_TF_TENSORS', 'GRPC_TF_EXAMPLES']. डिफ़ॉल्ट रूप से, यह 'SERIALIZED_TF_TENSORS' पर सेट होती है.
[null,null,["आखिरी बार 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'. |"]]