zhiweili
commited on
Commit
·
ed341ef
1
Parent(s):
dd72417
remove app makeup
Browse files- app.py +3 -3
- inversion_run_adapter.py +0 -1
- inversion_run_base.py +0 -1
app.py
CHANGED
|
@@ -1,13 +1,13 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
from app_base import create_demo as create_demo_face
|
| 4 |
-
from app_makeup import create_demo as create_demo_makeup
|
| 5 |
|
| 6 |
with gr.Blocks(css="style.css") as demo:
|
| 7 |
with gr.Tabs():
|
| 8 |
with gr.Tab(label="Face"):
|
| 9 |
create_demo_face()
|
| 10 |
-
with gr.Tab(label="Makeup"):
|
| 11 |
-
|
| 12 |
|
| 13 |
demo.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
from app_base import create_demo as create_demo_face
|
| 4 |
+
# from app_makeup import create_demo as create_demo_makeup
|
| 5 |
|
| 6 |
with gr.Blocks(css="style.css") as demo:
|
| 7 |
with gr.Tabs():
|
| 8 |
with gr.Tab(label="Face"):
|
| 9 |
create_demo_face()
|
| 10 |
+
# with gr.Tab(label="Makeup"):
|
| 11 |
+
# create_demo_makeup()
|
| 12 |
|
| 13 |
demo.launch()
|
inversion_run_adapter.py
CHANGED
|
@@ -51,7 +51,6 @@ pipeline = DiffusionPipeline.from_pipe(
|
|
| 51 |
custom_pipeline="./pipelines/pipeline_sdxl_adapter_img2img.py",
|
| 52 |
)
|
| 53 |
pipeline = pipeline.to(device)
|
| 54 |
-
pipeline.enable_xformers_memory_efficient_attention()
|
| 55 |
|
| 56 |
pipeline.scheduler = DDPMScheduler.from_config(
|
| 57 |
inversion_run_base.pipeline.scheduler.config,
|
|
|
|
| 51 |
custom_pipeline="./pipelines/pipeline_sdxl_adapter_img2img.py",
|
| 52 |
)
|
| 53 |
pipeline = pipeline.to(device)
|
|
|
|
| 54 |
|
| 55 |
pipeline.scheduler = DDPMScheduler.from_config(
|
| 56 |
inversion_run_base.pipeline.scheduler.config,
|
inversion_run_base.py
CHANGED
|
@@ -49,7 +49,6 @@ pipeline = StableDiffusionXLImg2ImgPipeline.from_pretrained(
|
|
| 49 |
use_safetensors=True,
|
| 50 |
)
|
| 51 |
pipeline = pipeline.to(device)
|
| 52 |
-
pipeline.enable_xformers_memory_efficient_attention()
|
| 53 |
|
| 54 |
pipeline.scheduler = DDPMScheduler.from_pretrained(
|
| 55 |
BASE_MODEL,
|
|
|
|
| 49 |
use_safetensors=True,
|
| 50 |
)
|
| 51 |
pipeline = pipeline.to(device)
|
|
|
|
| 52 |
|
| 53 |
pipeline.scheduler = DDPMScheduler.from_pretrained(
|
| 54 |
BASE_MODEL,
|