Fabrice-TIERCELIN
commited on
Upload 5 files
Browse files- hyvideo/constants.py +3 -3
- hyvideo/prompt_rewrite.py +2 -2
hyvideo/constants.py
CHANGED
@@ -17,9 +17,9 @@ __all__ = [
|
|
17 |
]
|
18 |
|
19 |
PRECISION_TO_TYPE = {
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
}
|
24 |
|
25 |
# =================== Constant Values =====================
|
|
|
17 |
]
|
18 |
|
19 |
PRECISION_TO_TYPE = {
|
20 |
+
'fp32': torch.float32,
|
21 |
+
'fp16': torch.float16,
|
22 |
+
'bf16': torch.bfloat16,
|
23 |
}
|
24 |
|
25 |
# =================== Constant Values =====================
|
hyvideo/prompt_rewrite.py
CHANGED
@@ -25,7 +25,7 @@ You are a large language model specialized in rewriting video descriptions. Your
|
|
25 |
|
26 |
1. If the input is in Chinese, translate the entire description to English.
|
27 |
|
28 |
-
2.
|
29 |
|
30 |
3. If the input does not include style, lighting, atmosphere, you can make reasonable associations.
|
31 |
|
@@ -48,4 +48,4 @@ ori_prompt = "一只小狗在草地上奔跑。"
|
|
48 |
normal_prompt = get_rewrite_prompt(ori_prompt, mode="Normal")
|
49 |
master_prompt = get_rewrite_prompt(ori_prompt, mode="Master")
|
50 |
|
51 |
-
# Then you can use the normal_prompt or master_prompt to access the hunyuan-large rewrite model to get the final prompt.
|
|
|
25 |
|
26 |
1. If the input is in Chinese, translate the entire description to English.
|
27 |
|
28 |
+
2. To generate high-quality visual scenes with aesthetic appeal, it is necessary to carefully depict each visual element to create a unique aesthetic.
|
29 |
|
30 |
3. If the input does not include style, lighting, atmosphere, you can make reasonable associations.
|
31 |
|
|
|
48 |
normal_prompt = get_rewrite_prompt(ori_prompt, mode="Normal")
|
49 |
master_prompt = get_rewrite_prompt(ori_prompt, mode="Master")
|
50 |
|
51 |
+
# Then you can use the normal_prompt or master_prompt to access the hunyuan-large rewrite model to get the final prompt.
|