mirror of
https://github.com/pharmapsychotic/clip-interrogator-ext.git
synced 2026-02-10 10:20:03 +00:00
- supports latest version of transformers library (no more conflict with Dreambooth extension) - support for BLIP-2 and git-large-coco caption models
15 lines
339 B
Python
15 lines
339 B
Python
import launch
|
|
|
|
CI_VERSION = "0.6.0"
|
|
needs_install = False
|
|
|
|
try:
|
|
import clip_interrogator
|
|
if clip_interrogator.__version__ != CI_VERSION:
|
|
needs_install = True
|
|
except ImportError:
|
|
needs_install = True
|
|
|
|
if needs_install:
|
|
launch.run_pip(f"install clip-interrogator=={CI_VERSION}", "requirements for CLIP Interrogator")
|