Skip to content

Commit

Permalink
Daily pydantic hate
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe56f committed Dec 31, 2023
1 parent 35ecc60 commit e42b247
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions core/flags.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dataclasses import dataclass, field
from typing import Dict, Literal, Union
from typing import Dict, Literal, List, Union

from dataclasses_json.api import DataClassJsonMixin

Expand Down Expand Up @@ -166,6 +166,10 @@ class UpscaleFlag(Flag, DataClassJsonMixin):
class ADetailerFlag(Flag, DataClassJsonMixin):
"Flag for ADetailer settings"

# I hate pydantic
sampler_settings: Dict = field(default_factory=dict)
prompt_to_prompt_settings: Dict = field(default_factory=dict)

enabled: bool = field(default=False) # For storing in json

# Inpainting
Expand All @@ -178,8 +182,6 @@ class ADetailerFlag(Flag, DataClassJsonMixin):
sigmas: SigmaScheduler = field(default="exponential")
seed: int = field(default=0)
strength: float = field(default=0.45)
sampler_settings: Dict = field(default_factory=dict)
prompt_to_prompt_settings: Dict = field(default_factory=dict)

# ADetailer specific
mask_dilation: int = field(default=4)
Expand Down

0 comments on commit e42b247

Please sign in to comment.