Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(sdk): Add reference_image reference_strength etc. #30

Merged
merged 1 commit into from
Feb 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/novelai_python/sdk/ai/generate_image/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ def build(cls,
mask: Union[str, bytes] = None,
controlnet_model: Union[ControlNetModel, str] = None,
controlnet_condition: str = None,
sm_dyn: bool = False,
**kwargs
):
"""
Expand All @@ -298,6 +299,7 @@ def build(cls,
:param mask: Inpainting mask
:param controlnet_model: 控制网络模型
:param controlnet_condition: 控制网络条件
:param sm_dyn: 是否使用动态sm
:return: self
"""
assert isinstance(prompt, str)
Expand All @@ -316,7 +318,8 @@ def build(cls,
"add_original_image": add_original_image,
"mask": mask,
"controlnet_model": controlnet_model,
"controlnet_condition": controlnet_condition
"controlnet_condition": controlnet_condition,
"sm_dyn": sm_dyn,
})
if reference_mode:
kwargs.update({
Expand Down
Loading