FIX: Numpy >= 1.24.x has no attribute 'warnings'

This commit is contained in:
Art Gourieff 2023-08-05 21:51:30 +07:00 committed by GitHub
parent 0c89ad3ef4
commit 71b00f1809
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,6 +14,9 @@ from modules.face_restoration import FaceRestoration
from modules.upscaler import UpscalerData
from scripts.logger import logger
import warnings
np.warnings = warnings
np.warnings.filterwarnings('ignore')
providers = onnxruntime.get_available_providers()