File size: 1,755 Bytes
357c94c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Download Pretrained Models

All models are stored in `HunyuanVideo-Avatar/weights` by default, and the file structure is as follows
```shell
HunyuanVideo-Avatar
  β”œβ”€β”€weights
  β”‚  β”œβ”€β”€ckpts
  β”‚  β”‚  β”œβ”€β”€README.md
  β”‚  β”‚  β”œβ”€β”€hunyuan-video-t2v-720p
  β”‚  β”‚  β”‚  β”œβ”€β”€transformers
  β”‚  β”‚  β”‚  β”‚  β”œβ”€β”€mp_rank_00_model_states.pt
  β”‚  β”‚  β”‚  β”‚  β”œβ”€β”€mp_rank_00_model_states_fp8.pt
  β”‚  β”‚  β”‚  β”‚  β”œβ”€β”€mp_rank_00_model_states_fp8_map.pt
  β”‚  β”‚  β”‚  β”œβ”€β”€vae
  β”‚  β”‚  β”‚  β”‚  β”œβ”€β”€pytorch_model.pt
  β”‚  β”‚  β”‚  β”‚  β”œβ”€β”€config.json
  β”‚  β”‚  β”œβ”€β”€llava_llama_image
  β”‚  β”‚  β”‚  β”œβ”€β”€model-00001-of-00004.safatensors
  β”‚  β”‚  β”‚  β”œβ”€β”€model-00002-of-00004.safatensors
  β”‚  β”‚  β”‚  β”œβ”€β”€model-00003-of-00004.safatensors
  β”‚  β”‚  β”‚  β”œβ”€β”€model-00004-of-00004.safatensors
  β”‚  β”‚  β”‚  β”œβ”€β”€...
  β”‚  β”‚  β”œβ”€β”€text_encoder_2
  β”‚  β”‚  β”œβ”€β”€whisper-tiny
  β”‚  β”‚  β”œβ”€β”€det_align
  β”‚  β”‚  β”œβ”€β”€...
```

## Download HunyuanVideo-Avatar model
To download the HunyuanCustom model, first install the huggingface-cli. (Detailed instructions are available [here](https://huggingface.co/docs/huggingface_hub/guides/cli).)

```shell
python -m pip install "huggingface_hub[cli]"
```

Then download the model using the following commands:

```shell
# Switch to the directory named 'HunyuanVideo-Avatar/weights'
cd HunyuanVideo-Avatar/weights
# Use the huggingface-cli tool to download HunyuanVideo-Avatar model in HunyuanVideo-Avatar/weights dir.
# The download time may vary from 10 minutes to 1 hour depending on network conditions.
huggingface-cli download tencent/HunyuanVideo-Avatar --local-dir ./
```