-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
29 lines (24 loc) · 944 Bytes
/
main.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
import argparse
from sdk.demo import DemoTextConv, DemoTextToImg, DemoTextGen, DemoTextToVideo
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Choose a Model type :'
' TextConv, TextToImg, '
'TextToVideo '
'or TextGen')
subparser = parser.add_subparsers(dest='option')
conv = subparser.add_parser('TextConv')
img = subparser.add_parser('TextToImg')
gen = subparser.add_parser('TextGen')
video = subparser.add_parser('TextToVideo')
args = parser.parse_args()
match args.option:
case 'TextConv':
DemoTextConv()
case 'TextToImg':
DemoTextToImg()
case 'TextGen':
DemoTextGen()
case 'TextToVideo':
DemoTextToVideo()
case _:
DemoTextToImg()