mirror of
https://github.com/vladmandic/automatic
synced 2026-09-06 13:00:44 +02:00
update logging
This commit is contained in:
+1
-1
@@ -74,7 +74,7 @@ class Script(scripts.Script):
|
||||
shared.sd_model.sd_model_hash = ''
|
||||
shared.sd_model.sd_model_checkpoint = model
|
||||
except Exception as e:
|
||||
shared.log.error(f'Loading CogVideoX: {e}')
|
||||
shared.log.error(f'Load CogVideoX: {e}')
|
||||
if debug:
|
||||
errors.display(e, 'CogVideoX')
|
||||
if shared.sd_model_type == 'cogvideox' and model != 'None':
|
||||
|
||||
@@ -93,7 +93,7 @@ class FaceRestorerYolo(FaceRestoration):
|
||||
if self.model is None:
|
||||
model_file = modelloader.load_file_from_url(url=self.model_url, model_dir=self.model_dir, file_name=self.model_name)
|
||||
if model_file is not None:
|
||||
shared.log.info(f'Loading: type=FaceHires model={model_file}')
|
||||
shared.log.info(f'Load: type=FaceHires model={model_file}')
|
||||
from ultralytics import YOLO # pylint: disable=import-outside-toplevel
|
||||
self.model = YOLO(model_file)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user