magiv2-crop-embedder

65
1
1 language
by
ragavsachdeva
Code Model
OTHER
New
65 downloads
Early-stage
Edge AI:
Mobile
Laptop
Server
Unknown
Mobile
Laptop
Server
Quick Summary

AI model with specialized capabilities.

Code Examples

Usagepythontransformers
from transformers import AutoModel
import PIL
import torch

batch_of_images = [PIL.Image.open("image1.jpg"), PIL.Image.open("image2.jpg")]
model = AutoModel.from_pretrained("ragavsachdeva/magiv2-crop-embedder", trust_remote_code=True).cuda().eval()
with torch.no_grad():
    embeddings = model(batch_of_images)

print(embeddings.shape)
Usagepythontransformers
from transformers import AutoModel
import PIL
import torch

batch_of_images = [PIL.Image.open("image1.jpg"), PIL.Image.open("image2.jpg")]
model = AutoModel.from_pretrained("ragavsachdeva/magiv2-crop-embedder", trust_remote_code=True).cuda().eval()
with torch.no_grad():
    embeddings = model(batch_of_images)

print(embeddings.shape)
Usagepythontransformers
from transformers import AutoModel
import PIL
import torch

batch_of_images = [PIL.Image.open("image1.jpg"), PIL.Image.open("image2.jpg")]
model = AutoModel.from_pretrained("ragavsachdeva/magiv2-crop-embedder", trust_remote_code=True).cuda().eval()
with torch.no_grad():
    embeddings = model(batch_of_images)

print(embeddings.shape)
Usagepythontransformers
from transformers import AutoModel
import PIL
import torch

batch_of_images = [PIL.Image.open("image1.jpg"), PIL.Image.open("image2.jpg")]
model = AutoModel.from_pretrained("ragavsachdeva/magiv2-crop-embedder", trust_remote_code=True).cuda().eval()
with torch.no_grad():
    embeddings = model(batch_of_images)

print(embeddings.shape)
Usagepythontransformers
from transformers import AutoModel
import PIL
import torch

batch_of_images = [PIL.Image.open("image1.jpg"), PIL.Image.open("image2.jpg")]
model = AutoModel.from_pretrained("ragavsachdeva/magiv2-crop-embedder", trust_remote_code=True).cuda().eval()
with torch.no_grad():
    embeddings = model(batch_of_images)

print(embeddings.shape)
Usagepythontransformers
from transformers import AutoModel
import PIL
import torch

batch_of_images = [PIL.Image.open("image1.jpg"), PIL.Image.open("image2.jpg")]
model = AutoModel.from_pretrained("ragavsachdeva/magiv2-crop-embedder", trust_remote_code=True).cuda().eval()
with torch.no_grad():
    embeddings = model(batch_of_images)

print(embeddings.shape)
Usagepythontransformers
from transformers import AutoModel
import PIL
import torch

batch_of_images = [PIL.Image.open("image1.jpg"), PIL.Image.open("image2.jpg")]
model = AutoModel.from_pretrained("ragavsachdeva/magiv2-crop-embedder", trust_remote_code=True).cuda().eval()
with torch.no_grad():
    embeddings = model(batch_of_images)

print(embeddings.shape)
Usagepythontransformers
from transformers import AutoModel
import PIL
import torch

batch_of_images = [PIL.Image.open("image1.jpg"), PIL.Image.open("image2.jpg")]
model = AutoModel.from_pretrained("ragavsachdeva/magiv2-crop-embedder", trust_remote_code=True).cuda().eval()
with torch.no_grad():
    embeddings = model(batch_of_images)

print(embeddings.shape)

Deploy This Model

Production-ready deployment in minutes

Together.ai

Instant API access to this model

Fastest API

Production-ready inference API. Start free, scale to millions.

Try Free API

Replicate

One-click model deployment

Easiest Setup

Run models in the cloud with simple API. No DevOps required.

Deploy Now

Disclosure: We may earn a commission from these partners. This helps keep LLMYourWay free.