Spaces:
Runtime error
Runtime error
mayuema
commited on
Commit
•
65516a6
1
Parent(s):
b1a7c15
first release
Browse files- app.py +3 -3
- inference_followyourpose.py +2 -2
app.py
CHANGED
@@ -130,10 +130,10 @@ with gr.Blocks(css='style.css') as demo:
|
|
130 |
with gr.Accordion('Text Prompt', open=True):
|
131 |
|
132 |
target_prompt = gr.Textbox(label='Target Prompt',
|
133 |
-
info='
|
134 |
max_lines=1,
|
135 |
-
placeholder='Example: "
|
136 |
-
value='
|
137 |
|
138 |
|
139 |
|
|
|
130 |
with gr.Accordion('Text Prompt', open=True):
|
131 |
|
132 |
target_prompt = gr.Textbox(label='Target Prompt',
|
133 |
+
info='The simple background may achieve better results(e.g., "beach", "moon" prompt is better than "street" and "market")',
|
134 |
max_lines=1,
|
135 |
+
placeholder='Example: "Iron man on the beach"',
|
136 |
+
value='Iron man on the beach')
|
137 |
|
138 |
|
139 |
|
inference_followyourpose.py
CHANGED
@@ -4,7 +4,7 @@ from FollowYourPose.test_followyourpose import *
|
|
4 |
import copy
|
5 |
import gradio as gr
|
6 |
from transformers import AutoTokenizer, CLIPTextModel
|
7 |
-
from huggingface_hub import
|
8 |
|
9 |
def get_time_string() -> str:
|
10 |
x = datetime.datetime.now()
|
@@ -21,7 +21,7 @@ class merge_config_then_run():
|
|
21 |
|
22 |
def download_model(self):
|
23 |
REPO_ID = 'YueMafighting/FollowYourPose_v1'
|
24 |
-
|
25 |
|
26 |
|
27 |
def run(
|
|
|
4 |
import copy
|
5 |
import gradio as gr
|
6 |
from transformers import AutoTokenizer, CLIPTextModel
|
7 |
+
from huggingface_hub import snapshot_download
|
8 |
|
9 |
def get_time_string() -> str:
|
10 |
x = datetime.datetime.now()
|
|
|
21 |
|
22 |
def download_model(self):
|
23 |
REPO_ID = 'YueMafighting/FollowYourPose_v1'
|
24 |
+
snapshot_download(repo_id=REPO_ID, local_dir='./FollowYourPose/checkpoints', local_dir_use_symlinks=False)
|
25 |
|
26 |
|
27 |
def run(
|