|
|
|
@ -39,8 +39,8 @@ pip install clip-interrogator
|
|
|
|
|
You can then use it in your script |
|
|
|
|
```python |
|
|
|
|
from PIL import Image |
|
|
|
|
from clip_interrogator import CLIPInterrogator, Config |
|
|
|
|
from clip_interrogator import Interrogator, Config |
|
|
|
|
image = Image.open(image_path).convert('RGB') |
|
|
|
|
interrogator = CLIPInterrogator(Config(clip_model_name="ViT-L/14")) |
|
|
|
|
print(interrogator.interrogate(image)) |
|
|
|
|
ci = Interrogator(Config(clip_model_name="ViT-L/14")) |
|
|
|
|
print(ci.interrogate(image)) |
|
|
|
|
``` |
|
|
|
|