Spaces:
Sleeping
Sleeping
Update utils.py
Browse files40 unmodified lines4142434445444546474849504849515253545540 unmodified lines
# Load vision encoder and processor for IP-Adapter embeddingvision_encoder = CLIPVisionModelWithProjection.from_pretrained( f"{IPADAPTER_REPO}/clip_vision_model", cache_dir=CACHE_DIR, "h94/IP-Adapter", # repo_id (main IP-Adapter repo) subfolder="clip_vision_model",# subfolder within the repo! cache_dir=CACHE_DIR)
image_processor = CLIPImageProcessor.from_pretrained( "h94/IP-Adapter", f"{IPADAPTER_REPO}/clip_vision_model", cache_dir=CACHE_DIR, subfolder="clip_vision_model", cache_dir=CACHE_DIR)
def generate_sticker(input_image: Image.Image, prompt: str):utils.py+7-4