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

Implemented Specific Try-On Application using Defooocus #18

Open
wants to merge 32 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
26a7790
First try UI
Cardano-max Jun 16, 2024
78b648c
second shit
Cardano-max Jun 16, 2024
8b74687
third shit
Cardano-max Jun 16, 2024
3b731a0
Failure
Cardano-max Jun 16, 2024
d11c66c
First Try to make it work
Cardano-max Jun 16, 2024
45307e1
Final 1
Cardano-max Jun 16, 2024
f3cdb15
yar second final
Cardano-max Jun 16, 2024
ccaa8e6
yar bss
Cardano-max Jun 16, 2024
7338a33
yar bss last
Cardano-max Jun 16, 2024
6da5dc2
yar bss last 2
Cardano-max Jun 16, 2024
4a8e8bf
yar bss last 3
Cardano-max Jun 16, 2024
dd60d0a
yar bss last 4
Cardano-max Jun 16, 2024
980301a
yar bss last 5
Cardano-max Jun 16, 2024
c5949ae
khudi
Cardano-max Jun 17, 2024
8860e41
khudi yar
Cardano-max Jun 17, 2024
159b644
khudi yar 2
Cardano-max Jun 17, 2024
6282354
Yar lets ttry again
Cardano-max Jun 18, 2024
a12e8a1
Yar lets ttry again 2
Cardano-max Jun 18, 2024
050bcb7
Yar lets ttry again 3
Cardano-max Jun 18, 2024
a11fcb9
Yar lets ttry again 4
Cardano-max Jun 18, 2024
1fe0bd9
Yar lets ttry again 5
Cardano-max Jun 18, 2024
11265e7
Yar lets ttry again 6
Cardano-max Jun 18, 2024
d3cb26f
Yar lets ttry again 7
Cardano-max Jun 18, 2024
e713992
Yar lets ttry again 8
Cardano-max Jun 18, 2024
a789761
Yar lets ttry again 9
Cardano-max Jun 18, 2024
86038dc
Yar lets ttry again 0
Cardano-max Jun 18, 2024
be95870
Yar lets ttry again 11
Cardano-max Jun 18, 2024
c0af76c
Yar lets ttry again 12
Cardano-max Jun 18, 2024
185862b
Yar lets ttry again 13
Cardano-max Jun 18, 2024
c280cfb
Yar lets ttry again 14
Cardano-max Jun 18, 2024
c088cba
Yar lets ttry again 14
Cardano-max Jun 18, 2024
3474128
Yar lets ttry again 17
Cardano-max Jun 19, 2024
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
2 changes: 1 addition & 1 deletion entry_with_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@
print(str(e))

print('Update succeeded.')
from launch import *
from launch import *
2 changes: 1 addition & 1 deletion launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,4 @@ def download_models(default_model, previous_default_models, checkpoint_downloads
config.default_base_model_name, config.previous_default_models, config.checkpoint_downloads,
config.embeddings_downloads, config.lora_downloads)

from webui import *
from webui import *
8 changes: 4 additions & 4 deletions modules/async_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ def handler(async_task):
loras = [[str(args.pop()), float(args.pop())] for _ in range(lora_count)]
input_image_checkbox = args.pop()
current_tab = args.pop()
uov_method = args.pop()
uov_input_image = args.pop()
# uov_method = args.pop()
# uov_input_image = args.pop()
outpaint_selections = args.pop()
inpaint_input_image = args.pop()
inpaint_additional_prompt = args.pop()
Expand Down Expand Up @@ -215,7 +215,7 @@ def handler(async_task):
outpaint_selections = [o.lower() for o in outpaint_selections]
base_model_additional_loras = []
raw_style_selections = copy.deepcopy(style_selections)
uov_method = uov_method.lower()
# uov_method = uov_method.lower()

if fooocus_expansion in style_selections:
use_expansion = True
Expand Down Expand Up @@ -470,7 +470,7 @@ def handler(async_task):

if use_expansion:
for i, t in enumerate(tasks):
progressbar(async_task, 5, f'Preparing Fooocus text #{i + 1} ...')
progressbar(async_task, 5, f'Preparing fashionCORE text #{i + 1} ...')
expansion = pipeline.final_expansion(t['task_prompt'], t['task_seed'])
print(f'[Prompt Expansion] {expansion}')
t['expansion'] = expansion
Expand Down
4 changes: 2 additions & 2 deletions modules/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def replace_config(old_key, new_key):

def list_presets():
preset_folder = 'presets'
presets = ['initial']
presets = ['realistic']
if not os.path.exists(preset_folder):
print('No presets found.')
return presets
Expand Down Expand Up @@ -326,7 +326,7 @@ def get_config_item_or_set_default(key, default_value, validator, disable_empty_
)
default_advanced_checkbox = get_config_item_or_set_default(
key='default_advanced_checkbox',
default_value=False,
default_value=True,
validator=lambda x: isinstance(x, bool)
)
default_max_image_number = get_config_item_or_set_default(
Expand Down
Loading