상세 컨텐츠

본문 제목

Transformers Pipeline, Tokenizer, Model, and Result

Hugging Face Course

by Taeyoon.Kim.DS 2023. 9. 14. 23:16

본문

from PIL import Image
import glob
from transformers import BlipProcessor, BlipForConditionalGeneration

processor = BlipProcessor.from_pretrained("Salesforce/blip-image-captioning-base")
model = BlipForConditionalGeneration.from_pretrained("Salesforce/blip-image-captioning-base")

 

관련글 더보기