Spaces:
Runtime error
Runtime error
chenyangqi
commited on
Commit
·
7e0c74d
1
Parent(s):
acac4ca
add information for UI
Browse files- app_fatezero.py +7 -0
app_fatezero.py
CHANGED
@@ -67,32 +67,38 @@ with gr.Blocks(css='style.css') as demo:
|
|
67 |
|
68 |
|
69 |
source_prompt = gr.Textbox(label='Source Prompt',
|
|
|
70 |
max_lines=1,
|
71 |
placeholder='Example: "a silver jeep driving down a curvy road in the countryside"',
|
72 |
value='a silver jeep driving down a curvy road in the countryside')
|
73 |
target_prompt = gr.Textbox(label='Target Prompt',
|
|
|
74 |
max_lines=1,
|
75 |
placeholder='Example: "watercolor painting of a silver jeep driving down a curvy road in the countryside"',
|
76 |
value='watercolor painting of a silver jeep driving down a curvy road in the countryside')
|
77 |
|
78 |
cross_replace_steps = gr.Slider(label='cross-attention replace steps',
|
|
|
79 |
minimum=0.0,
|
80 |
maximum=1.0,
|
81 |
step=0.1,
|
82 |
value=0.7)
|
83 |
|
84 |
self_replace_steps = gr.Slider(label='self-attention replace steps',
|
|
|
85 |
minimum=0.0,
|
86 |
maximum=1.0,
|
87 |
step=0.1,
|
88 |
value=0.7)
|
89 |
|
90 |
enhance_words = gr.Textbox(label='words to be enhanced',
|
|
|
91 |
max_lines=1,
|
92 |
placeholder='Example: "watercolor "',
|
93 |
value='watercolor')
|
94 |
|
95 |
enhance_words_value = gr.Slider(label='Amplify the target cross-attention',
|
|
|
96 |
minimum=0.0,
|
97 |
maximum=20.0,
|
98 |
step=1,
|
@@ -101,6 +107,7 @@ with gr.Blocks(css='style.css') as demo:
|
|
101 |
|
102 |
with gr.Accordion('DDIM Parameters', open=True):
|
103 |
num_steps = gr.Slider(label='Number of Steps',
|
|
|
104 |
minimum=0,
|
105 |
maximum=50,
|
106 |
step=1,
|
|
|
67 |
|
68 |
|
69 |
source_prompt = gr.Textbox(label='Source Prompt',
|
70 |
+
info='A good prompt describes each frame and most objects in video. Especially, it has the object or attribute that we want to edit or preserve.',
|
71 |
max_lines=1,
|
72 |
placeholder='Example: "a silver jeep driving down a curvy road in the countryside"',
|
73 |
value='a silver jeep driving down a curvy road in the countryside')
|
74 |
target_prompt = gr.Textbox(label='Target Prompt',
|
75 |
+
info='A reasonable composition of video may achieve better results(e.g., "sunflower" video with "Van Gogh" prompt is better than "sunflower" with "Monet")',
|
76 |
max_lines=1,
|
77 |
placeholder='Example: "watercolor painting of a silver jeep driving down a curvy road in the countryside"',
|
78 |
value='watercolor painting of a silver jeep driving down a curvy road in the countryside')
|
79 |
|
80 |
cross_replace_steps = gr.Slider(label='cross-attention replace steps',
|
81 |
+
info='More steps, replace more cross attention to preserve semantic layout.',
|
82 |
minimum=0.0,
|
83 |
maximum=1.0,
|
84 |
step=0.1,
|
85 |
value=0.7)
|
86 |
|
87 |
self_replace_steps = gr.Slider(label='self-attention replace steps',
|
88 |
+
info='More steps, replace more spatial-temporal self-attention to preserve geometry and motion.',
|
89 |
minimum=0.0,
|
90 |
maximum=1.0,
|
91 |
step=0.1,
|
92 |
value=0.7)
|
93 |
|
94 |
enhance_words = gr.Textbox(label='words to be enhanced',
|
95 |
+
info='Amplify the target-words cross attention',
|
96 |
max_lines=1,
|
97 |
placeholder='Example: "watercolor "',
|
98 |
value='watercolor')
|
99 |
|
100 |
enhance_words_value = gr.Slider(label='Amplify the target cross-attention',
|
101 |
+
info='larger value, more elements of target words',
|
102 |
minimum=0.0,
|
103 |
maximum=20.0,
|
104 |
step=1,
|
|
|
107 |
|
108 |
with gr.Accordion('DDIM Parameters', open=True):
|
109 |
num_steps = gr.Slider(label='Number of Steps',
|
110 |
+
info='larger value has better editing capacity, but takes more time and memory',
|
111 |
minimum=0,
|
112 |
maximum=50,
|
113 |
step=1,
|