Skip to content

Commit

Permalink
reduce control logging
Browse files Browse the repository at this point in the history
Signed-off-by: Vladimir Mandic <[email protected]>
  • Loading branch information
vladmandic committed Jan 10, 2025
1 parent ac2adaa commit 55b7f02
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Change Log for SD.Next

## Update for 2025-01-09
## Update for 2025-01-10

- [Allegro Video](https://huggingface.co/rhymes-ai/Allegro)
- optimizations: full offload and quantization support
Expand Down
4 changes: 2 additions & 2 deletions modules/control/processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,13 @@ def load(self, processor_id: str = None, force: bool = True) -> str:
self.config(processor_id)
else:
if not force and self.model is not None:
log.debug(f'Control Processor: id={processor_id} already loaded')
# log.debug(f'Control Processor: id={processor_id} already loaded')
return ''
if processor_id not in config:
log.error(f'Control Processor unknown: id="{processor_id}" available={list(config)}')
return f'Processor failed to load: {processor_id}'
cls = config[processor_id]['class']
log.debug(f'Control Processor loading: id="{processor_id}" class={cls.__name__}')
# log.debug(f'Control Processor loading: id="{processor_id}" class={cls.__name__}')
debug(f'Control Processor config={self.load_config}')
if 'DWPose' in processor_id:
det_ckpt = 'https://download.openmmlab.com/mmdetection/v2.0/yolox/yolox_l_8x8_300e_coco/yolox_l_8x8_300e_coco_20211126_140236-d3bd2b23.pth'
Expand Down
2 changes: 1 addition & 1 deletion modules/control/units/controlnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def load(self, model_id: str = None, force: bool = True) -> str:
self.model = model_path
return
if model_id == self.model_id and not force:
log.debug(f'Control {what} model: id="{model_id}" path="{model_path}" already loaded')
# log.debug(f'Control {what} model: id="{model_id}" path="{model_path}" already loaded')
return
log.debug(f'Control {what} model loading: id="{model_id}" path="{model_path}"')
cls, _config = self.get_class(model_id)
Expand Down
2 changes: 1 addition & 1 deletion modules/control/units/lite.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def load(self, model_id: str = None, force: bool = True) -> str:
log.error(f'Control {what} model load failed: id="{model_id}" error=unknown model id')
return
if model_id == self.model_id and not force:
log.debug(f'Control {what} model: id="{model_id}" path="{model_path}" already loaded')
# log.debug(f'Control {what} model: id="{model_id}" path="{model_path}" already loaded')
return
log.debug(f'Control {what} model loading: id="{model_id}" path="{model_path}" {self.load_config}')
if model_path.endswith('.safetensors'):
Expand Down
2 changes: 1 addition & 1 deletion modules/control/units/t2iadapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def load(self, model_id: str = None, force: bool = True) -> str:
log.error(f'Control {what} model load failed: id="{model_id}" error=unknown model id')
return
if model_id == self.model_id and not force:
log.debug(f'Control {what} model: id="{model_id}" path="{model_path}" already loaded')
# log.debug(f'Control {what} model: id="{model_id}" path="{model_path}" already loaded')
return
log.debug(f'Control {what} model loading: id="{model_id}" path="{model_path}"')
if model_path.endswith('.pth') or model_path.endswith('.pt') or model_path.endswith('.safetensors') or model_path.endswith('.bin'):
Expand Down
2 changes: 1 addition & 1 deletion modules/control/units/xs.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def load(self, model_id: str = None, time_embedding_mix: float = 0.0, force: boo
log.error(f'Control {what} model load failed: id="{model_id}" error=unknown model id')
return
if model_id == self.model_id and not force:
log.debug(f'Control {what} model: id="{model_id}" path="{model_path}" already loaded')
# log.debug(f'Control {what} model: id="{model_id}" path="{model_path}" already loaded')
return
self.load_config['time_embedding_mix'] = time_embedding_mix
log.debug(f'Control {what} model loading: id="{model_id}" path="{model_path}" {self.load_config}')
Expand Down

0 comments on commit 55b7f02

Please sign in to comment.