mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-09 13:49:48 +00:00
rename print_error to report, use it with together with package name
This commit is contained in:
@@ -2,10 +2,9 @@ import os
|
||||
|
||||
from basicsr.utils.download_util import load_file_from_url
|
||||
|
||||
from modules.errors import print_error
|
||||
from modules.upscaler import Upscaler, UpscalerData
|
||||
from ldsr_model_arch import LDSR
|
||||
from modules import shared, script_callbacks
|
||||
from modules import shared, script_callbacks, errors
|
||||
import sd_hijack_autoencoder # noqa: F401
|
||||
import sd_hijack_ddpm_v1 # noqa: F401
|
||||
|
||||
@@ -51,7 +50,7 @@ class UpscalerLDSR(Upscaler):
|
||||
try:
|
||||
return LDSR(model, yaml)
|
||||
except Exception:
|
||||
print_error("Error importing LDSR", exc_info=True)
|
||||
errors.report("Error importing LDSR", exc_info=True)
|
||||
return None
|
||||
|
||||
def do_upscale(self, img, path):
|
||||
|
Reference in New Issue
Block a user