ANI

The deep entry into photographic and view of the vector with biobquery in Google Cloud

The deep entry into photographic and view of the vector with biobquery in Google Cloud
Photo for Editor | Chatgt

Obvious Introduction

We're all there: endless investigating online stores, trying to find that perfect thing. In today's Fast-Fast-Fast-Fast Earth's world, we expect immediate results, and that is exactly where AI treads on the top.

In the heart of this change release a picture. It is a sweet noun Name: To allow you to search products not only with keywords, but themselves visuality. Imagine finding that the dress is exactly what you saw in the social media by uploading the picture! This technology is making purchases online in the Serderer, more accurate, and ultimately, helps businesses to make more sales.

Ready to see how it works? We will show you how to integrate the ability of the Greese Mechanical Skills to create your AI driven searches using these excellent photos.

Obvious The magic of the feeding of the image

In fact, embedding the process The process is changing photos into pricing (veryes) in the upper surface. Similar photos with semistone (eg blue dress and blue clothing) will have consequences “approaching” to each other in this space. This allows a powerful comparison and searching of a simple metadata.

Here are a few photographs we will use in this demo to produce inspection.

Here are a few photographs we will use in this demo to produce inspection.Here are a few photographs we will use in this demo to produce inspection.

Demo will show the process of creating a photo embarking model on Google Cloud.

The first step is to create a model: Monthly named image_embeddings_model created to bring the power of a multimodalembedding@001 the end to image_embedding dataset.

CREATE OR REPLACE MODEL 
   `image_embedding.image_embeddings_model`
REMOTE WITH CONNECTION `[PROJECT_ID].us.llm-connection`
OPTIONS (
   ENDPOINT = 'multimodalembedding@001'
);

To create a item table: Processing of the Bookquery photos, we will create an external table called external_images_table in image_embedding The data will show all photos stored in the bucket of Google Cloud.

CREATE OR REPLACE EXTERNAL TABLE 
   `image_embedding.external_images_table` 
WITH CONNECTION `[PROJECT_ID].us.llm-connection` 
OPTIONS( 
   object_metadata="SIMPLE", 
   uris = ['gs://[BUCKET_NAME]/*'], 
   max_staleness = INTERVAL 1 DAY, 
   metadata_cache_mode="AUTOMATIC"
);

To produce embedding: When the model and table of object is in place, we will produce a photographic embodding using the model that created above and keep them at the table dress_embeddings.

CREATE OR REPLACE TABLE `image_embedding.dress_embeddings` AS SELECT * 
FROM ML.GENERATE_EMBEDDING( 
   MODEL `image_embedding.image_embeddings_model`, 
   TABLE `image_embedding.external_images_table`, 
   STRUCT(TRUE AS flatten_json_output, 
   512 AS output_dimensionality) 
);

Obvious Opening the ability to search for Vector

By a picture embedded, we will use the Vector search to find the dress we want. Unlike traditional searches that rely on different keywords, Vector searches finds things based on the same thing. This means you can search for pictures using the definitions of text or other pictures.

// To wear the search on the text

Performs a text search: Here we will use VECTOR_SEARCH Work within Bombenery to search for “blue dress” among all clothes. The text “Blue dressing” will be converted into the vector and with the help of the Vector we will return the same vectors.

CREATE OR REPLACE TABLE `image_embedding.image_search_via_text` AS 
SELECT base.uri AS image_link, distance 
FROM 
VECTOR_SEARCH( 
   TABLE `image_embedding.dress_embeddings`, 
   'ml_generate_embedding_result', 
   ( 
      SELECT ml_generate_embedding_result AS embedding_col 
      FROM ML.GENERATE_EMBEDDING 
      ( 
         MODEL`image_embedding.image_embeddings_model` , 
            (
               SELECT "Blue dress" AS content
            ), 
            STRUCT 
         (
            TRUE AS flatten_json_output, 
            512 AS output_dimensionality
         ) 
      )
   ),
   top_k => 5 
)
ORDER BY distance ASC; 
SELECT * FROM `image_embedding.image_search_via_text`;

Result: Question results will give an image_link and the distance of each result. You can see the results you will receive will provide you with the closest match in relation to the search question and clothing available.

ResultResult

// Wearing Search For Picture

