smeintadmin/image_intents
Viewer • Updated • 2.38k • 10
How to use smeintadmin/image_intents with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="smeintadmin/image_intents") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("smeintadmin/image_intents")
model = AutoModelForSequenceClassification.from_pretrained("smeintadmin/image_intents", device_map="auto")Image data intents model to help classify text into either an image intent, or not an image intent. An image intent is classified as text that is asking for an image or an image to be generated.