mirror of
https://github.com/pharmapsychotic/clip-interrogator-ext.git
synced 2026-01-26 19:29:53 +00:00
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")
|