Now, we will look at how we can use the image to find the same pictures. Let's try to find a dress that looks like the picture below:

Let's try to get a dress that looks like a picture belowLet's try to get a dress that looks like a picture below

External Table of Checking: I will have to save the checkpoint picture on the bucket of Google Cloud and create an external table external_images_test_tableKeeping a test picture used for search.

CREATE OR REPLACE EXTERNAL TABLE 
   `image_embedding.external_images_test_table` 
WITH CONNECTION `[PROJECT_ID].us.llm-connection` 
OPTIONS( 
   object_metadata="SIMPLE", 
   uris = ['gs://[BUCKET_NAME]/test-image-for-dress/*'], 
   max_staleness = INTERVAL 1 DAY, 
   metadata_cache_mode="AUTOMATIC"
);

Produce a test picture embryo: Now, we will produce embeddowns of the one test photo using ML.GENERATE_EMBEDDING work.

CREATE OR REPLACE TABLE `image_embedding.test_dress_embeddings` AS 
SELECT * 
FROM ML.GENERATE_EMBEDDING
   ( 
      MODEL `image_embedding.image_embeddings_model`, 
      TABLE `image_embedding.external_images_test_table`, STRUCT(TRUE AS flatten_json_output, 
      512 AS output_dimensionality
   ) 
);

Vector search associated with the picture: Finally, motivation of the checkpoint will be used for the Vector search against image_embedding.dress_embeddings the table. This page ml_generate_embedding_result from the image_embedding.test_dress_embeddings will be used as a question to move.

SELECT base.uri AS image_link, distance 
FROM 
VECTOR_SEARCH( 
   TABLE `image_embedding.dress_embeddings`, 
   'ml_generate_embedding_result', 
   ( 
      SELECT * FROM `image_embedding.test_dress_embeddings`
   ),
   top_k => 5, 
   distance_type => 'COSINE', 
   options => '{"use_brute_force":true}' 
);

Result: The results of the photo search questions showed material material. The main result was white-dress for the grade 0.2243, followed by sky-blue-dress for the distance 0.3645, and polka-dot-dress grade 0.3828.

These results are well showed the ability to find the same things in terms of the installation picture.These results are well showed the ability to find the same things in terms of the installation picture.

These results are well showed the ability to find the same things in terms of the installation picture.

// Import

The show is successfully indicating how images modify the Novector searches in the vector search on Google Cloud can change our partner and visual data. From the e-commerce platforms that enable the “same shop” features to the content control systems that provide the acquisition of smart material, the applications are great. By converting pictures into the searches are searching, this technology opens the new feature of search, which makes it accurate, powerful, and asked.

These results can be introduced to the user, providing the power to find a desired dress immediately.

Obvious Ai Dress search benefits

  1. Advanced User experience: Visible search provides an accurate and effective method of users to find out what they want
  2. Improvement Reason: Photo embryos enables search based on visual recognition, bringing more appropriate results than the search based on each name
  3. Additional Sales: Importing customers to find the requirements they want, AI searching AI can improve conversion and income

Obvious Without a clothing dress

By integrating image embeditation with the ability to process the Bhroquery data, you can create the AI solutions that convert access to visual content. From e-commerce measuring content, photographic and biobquery empowerment power is increasing above the search.

Here are some potential apps:

  • IE-Commerce: Product Recommendations, Visible Search in Other Product States
  • Fashion Design: The Tax Analysis, Promotion of Design
  • Balance of Content: Undeedable Content
  • Copyright Recreation: To get the same visual images to prevent mental assets

Learn more about embarking on a bernquery here with Vector Search here.

Nivetita Kumari Is the analytics of the closed data and Ai Professional for more than 10 years of experience. In his current role, such as the Data Analytics engineer is always working with C Langa Managers and helping the data manufacturer and guide them to create data and machine learning machine. Nivetita has made its monasteries to the focus of the Data Analytics from the University of Illinois at Ullinois in the Ullinois-Champaign at Urbana-Champions. He wants a democracy and AI, violates technical obstacles so that everyone can be a part of this revolution technology. You share her knowledge and experience with the engineer community by building tutorials, guidelines, ideas of ideas, and coding demonstrations. Connect with Nivedita on LinkedIn.

Source link

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button