Image to prompt with BLIP and CLIP
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
from PIL import Image |
|
from clip_interrogator import Interrogator, Config |
|
image = Image.open("C:/Users/NakaMura/Desktop/2163670-bigthumbnail.jpg").convert('RGB') |
|
ci = Interrogator(Config(clip_model_name="ViT-B-32/openai")) |
|
print(ci.interrogate(image)) |