Spaces:
Running
Running
Ming Li
commited on
Commit
•
554ac76
1
Parent(s):
e557299
turn off xformers
Browse files- app.py +25 -0
- requirements.txt +3 -1
app.py
CHANGED
@@ -22,6 +22,31 @@ if not torch.cuda.is_available():
|
|
22 |
|
23 |
model = Model(base_model_id=DEFAULT_MODEL_ID, task_name="Canny")
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
with gr.Blocks(css="style.css") as demo:
|
26 |
gr.Markdown(DESCRIPTION)
|
27 |
gr.DuplicateButton(
|
|
|
22 |
|
23 |
model = Model(base_model_id=DEFAULT_MODEL_ID, task_name="Canny")
|
24 |
|
25 |
+
|
26 |
+
# examples = [
|
27 |
+
# [
|
28 |
+
# "images/canny_demo.jpg",
|
29 |
+
# "BEAUTIFUL PORTRAIT PAINTINGS BY EMMA UBER",
|
30 |
+
# ],
|
31 |
+
# [
|
32 |
+
# "images/depth_demo.jpg",
|
33 |
+
# "BEAUTIFUL PORTRAIT PAINTINGS BY EMMA UBER",
|
34 |
+
# ],
|
35 |
+
# [
|
36 |
+
# "images/hed_demo.jpg",
|
37 |
+
# "BEAUTIFUL PORTRAIT PAINTINGS BY EMMA UBER",
|
38 |
+
# ],
|
39 |
+
# [
|
40 |
+
# "images/lineart_demo.jpg",
|
41 |
+
# "BEAUTIFUL PORTRAIT PAINTINGS BY EMMA UBER",
|
42 |
+
# ],
|
43 |
+
# [
|
44 |
+
# "images/seg_demo.jpg",
|
45 |
+
# "BEAUTIFUL PORTRAIT PAINTINGS BY EMMA UBER",
|
46 |
+
# ],
|
47 |
+
# ]
|
48 |
+
|
49 |
+
|
50 |
with gr.Blocks(css="style.css") as demo:
|
51 |
gr.Markdown(DESCRIPTION)
|
52 |
gr.DuplicateButton(
|
requirements.txt
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
accelerate
|
2 |
-
controlnet_aux
|
3 |
diffusers
|
4 |
einops
|
5 |
gradio
|
@@ -13,3 +13,5 @@ torchvision
|
|
13 |
transformers
|
14 |
kornia
|
15 |
timm
|
|
|
|
|
|
1 |
accelerate
|
2 |
+
controlnet_aux==0.0.7
|
3 |
diffusers
|
4 |
einops
|
5 |
gradio
|
|
|
13 |
transformers
|
14 |
kornia
|
15 |
timm
|
16 |
+
spaces
|
17 |
+
git+https://github.com/facebookresearch/xformers.git@main#egg=xformers
|