mayuema commited on
Commit
65516a6
1 Parent(s): b1a7c15

first release

Browse files
Files changed (2) hide show
  1. app.py +3 -3
  2. 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='A reasonable composition of video may achieve better results(e.g., "sunflower" video with "Van Gogh" prompt is better than "sunflower" with "Monet")',
134
  max_lines=1,
135
- placeholder='Example: "watercolor painting of a silver jeep driving down a curvy road in the countryside"',
136
- value='watercolor painting of a silver jeep driving down a curvy road in the countryside')
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 hf_hub_download
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
- hf_hub_download(repo_id=REPO_ID, local_dir='./FollowYourPose/checkpoints', local_dir_use_symlinks=False)
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(