-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.py
32 lines (30 loc) · 878 Bytes
/
demo.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# -*- coding: utf-8 -*-
# Copyright @ 2023 wdcqc/aieud project.
# Open-source under license obtainable in project root (LICENSE.md).
from wfd.webui import start_demo
import argparse
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="Demo script for WaveFunctionDiffusion.")
parser.add_argument(
"--colab",
action="store_true",
help="Use it in Google Colab.",
)
parser.add_argument(
"--link_to_colab",
action="store_true",
help="Add a link to Google Colab.",
)
parser.add_argument(
"--log_prompts",
action="store_true",
help="Logs prompts in the command line.",
)
parser.add_argument(
"--max_size",
type=int,
default=256,
help="Max size of the input maps.",
)
args = parser.parse_args()
start_demo(args)