mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
inpaint 2.5 (#631)
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
|||||||
version = '2.1.39'
|
version = '2.1.40'
|
||||||
|
|||||||
+5
-5
@@ -132,7 +132,7 @@ def update_all_model_names():
|
|||||||
|
|
||||||
|
|
||||||
def downloading_inpaint_models(v):
|
def downloading_inpaint_models(v):
|
||||||
assert v in ['v1', 'v2']
|
assert v in ['v1', 'v2.5']
|
||||||
|
|
||||||
load_file_from_url(
|
load_file_from_url(
|
||||||
url='https://huggingface.co/lllyasviel/fooocus_inpaint/resolve/main/fooocus_inpaint_head.pth',
|
url='https://huggingface.co/lllyasviel/fooocus_inpaint/resolve/main/fooocus_inpaint_head.pth',
|
||||||
@@ -148,13 +148,13 @@ def downloading_inpaint_models(v):
|
|||||||
)
|
)
|
||||||
return os.path.join(inpaint_models_path, 'fooocus_inpaint_head.pth'), os.path.join(inpaint_models_path, 'inpaint.fooocus.patch')
|
return os.path.join(inpaint_models_path, 'fooocus_inpaint_head.pth'), os.path.join(inpaint_models_path, 'inpaint.fooocus.patch')
|
||||||
|
|
||||||
if v == 'v2':
|
if v == 'v2.5':
|
||||||
load_file_from_url(
|
load_file_from_url(
|
||||||
url='https://huggingface.co/lllyasviel/fooocus_inpaint/resolve/main/inpaint_v2.fooocus.patch',
|
url='https://huggingface.co/lllyasviel/fooocus_inpaint/resolve/main/inpaint_v25.fooocus.patch',
|
||||||
model_dir=inpaint_models_path,
|
model_dir=inpaint_models_path,
|
||||||
file_name='inpaint_v2.fooocus.patch'
|
file_name='inpaint_v25.fooocus.patch'
|
||||||
)
|
)
|
||||||
return os.path.join(inpaint_models_path, 'fooocus_inpaint_head.pth'), os.path.join(inpaint_models_path, 'inpaint_v2.fooocus.patch')
|
return os.path.join(inpaint_models_path, 'fooocus_inpaint_head.pth'), os.path.join(inpaint_models_path, 'inpaint_v25.fooocus.patch')
|
||||||
|
|
||||||
|
|
||||||
def downloading_controlnet_canny():
|
def downloading_controlnet_canny():
|
||||||
|
|||||||
@@ -255,7 +255,7 @@ with shared.gradio_root:
|
|||||||
minimum=-1, maximum=1.0, step=0.001, value=-1,
|
minimum=-1, maximum=1.0, step=0.001, value=-1,
|
||||||
info='Set as negative number to disable. For developer debugging.')
|
info='Set as negative number to disable. For developer debugging.')
|
||||||
|
|
||||||
inpaint_engine = gr.Dropdown(label='Inpaint Engine', value='v1', choices=['v1', 'v2'],
|
inpaint_engine = gr.Dropdown(label='Inpaint Engine', value='v1', choices=['v1', 'v2.5'],
|
||||||
info='Version of Fooocus inpaint model')
|
info='Version of Fooocus inpaint model')
|
||||||
|
|
||||||
with gr.Tab(label='Control Debug'):
|
with gr.Tab(label='Control Debug'):
|
||||||
|
|||||||
Reference in New Issue
Block a user