Spaces:
Paused
Paused
alex
commited on
Commit
Β·
c4fbcec
1
Parent(s):
1adb8b2
bish bash bosh
Browse files- app.py +7 -4
- requirements.txt +2 -1
app.py
CHANGED
|
@@ -344,7 +344,7 @@ def ctrl_generate(
|
|
| 344 |
css = """
|
| 345 |
#col-container {
|
| 346 |
margin: 0 auto;
|
| 347 |
-
max-width:
|
| 348 |
}
|
| 349 |
/* editable vs locked, reusing theme variables that adapt to dark/light */
|
| 350 |
.stateful textarea:not(:disabled):not([readonly]) {
|
|
@@ -364,6 +364,9 @@ with gr.Blocks(title="Ctrl-Crash Demo") as demo:
|
|
| 364 |
<p style="font-size:16px; display: inline; margin: 0;">
|
| 365 |
<strong>Ctrl-Crash</strong> β Controllable Diffusion for Realistic Car Crashes
|
| 366 |
</p>
|
|
|
|
|
|
|
|
|
|
| 367 |
<a href="https://github.com/AnthonyGosselin/Ctrl-Crash" style="display: inline-block; vertical-align: middle; margin-left: 0.5em;">
|
| 368 |
[Github]
|
| 369 |
</a>
|
|
@@ -381,12 +384,12 @@ with gr.Blocks(title="Ctrl-Crash Demo") as demo:
|
|
| 381 |
video_in = gr.Video(label="Dashcam Footage")
|
| 382 |
|
| 383 |
action_dropdown = gr.Dropdown(
|
| 384 |
-
label="
|
| 385 |
choices=list(ACTION_TYPES.keys()),
|
| 386 |
value="Vehicle-and-Vehicle crash", # sensible default matching your prior checkbox default
|
| 387 |
)
|
| 388 |
-
bbx_frames = gr.Slider(1, 25, value=3, step=1, label="Mask Frames")
|
| 389 |
-
run_btn = gr.Button("
|
| 390 |
with gr.Column(scale=1):
|
| 391 |
video_out = gr.Video(label="Output video")
|
| 392 |
|
|
|
|
| 344 |
css = """
|
| 345 |
#col-container {
|
| 346 |
margin: 0 auto;
|
| 347 |
+
max-width: 1024px;
|
| 348 |
}
|
| 349 |
/* editable vs locked, reusing theme variables that adapt to dark/light */
|
| 350 |
.stateful textarea:not(:disabled):not([readonly]) {
|
|
|
|
| 364 |
<p style="font-size:16px; display: inline; margin: 0;">
|
| 365 |
<strong>Ctrl-Crash</strong> β Controllable Diffusion for Realistic Car Crashes
|
| 366 |
</p>
|
| 367 |
+
<p display: inline; margin: 0;">
|
| 368 |
+
Improving traffic safety requires realistic and controllable accident simulations. To tackle the problem, Ctrl-Crash, a controllable car crash video generation model that conditions on signals such as bounding boxes, crash types, and an initial image frame
|
| 369 |
+
</p>
|
| 370 |
<a href="https://github.com/AnthonyGosselin/Ctrl-Crash" style="display: inline-block; vertical-align: middle; margin-left: 0.5em;">
|
| 371 |
[Github]
|
| 372 |
</a>
|
|
|
|
| 384 |
video_in = gr.Video(label="Dashcam Footage")
|
| 385 |
|
| 386 |
action_dropdown = gr.Dropdown(
|
| 387 |
+
label="Crash Type",
|
| 388 |
choices=list(ACTION_TYPES.keys()),
|
| 389 |
value="Vehicle-and-Vehicle crash", # sensible default matching your prior checkbox default
|
| 390 |
)
|
| 391 |
+
bbx_frames = gr.Slider(1, 25, value=3, step=1, label="Bounding Boxes Mask Frames")
|
| 392 |
+
run_btn = gr.Button("π₯ Bish Bash Bosh", variant="primary")
|
| 393 |
with gr.Column(scale=1):
|
| 394 |
video_out = gr.Video(label="Output video")
|
| 395 |
|
requirements.txt
CHANGED
|
@@ -14,4 +14,5 @@ scenedetect==0.6.6
|
|
| 14 |
sentencepiece
|
| 15 |
shapely==1.8.2
|
| 16 |
tokenizers==0.21.0
|
| 17 |
-
transformers
|
|
|
|
|
|
| 14 |
sentencepiece
|
| 15 |
shapely==1.8.2
|
| 16 |
tokenizers==0.21.0
|
| 17 |
+
transformers
|
| 18 |
+
lap==0.5.12
|