Update clip_interrogator.py

This commit is contained in:
Saifeddine ALOUI 2023-11-28 16:46:16 +01:00 committed by GitHub
parent 504c936288
commit f12362c5d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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