mirror of
https://github.com/pharmapsychotic/clip-interrogator-ext.git
synced 2026-01-26 19:29:53 +00:00
Better method to ensure latest CLIP Interrogator library version is installed.
This commit is contained in:
14
install.py
Normal file
14
install.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import launch
|
||||
|
||||
CI_VERSION = "0.5.4"
|
||||
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")
|
||||
@@ -1 +0,0 @@
|
||||
clip-interrogator==0.5.4
|
||||
@@ -7,7 +7,7 @@ from clip_interrogator import Config, Interrogator
|
||||
|
||||
from modules import devices, script_callbacks, shared, lowvram
|
||||
|
||||
__version__ = '0.0.4'
|
||||
__version__ = '0.0.5'
|
||||
|
||||
ci = None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user