Spaces:
Running on Zero
Running on Zero
Chin-Yun Yu commited on
Commit ·
a089213
1
Parent(s): d78ba89
feat: reorganise layout
Browse files
app.py
CHANGED
|
@@ -580,21 +580,23 @@ with gr.Blocks() as demo:
|
|
| 580 |
with gr.Row():
|
| 581 |
with gr.Column():
|
| 582 |
_ = gr.Markdown("## Control Parameters")
|
| 583 |
-
|
| 584 |
-
|
| 585 |
-
|
| 586 |
-
|
| 587 |
-
|
| 588 |
-
|
| 589 |
-
|
| 590 |
-
|
| 591 |
-
|
| 592 |
-
|
| 593 |
-
|
| 594 |
-
|
| 595 |
-
|
| 596 |
-
|
| 597 |
-
|
|
|
|
|
|
|
| 598 |
remove_approx_checkbox = gr.Checkbox(
|
| 599 |
label="Use Real-time Effects",
|
| 600 |
info="Use real-time delay and reverb effects instead of approximated ones.",
|
|
@@ -610,51 +612,52 @@ with gr.Blocks() as demo:
|
|
| 610 |
|
| 611 |
with gr.Column():
|
| 612 |
_ = gr.Markdown("## Parameters for ST-ITO Method")
|
| 613 |
-
|
| 614 |
-
|
| 615 |
-
|
| 616 |
-
|
| 617 |
-
|
| 618 |
-
|
| 619 |
-
|
| 620 |
-
|
| 621 |
-
|
| 622 |
-
|
| 623 |
-
|
| 624 |
-
|
| 625 |
-
|
| 626 |
-
|
| 627 |
-
|
| 628 |
-
|
| 629 |
-
|
| 630 |
-
|
| 631 |
-
|
| 632 |
-
|
| 633 |
-
|
| 634 |
-
|
| 635 |
-
|
| 636 |
-
|
| 637 |
-
|
| 638 |
-
|
| 639 |
-
|
| 640 |
-
|
| 641 |
-
|
| 642 |
-
|
| 643 |
-
|
| 644 |
-
|
| 645 |
-
|
| 646 |
-
|
| 647 |
-
|
| 648 |
-
|
| 649 |
-
|
| 650 |
-
|
| 651 |
-
|
| 652 |
-
|
| 653 |
-
|
| 654 |
-
|
| 655 |
-
|
| 656 |
-
|
| 657 |
-
|
|
|
|
| 658 |
|
| 659 |
_ = gr.Markdown("## Effect Parameters Visualisation")
|
| 660 |
with gr.Row():
|
|
|
|
| 580 |
with gr.Row():
|
| 581 |
with gr.Column():
|
| 582 |
_ = gr.Markdown("## Control Parameters")
|
| 583 |
+
|
| 584 |
+
with gr.Row():
|
| 585 |
+
dataset_dropdown = gr.Dropdown(
|
| 586 |
+
[("Internal", "internal"), ("MedleyDB", "medleydb")],
|
| 587 |
+
label="Prior Distribution (Dataset)",
|
| 588 |
+
info="This parameter has no effect when using the ST-ITO and Regression methods.",
|
| 589 |
+
value="internal",
|
| 590 |
+
interactive=True,
|
| 591 |
+
)
|
| 592 |
+
embedding_dropdown = gr.Dropdown(
|
| 593 |
+
[("AFx-Rep", "afx-rep"), ("MFCC", "mfcc"), ("MIR Features", "mir")],
|
| 594 |
+
label="Embedding Model",
|
| 595 |
+
info="This parameter has no effect when using the Mean and Regression methods.",
|
| 596 |
+
value="afx-rep",
|
| 597 |
+
interactive=True,
|
| 598 |
+
)
|
| 599 |
+
# with gr.Column():
|
| 600 |
remove_approx_checkbox = gr.Checkbox(
|
| 601 |
label="Use Real-time Effects",
|
| 602 |
info="Use real-time delay and reverb effects instead of approximated ones.",
|
|
|
|
| 612 |
|
| 613 |
with gr.Column():
|
| 614 |
_ = gr.Markdown("## Parameters for ST-ITO Method")
|
| 615 |
+
with gr.Row():
|
| 616 |
+
optimisation_steps = gr.Slider(
|
| 617 |
+
minimum=1,
|
| 618 |
+
maximum=2000,
|
| 619 |
+
value=100,
|
| 620 |
+
step=1,
|
| 621 |
+
label="Number of Optimisation Steps",
|
| 622 |
+
interactive=True,
|
| 623 |
+
)
|
| 624 |
+
prior_weight = gr.Dropdown(
|
| 625 |
+
[
|
| 626 |
+
("0", 0.0),
|
| 627 |
+
("0.001", 0.001),
|
| 628 |
+
("0.01", 0.01),
|
| 629 |
+
("0.1", 0.1),
|
| 630 |
+
("1", 1.0),
|
| 631 |
+
],
|
| 632 |
+
info="Weight of the prior distribution in the loss function. A higher value means the model will try to stay closer to the prior distribution.",
|
| 633 |
+
value=0.01,
|
| 634 |
+
label="Prior Weight",
|
| 635 |
+
interactive=True,
|
| 636 |
+
)
|
| 637 |
+
optimiser_dropdown = gr.Dropdown(
|
| 638 |
+
[
|
| 639 |
+
"Adadelta",
|
| 640 |
+
"Adafactor",
|
| 641 |
+
"Adagrad",
|
| 642 |
+
"Adam",
|
| 643 |
+
"AdamW",
|
| 644 |
+
"Adamax",
|
| 645 |
+
"RMSprop",
|
| 646 |
+
"ASGD",
|
| 647 |
+
"NAdam",
|
| 648 |
+
"RAdam",
|
| 649 |
+
"SGD",
|
| 650 |
+
],
|
| 651 |
+
value="Adam",
|
| 652 |
+
label="Optimiser",
|
| 653 |
+
interactive=True,
|
| 654 |
+
)
|
| 655 |
+
lr_slider = gr.Dropdown(
|
| 656 |
+
[("0.0001", 1e-4), ("0.001", 1e-3), ("0.01", 1e-2), ("0.1", 1e-1)],
|
| 657 |
+
value=1e-2,
|
| 658 |
+
label="Learning Rate",
|
| 659 |
+
interactive=True,
|
| 660 |
+
)
|
| 661 |
|
| 662 |
_ = gr.Markdown("## Effect Parameters Visualisation")
|
| 663 |
with gr.Row():
|