jiayong commited on
Commit
7efa9d6
1 Parent(s): 005028c

Upload myconfigs.py

Browse files
Files changed (1) hide show
  1. myconfigs.py +79 -0
myconfigs.py ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ import os
3
+ import json
4
+
5
+ is_test_gradio = False
6
+ is_wanx_platform = False
7
+ VERSION = "1.1.8"
8
+
9
+ scale_depth = 0.7
10
+ scale_pose = 0.5
11
+
12
+ DASHONE_SERVICE_ID = os.getenv('DASHONE_SERVICE_ID')
13
+ OSSAccessKeyId = os.getenv('OSSAccessKeyId')
14
+ OSSAccessKeySecret = os.getenv('OSSAccessKeySecret')
15
+ EAS_AUTH_CARTOONRECOG = os.getenv('EAS_AUTH_CARTOONRECOG')
16
+ EAS_AUTH_PROMPT = os.getenv('EAS_AUTH_PROMPT')
17
+
18
+ num_instance_dashone = 10
19
+ avg_process_time = 4.3 # 7 # minutes
20
+ ref_video_path = 'data/origin_video/video'
21
+ ref_video_prompt = 'data/origin_video/video_prompts_cn.txt'
22
+
23
+ class RESOURCES:
24
+ logo_img0 = "https://vibktprfx-prod-prod-xstream-cn-shanghai.oss-cn-shanghai.aliyuncs.com/xstream-framework/code/humangen-2023-11-02/logo/title0.jpg?OSSAccessKeyId=LTAI5tQyVREDrxAdmaeuNfcW&Expires=1705605234&Signature=s759XKL4NEBHS8SPMRjIw1U%2FWr4%3D"
25
+ logo_img1 = "https://vibktprfx-prod-prod-xstream-cn-shanghai.oss-cn-shanghai.aliyuncs.com/xstream-framework/code/humangen-2023-11-02/logo/title1.jpg?OSSAccessKeyId=LTAI5tQyVREDrxAdmaeuNfcW&Expires=1705605528&Signature=Nv8MYnkZd%2F45GZA2tCZFtu6cREM%3D"
26
+ logo_img2 = "https://vibktprfx-prod-prod-xstream-cn-shanghai.oss-cn-shanghai.aliyuncs.com/xstream-framework/code/humangen-2023-11-02/logo/title2.png?OSSAccessKeyId=LTAI5tQyVREDrxAdmaeuNfcW&Expires=1705605598&Signature=ac0P4ENqTrlWG73fYhfaYUR551o%3D"
27
+ logo_dingding = "https://vibktprfx-prod-prod-xstream-cn-shanghai.oss-cn-shanghai.aliyuncs.com/xstream-framework/code/humangen-2023-11-02/logo/dingdingqun.jpg?OSSAccessKeyId=LTAI5tQyVREDrxAdmaeuNfcW&Expires=1706503081&Signature=133WdLAWzsBQzqIWvD5yXcsP69I%3D"
28
+ logo_wechat = "https://vibktprfx-prod-prod-xstream-cn-shanghai.oss-cn-shanghai.aliyuncs.com/xstream-framework/code/humangen-2023-11-02/logo/weixinqun.jpg?OSSAccessKeyId=LTAI5tQyVREDrxAdmaeuNfcW&Expires=1703759402&Signature=sBPLGvpWLoilqFswqTlodI6KwdY%3D"
29
+
30
+ examples = {
31
+ 'examples_images': [
32
+ ['./data/img/cfpcgcsg.jpg'],
33
+ ['./data/img/md_0.png'],
34
+ ['./data/img/30.jpg'],
35
+ ['./data/img/mod_2.jpeg'],
36
+ ['./data/img/hailuo_718746736_RF.jpg'],
37
+ ['./data/img/mod_3.png'],
38
+ ['./data/img/mod_13.png'],
39
+ ['./data/img/hailuo_2238672930_RF.jpg'],
40
+ ['./data/img/bmy.png'],
41
+ ],
42
+ 'template_video': [
43
+ 'template_31.mp4',
44
+ 'template_41.mp4',
45
+ 'template_51.mp4',
46
+ 'template_46.mp4',
47
+ 'template_43.mp4',
48
+ 'template_38.mp4',
49
+ 'template_67.mp4',
50
+ 'template_81.mp4',
51
+ 'template_100.mp4',
52
+ ],
53
+ }
54
+ template_orign_videos = {
55
+ 'template_31.mp4':'./data/origin_video/video/31.mp4',
56
+ 'template_38.mp4':'./data/origin_video/video/48.mp4',
57
+ 'template_41.mp4':'./data/origin_video/video/41.mp4',
58
+ 'template_43.mp4':'./data/origin_video/video/43.mp4',
59
+ 'template_46.mp4':'./data/origin_video/video/46.mp4',
60
+ 'template_51.mp4':'./data/origin_video/video/51.mp4',
61
+ 'template_67.mp4':'./data/origin_video/video/67.mp4',
62
+ 'template_81.mp4':'./data/origin_video/video/81.mp4',
63
+ 'template_100.mp4':'./data/origin_video/video/100.mp4',
64
+ }
65
+ template_prompts = {
66
+ "template_31.mp4":'一个女孩,在秋天的公园里跳舞,穿着长款灰色T恤和长袖。',
67
+ "template_38.mp4":'一个男人,在时代广场,穿着衬衫和西装。',
68
+ "template_41.mp4":'一位女孩,身穿圣诞老人装,长袖红裤,置身于童话小镇。',
69
+ "template_43.mp4":'一位男士,身穿圣诞老人装,长袖红裤,置身于童话小镇。',
70
+ "template_46.mp4":'一位女孩,面带微笑,在桌子前跳舞,桌上有绿植,身穿长毛衣和牛仔裤。',
71
+ "template_51.mp4":'一位女孩,站在中央公园,身穿白色毛衣和牛仔裤。',
72
+ "template_67.mp4":'有一个女人穿着裙子在覆盖着雪的童话小镇上跳舞。',
73
+ "template_81.mp4":'一位女孩,穿着白色衬衫和蓝色短裤,在有壁炉的温暖公寓中跳舞。',
74
+ "template_100.mp4":'一位女孩,在海边沙滩上跳舞,穿着长袖白色连衣裙。',
75
+ }
76
+
77
+ # RELEASE_NOTE = '''使用说明(2023/12/18)
78
+ # 1、...
79
+ # '''