Skip to content

Commit

Permalink
update arg list for control net
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoXing1996 committed May 29, 2023
1 parent 34b5411 commit bd370ca
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions mmagic/models/editors/controlnet/controlnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ class ControlStableDiffusion(StableDiffusion):
dtype (str, optional): The dtype for the model. Defaults to 'fp16'.
enable_xformers (bool, optional): Whether to use xformers.
Defaults to True.
noise_offset_weight (bool, optional): The weight of noise offset
introduced in https://www.crosslabs.org/blog/diffusion-with-offset-noise # noqa
Defaults to 0.
data_preprocessor (dict, optional): The pre-process config of
:class:`BaseDataPreprocessor`. Defaults to
dict(type='DataPreprocessor').
Expand All @@ -63,12 +66,14 @@ def __init__(self,
test_scheduler: Optional[ModelType] = None,
dtype: str = 'fp32',
enable_xformers: bool = True,
noise_offset_weight: float = 0,
tomesd_cfg: Optional[dict] = None,
data_preprocessor=dict(type='DataPreprocessor'),
init_cfg: Optional[dict] = None):
super().__init__(vae, text_encoder, tokenizer, unet, scheduler,
test_scheduler, dtype, enable_xformers, tomesd_cfg,
data_preprocessor, init_cfg)
test_scheduler, dtype, enable_xformers,
noise_offset_weight, tomesd_cfg, data_preprocessor,
init_cfg)

default_args = dict()
if dtype is not None:
Expand Down

0 comments on commit bd370ca

Please sign in to comment.