bubbliiiing commited on
Commit
b0f1243
1 Parent(s): 4bde97a

Update prompt

Browse files
easyanimate/api/api.py CHANGED
@@ -93,7 +93,7 @@ def infer_forward_api(_: gr.Blocks, app: FastAPI, controller):
93
  lora_model_path = datas.get('lora_model_path', 'none')
94
  lora_alpha_slider = datas.get('lora_alpha_slider', 0.55)
95
  prompt_textbox = datas.get('prompt_textbox', None)
96
- negative_prompt_textbox = datas.get('negative_prompt_textbox', 'Unclear, mutated, deformed, distorted, dark frames, fixed frames, comic book, comic book, small and indistinguishable subject.')
97
  sampler_dropdown = datas.get('sampler_dropdown', 'Euler')
98
  sample_step_slider = datas.get('sample_step_slider', 30)
99
  resize_method = datas.get('resize_method', "Generate by")
 
93
  lora_model_path = datas.get('lora_model_path', 'none')
94
  lora_alpha_slider = datas.get('lora_alpha_slider', 0.55)
95
  prompt_textbox = datas.get('prompt_textbox', None)
96
+ negative_prompt_textbox = datas.get('negative_prompt_textbox', 'Blurring, mutation, deformation, distortion, dark and solid, comics.')
97
  sampler_dropdown = datas.get('sampler_dropdown', 'Euler')
98
  sample_step_slider = datas.get('sample_step_slider', 30)
99
  resize_method = datas.get('resize_method', "Generate by")
easyanimate/api/post_infer.py CHANGED
@@ -54,14 +54,14 @@ if __name__ == '__main__':
54
  # -------------------------- #
55
  # Step 1: update edition
56
  # -------------------------- #
57
- edition = "v3"
58
  outputs = post_update_edition(edition)
59
  print('Output update edition: ', outputs)
60
 
61
  # -------------------------- #
62
  # Step 2: update edition
63
  # -------------------------- #
64
- diffusion_transformer_path = "models/Diffusion_Transformer/EasyAnimateV3-XL-2-512x512"
65
  outputs = post_diffusion_transformer(diffusion_transformer_path)
66
  print('Output update edition: ', outputs)
67
 
@@ -70,7 +70,7 @@ if __name__ == '__main__':
70
  # -------------------------- #
71
  # "Video Generation" and "Image Generation"
72
  generation_method = "Video Generation"
73
- length_slider = 72
74
  outputs = post_infer(generation_method, length_slider)
75
 
76
  # Get decoded data
 
54
  # -------------------------- #
55
  # Step 1: update edition
56
  # -------------------------- #
57
+ edition = "v5"
58
  outputs = post_update_edition(edition)
59
  print('Output update edition: ', outputs)
60
 
61
  # -------------------------- #
62
  # Step 2: update edition
63
  # -------------------------- #
64
+ diffusion_transformer_path = "models/Diffusion_Transformer/EasyAnimateV5-12b-zh-InP"
65
  outputs = post_diffusion_transformer(diffusion_transformer_path)
66
  print('Output update edition: ', outputs)
67
 
 
70
  # -------------------------- #
71
  # "Video Generation" and "Image Generation"
72
  generation_method = "Video Generation"
73
+ length_slider = 21
74
  outputs = post_infer(generation_method, length_slider)
75
 
76
  # Get decoded data
easyanimate/ui/ui.py CHANGED
@@ -752,7 +752,7 @@ def ui(GPU_memory_mode, weight_dtype):
752
  )
753
 
754
  prompt_textbox = gr.Textbox(label="Prompt (正向提示词)", lines=2, value="A young woman with beautiful and clear eyes and blonde hair standing and white dress in a forest wearing a crown. She seems to be lost in thought, and the camera focuses on her face. The video is of high quality, and the view is very clear. High quality, masterpiece, best quality, highres, ultra-detailed, fantastic.")
