mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-01-20 19:49:25 +00:00
Update clip_interrogator.py
This commit is contained in:
parent
504c936288
commit
f12362c5d1
@ -11,7 +11,13 @@ from lollms.utilities import PackageManager
|
|||||||
import hashlib
|
import hashlib
|
||||||
import math
|
import math
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import open_clip
|
|
||||||
|
if PackageManager.check_package_installed("open_clip"):
|
||||||
|
import open_clip
|
||||||
|
else:
|
||||||
|
PackageManager.install_package("open_clip_torch")
|
||||||
|
import open_clip
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import requests
|
import requests
|
||||||
import time
|
import time
|
||||||
|
Loading…
Reference in New Issue
Block a user