Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Compute an L2-normalized embedding for a single RGB image
(D,)
float32
from grid_cortex_client import CortexClient, ModelType import numpy as np from PIL import Image client = CortexClient() image = np.array(Image.open("cat.jpg")) emb = client.run(ModelType.C_RADIO, image_input=image) print(emb.shape, float(np.linalg.norm(emb))) # (D,) 1.0
Was this page helpful?