Update README.md
Browse files
README.md
CHANGED
|
@@ -76,33 +76,12 @@ We offer two models, BitDance-14B-64x and BitDance-14B-16x, which can predict 64
|
|
| 76 |
| BitDance-14B-16x| 16 | 256 |512&1024px | [BitDance-14B-16x](https://huggingface.co/shallowdream204/BitDance-14B-16x) |
|
| 77 |
|
| 78 |
|
| 79 |
-
|
| 80 |
-
from huggingface_hub import snapshot_download
|
| 81 |
-
|
| 82 |
-
save_dir = "models/BitDance-14B-64x"
|
| 83 |
-
repo_id = "shallowdream204/BitDance-14B-64x"
|
| 84 |
-
cache_dir = save_dir + "/cache"
|
| 85 |
-
|
| 86 |
-
snapshot_download(cache_dir=cache_dir,
|
| 87 |
-
local_dir=save_dir,
|
| 88 |
-
repo_id=repo_id,
|
| 89 |
-
local_dir_use_symlinks=False,
|
| 90 |
-
resume_download=True,
|
| 91 |
-
allow_patterns=["*.json", "*.safetensors", "*.bin", "*.py", "*.md", "*.txt"],
|
| 92 |
-
)
|
| 93 |
|
| 94 |
-
save_dir = "models/BitDance-14B-16x"
|
| 95 |
-
repo_id = "shallowdream204/BitDance-14B-16x"
|
| 96 |
-
cache_dir = save_dir + "/cache"
|
| 97 |
-
|
| 98 |
-
snapshot_download(cache_dir=cache_dir,
|
| 99 |
-
local_dir=save_dir,
|
| 100 |
-
repo_id=repo_id,
|
| 101 |
-
local_dir_use_symlinks=False,
|
| 102 |
-
resume_download=True,
|
| 103 |
-
allow_patterns=["*.json", "*.safetensors", "*.bin", "*.py", "*.md", "*.txt"],
|
| 104 |
-
)
|
| 105 |
|
|
|
|
|
|
|
|
|
|
| 106 |
```
|
| 107 |
|
| 108 |
3️⃣ T2I Inference (check [here](https://github.com/shallowdream204/BitDance/blob/main/modeling/t2i_pipeline.py#L21) for the supported image resolution)
|
|
|
|
| 76 |
| BitDance-14B-16x| 16 | 256 |512&1024px | [BitDance-14B-16x](https://huggingface.co/shallowdream204/BitDance-14B-16x) |
|
| 77 |
|
| 78 |
|
| 79 |
+
Run the following scripts to download all T2I models.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
|
| 82 |
+
```bash
|
| 83 |
+
hf download shallowdream204/BitDance-14B-64x --local-dir models/BitDance-14B-64x --max-workers=16
|
| 84 |
+
hf download shallowdream204/BitDance-14B-16x --local-dir models/BitDance-14B-16x --max-workers=16
|
| 85 |
```
|
| 86 |
|
| 87 |
3️⃣ T2I Inference (check [here](https://github.com/shallowdream204/BitDance/blob/main/modeling/t2i_pipeline.py#L21) for the supported image resolution)
|