Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 2, 2024
1 parent bcf545a commit a058e75
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aaaaaa/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
from typing import Any

import gradio as gr
from lib_controlnet.external_code import ControlMode

from aaaaaa.conditional import InputAccordion
from adetailer import ADETAILER, __version__
from adetailer.args import ALL_ARGS, MASK_MERGE_INVERT
from controlnet_ext import controlnet_exists, controlnet_type, get_cn_models
from lib_controlnet.external_code import ControlMode

if controlnet_type == "forge":
from lib_controlnet import global_state
Expand Down
1 change: 1 addition & 0 deletions adetailer/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from enum import Enum
from functools import cached_property, partial
from typing import Any, Literal, NamedTuple, Optional, Union

from lib_controlnet.external_code import ControlMode

try:
Expand Down
2 changes: 1 addition & 1 deletion controlnet_ext/controlnet_ext_forge.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import numpy as np
from lib_controlnet import external_code, global_state
from lib_controlnet.external_code import ControlNetUnit, ControlMode
from lib_controlnet.external_code import ControlMode, ControlNetUnit

from modules import scripts
from modules.processing import StableDiffusionProcessing
Expand Down
2 changes: 1 addition & 1 deletion scripts/!adetailer.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def update_controlnet_args(self, p, args: ADetailerArgs) -> None:
weight=args.ad_controlnet_weight,
guidance_start=args.ad_controlnet_guidance_start,
guidance_end=args.ad_controlnet_guidance_end,
control_mode=args.ad_controlnet_control_mode
control_mode=args.ad_controlnet_control_mode,
)

def is_ad_enabled(self, *args) -> bool:
Expand Down

0 comments on commit a058e75

Please sign in to comment.