wan2.2 비디오 생성 모델 빌드

git clone https://github.com/Wan-Video/Wan2.2.git
cd Wan2.2
conda create -n Wan2 -y python==3.11.3
conda activate Wan2
pip install torch==2.5.1 torchvision --index-url=https://download.pytorch.org/whl/cu124
pip install https://github.com/bdashore3/flash-attention/releases/download/v2.7.4.post1/flash_attn-2.7.4.post1+cu124torch2.5.1cxx11abiFALSE-cp311-cp311-win_amd64.whl

requirements.txt의 내용을


다음과 같이 바꿉니다.

pip install -r requirements.txt
pip install "huggingface_hub[cli]"
huggingface-cli download Wan-AI/Wan2.2-TI2V-5B --local-dir ./Wan2.2-TI2V-5B



다음과 같이 하여 설치와 모델 다운로드를 완료합니다.

python generate.py --task ti2v-5B --size 1280*704 --ckpt_dir ./Wan2.2-TI2V-5B --offload_model True --convert_model_dtype --t5_cpu --image examples/i2v_input.JPG --prompt "Summer beach vacation style, a white cat wearing sunglasses sits on a surfboard. The fluffy-furred feline gazes directly at the camera with a relaxed expression. Blurred beach scenery forms the background featuring crystal-clear waters, distant green hills, and a blue sky dotted with white clouds. The cat assumes a naturally relaxed posture, as if savoring the sea breeze and warm sunlight. A close-up shot highlights the feline's intricate details and the refreshing atmosphere of the seaside."

를 실행합니다.

다음과 같이 비디오 생성을 시작합니다.(되게 오래 걸립니다…)

그리고 기다린 끋에

완성되었습니다.