mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
chore: code cleanup
This commit is contained in:
@@ -10,7 +10,6 @@ from modules.model_loader import load_file_from_url
|
|||||||
from modules.util import get_files_from_folder
|
from modules.util import get_files_from_folder
|
||||||
from modules.flags import Performance, MetadataScheme
|
from modules.flags import Performance, MetadataScheme
|
||||||
|
|
||||||
|
|
||||||
config_path = os.path.abspath("./config.txt")
|
config_path = os.path.abspath("./config.txt")
|
||||||
config_example_path = os.path.abspath("config_modification_tutorial.txt")
|
config_example_path = os.path.abspath("config_modification_tutorial.txt")
|
||||||
config_dict = {}
|
config_dict = {}
|
||||||
|
|||||||
+9
-10
@@ -34,6 +34,15 @@ default_parameters = {
|
|||||||
cn_ip: (0.5, 0.6), cn_ip_face: (0.9, 0.75), cn_canny: (0.5, 1.0), cn_cpds: (0.5, 1.0)
|
cn_ip: (0.5, 0.6), cn_ip_face: (0.9, 0.75), cn_canny: (0.5, 1.0), cn_cpds: (0.5, 1.0)
|
||||||
} # stop, weight
|
} # stop, weight
|
||||||
|
|
||||||
|
inpaint_engine_versions = ['None', 'v1', 'v2.5', 'v2.6']
|
||||||
|
inpaint_option_default = 'Inpaint or Outpaint (default)'
|
||||||
|
inpaint_option_detail = 'Improve Detail (face, hand, eyes, etc.)'
|
||||||
|
inpaint_option_modify = 'Modify Content (add objects, change background, etc.)'
|
||||||
|
inpaint_options = [inpaint_option_default, inpaint_option_detail, inpaint_option_modify]
|
||||||
|
|
||||||
|
desc_type_photo = 'Photograph'
|
||||||
|
desc_type_anime = 'Art/Anime'
|
||||||
|
|
||||||
|
|
||||||
class MetadataScheme(Enum):
|
class MetadataScheme(Enum):
|
||||||
FOOOCUS = 'fooocus'
|
FOOOCUS = 'fooocus'
|
||||||
@@ -46,8 +55,6 @@ metadata_scheme = [
|
|||||||
('A1111 (plain text)', MetadataScheme.A1111.value),
|
('A1111 (plain text)', MetadataScheme.A1111.value),
|
||||||
]
|
]
|
||||||
|
|
||||||
inpaint_engine_versions = ['None', 'v1', 'v2.5', 'v2.6']
|
|
||||||
|
|
||||||
|
|
||||||
class Steps(Enum):
|
class Steps(Enum):
|
||||||
QUALITY = 60
|
QUALITY = 60
|
||||||
@@ -78,11 +85,3 @@ class Performance(Enum):
|
|||||||
|
|
||||||
|
|
||||||
performance_selections = Performance.list()
|
performance_selections = Performance.list()
|
||||||
|
|
||||||
inpaint_option_default = 'Inpaint or Outpaint (default)'
|
|
||||||
inpaint_option_detail = 'Improve Detail (face, hand, eyes, etc.)'
|
|
||||||
inpaint_option_modify = 'Modify Content (add objects, change background, etc.)'
|
|
||||||
inpaint_options = [inpaint_option_default, inpaint_option_detail, inpaint_option_modify]
|
|
||||||
|
|
||||||
desc_type_photo = 'Photograph'
|
|
||||||
desc_type_anime = 'Art/Anime'
|
|
||||||
|
|||||||
Reference in New Issue
Block a user