mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-18 20:27:58 +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 math
|
||||
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 requests
|
||||
import time
|
||||
|
Loading…
Reference in New Issue
Block a user