mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
remove clip as requirement
Signed-off-by: vladmandic <mandic00@live.com>
This commit is contained in:
@@ -102,6 +102,8 @@ def get_clip_models():
|
||||
|
||||
|
||||
def refresh_clip_models():
|
||||
from installer import install
|
||||
install('open-clip-torch', no_deps=True, quiet=True)
|
||||
global clip_models # pylint: disable=global-statement
|
||||
import open_clip
|
||||
models = sorted(open_clip.list_pretrained())
|
||||
|
||||
Reference in New Issue
Block a user