Update README.md
Browse files
README.md
CHANGED
|
@@ -58,18 +58,15 @@ huggingface-cli download Tencent-Hunyuan/Distillation-v1.2 ./pytorch_model_disti
|
|
| 58 |
Make sure you have activated the conda environment before running the following command.
|
| 59 |
|
| 60 |
```shell
|
| 61 |
-
# By default, we start a Chinese UI.
|
| 62 |
-
python app/hydit_app.py --load-key distill
|
| 63 |
-
|
| 64 |
-
# Using Flash Attention for acceleration.
|
| 65 |
python app/hydit_app.py --infer-mode fa --load-key distill
|
| 66 |
|
| 67 |
# You can disable the enhancement model if the GPU memory is insufficient.
|
| 68 |
# The enhancement will be unavailable until you restart the app without the `--no-enhance` flag.
|
| 69 |
-
python app/hydit_app.py --no-enhance ---load-key distill
|
| 70 |
|
| 71 |
# Start with English UI
|
| 72 |
-
python app/hydit_app.py --lang en --load-key distill
|
| 73 |
```
|
| 74 |
|
| 75 |
|
|
@@ -79,16 +76,13 @@ We provide several commands to quick start:
|
|
| 79 |
|
| 80 |
```shell
|
| 81 |
# Prompt Enhancement + Text-to-Image. Torch mode
|
| 82 |
-
python sample_t2i.py --prompt "渔舟唱晚" --load-key distill --infer-steps 50
|
| 83 |
|
| 84 |
# Only Text-to-Image. Torch mode
|
| 85 |
-
python sample_t2i.py --prompt "渔舟唱晚" --no-enhance --load-key distill --infer-steps 50
|
| 86 |
-
|
| 87 |
-
# Only Text-to-Image. Flash Attention mode
|
| 88 |
-
python sample_t2i.py --infer-mode fa --prompt "渔舟唱晚" --load-key distill --infer-steps 50
|
| 89 |
|
| 90 |
# Generate an image with other image sizes.
|
| 91 |
-
python sample_t2i.py --prompt "渔舟唱晚" --image-size 1280 768 --load-key distill --infer-steps 50
|
| 92 |
```
|
| 93 |
|
| 94 |
More example prompts can be found in [example_prompts.txt](example_prompts.txt)
|
|
|
|
| 58 |
Make sure you have activated the conda environment before running the following command.
|
| 59 |
|
| 60 |
```shell
|
| 61 |
+
# By default, we start a Chinese UI. Using Flash Attention for acceleration.
|
|
|
|
|
|
|
|
|
|
| 62 |
python app/hydit_app.py --infer-mode fa --load-key distill
|
| 63 |
|
| 64 |
# You can disable the enhancement model if the GPU memory is insufficient.
|
| 65 |
# The enhancement will be unavailable until you restart the app without the `--no-enhance` flag.
|
| 66 |
+
python app/hydit_app.py -infer-mode fa --no-enhance ---load-key distill
|
| 67 |
|
| 68 |
# Start with English UI
|
| 69 |
+
python app/hydit_app.py -infer-mode fa --lang en --load-key distill
|
| 70 |
```
|
| 71 |
|
| 72 |
|
|
|
|
| 76 |
|
| 77 |
```shell
|
| 78 |
# Prompt Enhancement + Text-to-Image. Torch mode
|
| 79 |
+
python sample_t2i.py --infer-mode fa --prompt "渔舟唱晚" --load-key distill --infer-steps 50
|
| 80 |
|
| 81 |
# Only Text-to-Image. Torch mode
|
| 82 |
+
python sample_t2i.py --infer-mode fa --prompt "渔舟唱晚" --no-enhance --load-key distill --infer-steps 50
|
|
|
|
|
|
|
|
|
|
| 83 |
|
| 84 |
# Generate an image with other image sizes.
|
| 85 |
+
python sample_t2i.py --infer-mode fa --prompt "渔舟唱晚" --image-size 1280 768 --load-key distill --infer-steps 50
|
| 86 |
```
|
| 87 |
|
| 88 |
More example prompts can be found in [example_prompts.txt](example_prompts.txt)
|