Update app.py
Browse files
app.py
CHANGED
|
@@ -107,87 +107,6 @@ custom_css = """
|
|
| 107 |
"""
|
| 108 |
|
| 109 |
with gr.Blocks(css=custom_css) as demo:
|
| 110 |
-
with gr.Row():
|
| 111 |
-
with gr.Column():
|
| 112 |
-
gr.HTML(
|
| 113 |
-
"""
|
| 114 |
-
<h1 style='text-align: center; font-size: 3.2em; margin-bottom: 0.5em; font-family: Arial, sans-serif; margin: 20px;'>
|
| 115 |
-
Video Diffusion Alignment via Reward Gradient
|
| 116 |
-
</h1>
|
| 117 |
-
"""
|
| 118 |
-
)
|
| 119 |
-
gr.HTML(
|
| 120 |
-
"""
|
| 121 |
-
<style>
|
| 122 |
-
body {
|
| 123 |
-
font-family: Arial, sans-serif;
|
| 124 |
-
text-align: center;
|
| 125 |
-
margin: 50px;
|
| 126 |
-
}
|
| 127 |
-
a {
|
| 128 |
-
text-decoration: none !important;
|
| 129 |
-
color: black !important;
|
| 130 |
-
}
|
| 131 |
-
</style>
|
| 132 |
-
<body>
|
| 133 |
-
<div style="font-size: 1.4em; margin-bottom: 0.5em; ">
|
| 134 |
-
<a href="https://mihirp1998.github.io">Mihir Prabhudesai</a><sup>*</sup>
|
| 135 |
-
<a href="https://russellmendonca.github.io/">Russell Mendonca</a><sup>*</sup>
|
| 136 |
-
<a href="mailto: zheyangqin.qzy@gmail.com">Zheyang Qin</a><sup>*</sup>
|
| 137 |
-
<a href="https://www.cs.cmu.edu/~katef/">Katerina Fragkiadaki</a><sup></sup>
|
| 138 |
-
<a href="https://www.cs.cmu.edu/~dpathak/">Deepak Pathak</a><sup></sup>
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
</div>
|
| 142 |
-
<div style="font-size: 1.3em; font-style: italic;">
|
| 143 |
-
Carnegie Mellon University
|
| 144 |
-
</div>
|
| 145 |
-
</body>
|
| 146 |
-
"""
|
| 147 |
-
)
|
| 148 |
-
gr.HTML(
|
| 149 |
-
"""
|
| 150 |
-
<head>
|
| 151 |
-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
|
| 152 |
-
|
| 153 |
-
<style>
|
| 154 |
-
.button-container {
|
| 155 |
-
display: flex;
|
| 156 |
-
justify-content: center;
|
| 157 |
-
gap: 10px;
|
| 158 |
-
margin-top: 10px;
|
| 159 |
-
}
|
| 160 |
-
|
| 161 |
-
.button-container a {
|
| 162 |
-
display: inline-flex;
|
| 163 |
-
align-items: center;
|
| 164 |
-
padding: 10px 20px;
|
| 165 |
-
border-radius: 30px;
|
| 166 |
-
border: 1px solid #ccc;
|
| 167 |
-
text-decoration: none;
|
| 168 |
-
color: #333 !important;
|
| 169 |
-
font-size: 16px;
|
| 170 |
-
text-decoration: none !important;
|
| 171 |
-
}
|
| 172 |
-
|
| 173 |
-
.button-container a i {
|
| 174 |
-
margin-right: 8px;
|
| 175 |
-
}
|
| 176 |
-
</style>
|
| 177 |
-
</head>
|
| 178 |
-
|
| 179 |
-
<div class="button-container">
|
| 180 |
-
<a href="https://arxiv.org/abs/2407.08737" class="btn btn-outline-primary">
|
| 181 |
-
<i class="fa-solid fa-file-pdf"></i> Paper
|
| 182 |
-
</a>
|
| 183 |
-
<a href="https://vader-vid.github.io/" class="btn btn-outline-danger">
|
| 184 |
-
<i class="fa-solid fa-video"></i> Website
|
| 185 |
-
<a href="https://github.com/mihirp1998/VADER" class="btn btn-outline-secondary">
|
| 186 |
-
<i class="fa-brands fa-github"></i> Code
|
| 187 |
-
</a>
|
| 188 |
-
</div>
|
| 189 |
-
"""
|
| 190 |
-
)
|
| 191 |
|
| 192 |
with gr.Row(elem_id="centered"):
|
| 193 |
with gr.Column(elem_id="params"):
|
|
@@ -220,7 +139,7 @@ with gr.Blocks(css=custom_css) as demo:
|
|
| 220 |
|
| 221 |
|
| 222 |
with gr.Row():
|
| 223 |
-
DDIM_Steps = gr.Slider(minimum=0, maximum=50, label="DDIM Steps", step = 1, value=
|
| 224 |
unconditional_guidance_scale = gr.Slider(minimum=0, maximum=50, label="Guidance Scale", step = 0.1, value=12.0)
|
| 225 |
DDIM_Eta = gr.Slider(minimum=0, maximum=1, label="DDIM Eta", step = 0.01, value=1.0)
|
| 226 |
|
|
|
|
| 107 |
"""
|
| 108 |
|
| 109 |
with gr.Blocks(css=custom_css) as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 110 |
|
| 111 |
with gr.Row(elem_id="centered"):
|
| 112 |
with gr.Column(elem_id="params"):
|
|
|
|
| 139 |
|
| 140 |
|
| 141 |
with gr.Row():
|
| 142 |
+
DDIM_Steps = gr.Slider(minimum=0, maximum=50, label="DDIM Steps", step = 1, value=50)
|
| 143 |
unconditional_guidance_scale = gr.Slider(minimum=0, maximum=50, label="Guidance Scale", step = 0.1, value=12.0)
|
| 144 |
DDIM_Eta = gr.Slider(minimum=0, maximum=1, label="DDIM Eta", step = 0.01, value=1.0)
|
| 145 |
|