755
- negative_prompt_textbox = gr.Textbox(label="Negative prompt (负向提示词)", lines=2, value="Unclear, mutated, deformed, distorted, dark frames, fixed frames, comic book, comic book, small and indistinguishable subject." )
756
 
757
  with gr.Row():
758
  with gr.Column():
@@ -1407,7 +1407,7 @@ def ui_modelscope(model_type, edition, config_path, model_name, savedir_sample,
1407
  )
1408
 
1409
  prompt_textbox = gr.Textbox(label="Prompt (正向提示词)", lines=2, value="A young woman with beautiful and clear eyes and blonde hair standing and white dress in a forest wearing a crown. She seems to be lost in thought, and the camera focuses on her face. The video is of high quality, and the view is very clear. High quality, masterpiece, best quality, highres, ultra-detailed, fantastic.")
1410
- negative_prompt_textbox = gr.Textbox(label="Negative prompt (负向提示词)", lines=2, value="Unclear, mutated, deformed, distorted, dark frames, fixed frames, comic book, comic book, small and indistinguishable subject." )
1411
 
1412
  with gr.Row():
1413
  with gr.Column():
@@ -1821,7 +1821,7 @@ def ui_eas(edition, config_path, model_name, savedir_sample):
1821
  )
1822
 
1823
  prompt_textbox = gr.Textbox(label="Prompt", lines=2, value="A young woman with beautiful and clear eyes and blonde hair standing and white dress in a forest wearing a crown. She seems to be lost in thought, and the camera focuses on her face. The video is of high quality, and the view is very clear. High quality, masterpiece, best quality, highres, ultra-detailed, fantastic.")
1824
- negative_prompt_textbox = gr.Textbox(label="Negative prompt", lines=2, value="Unclear, mutated, deformed, distorted, dark frames, fixed frames, comic book, comic book, small and indistinguishable subject." )
1825
 
1826
  with gr.Row():
1827
  with gr.Column():
 
752
  )
753
 
754
  prompt_textbox = gr.Textbox(label="Prompt (正向提示词)", lines=2, value="A young woman with beautiful and clear eyes and blonde hair standing and white dress in a forest wearing a crown. She seems to be lost in thought, and the camera focuses on her face. The video is of high quality, and the view is very clear. High quality, masterpiece, best quality, highres, ultra-detailed, fantastic.")
755
+ negative_prompt_textbox = gr.Textbox(label="Negative prompt (负向提示词)", lines=2, value="Blurring, mutation, deformation, distortion, dark and solid, comics." )
756
 
757
  with gr.Row():
758
  with gr.Column():
 
1407
  )
1408
 
1409
  prompt_textbox = gr.Textbox(label="Prompt (正向提示词)", lines=2, value="A young woman with beautiful and clear eyes and blonde hair standing and white dress in a forest wearing a crown. She seems to be lost in thought, and the camera focuses on her face. The video is of high quality, and the view is very clear. High quality, masterpiece, best quality, highres, ultra-detailed, fantastic.")
1410
+ negative_prompt_textbox = gr.Textbox(label="Negative prompt (负向提示词)", lines=2, value="Blurring, mutation, deformation, distortion, dark and solid, comics." )
1411
 
1412
  with gr.Row():
1413
  with gr.Column():
 
1821
  )
1822
 
1823
  prompt_textbox = gr.Textbox(label="Prompt", lines=2, value="A young woman with beautiful and clear eyes and blonde hair standing and white dress in a forest wearing a crown. She seems to be lost in thought, and the camera focuses on her face. The video is of high quality, and the view is very clear. High quality, masterpiece, best quality, highres, ultra-detailed, fantastic.")
1824
+ negative_prompt_textbox = gr.Textbox(label="Negative prompt", lines=2, value="Blurring, mutation, deformation, distortion, dark and solid, comics." )
1825
 
1826
  with gr.Row():
1827
  with gr.Column():