git clone https://github.com/deepbeepmeep/Wan2GP.git
cd Wan2GP
conda create -n wan2gp python=3.11.3
conda activate wan2gp
pip install torch==2.5.1 torchvision torchaudio --index-url https://download.pytorch.org/whl/test/cu124
pip install -r requirements.txt
#윈도우용 triton설치
pip install triton-windows
#sage-attention 설치
pip install https://github.com/woct0rdho/SageAttention/releases/download/v2.1.1-windows/sageattention-2.1.1+cu124torch2.5.1-cp311-cp311-win_amd64.whl
#flash-attention 설치
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
[20250811]--> 변경사항
최근 github 리포지터리의 내부 코드 변경이 이루어지면서 mmgp관련 버전 이슈가 생겼음
pip install mmgp==3.5.7
다음과 같이 종속성을 설치해준다. sage-attention을 사용하면 무려 40%나 속도를 개선할 수 있다고 한다.
python wgp.py # Text-to-video (default)
python wgp.py --i2v # Image-to-video
위와 같은 명령어로 실행할 수 있다.
pip install "huggingface_hub[cli]"
huggingface-cli download Wan-AI/Wan2.1-T2V-1.3B --local-dir ./Wan2.1-T2V-1.3B
를 실행 후
python wgp.py를 실행하면

다음과 같이 gradioweb UI가 뜨게 된다.
실제로 기본 프롬프트를 사용하여 만든 영상과 내가 적은 프롬프트를 적용하여 만든 영상을 보면
기본 프롬프트를 사용하여 만든 영상이다. (2~3분 밖에 안걸린듯?)
내가 넣어준 프롬프트를 사용해 만든 영상이다.(이것도 3분 정도 밖에 안걸렸다. )
A cute chipmunk wearing a sleek, shiny Iron Man suit is engaged in an intense battle with a villainous squirrel attempting to steal acorns. The chipmunk stands on a forest floor covered with fallen leaves and twigs, its tiny repulsors glowing as it prepares to defend its acorn stash. The squirrel, with a mischievous glint in its eyes, has a scruffy, dark-furred appearance and sharp claws ready to strike. The scene is captured from a wide angle, showcasing the vibrant, lush forest with tall trees and dappled sunlight streaming through the canopy. The air is crisp, with a soft breeze rustling the leaves. The shot is sharp and vivid, with high dynamic range, keeping the chipmunk and squirrel in crisp focus while the background is slightly blurred to create a depth-of-field effect.
날렵하고 반짝이는 아이언맨 수트를 입은 귀여운 다람쥐가 도토리를 훔치려는 악당 다람쥐와 격렬한 전투를 벌이고 있습니다. 다람쥐는 낙엽과 나뭇가지로 덮인 숲 바닥에 서 있으며, 도토리 저장고를 방어하기 위해 준비하는 동안 작은 반발력이 빛납니다. 장난기 가득한 눈을 반짝이고 있는 다람쥐는 지저분하고 어두운 털이 있는 외모와 날카로운 발톱을 가지고 있어 공격할 준비가 되어 있습니다. 이 장면은 넓은 각도에서 포착되어 높은 나무와 캐노피 사이로 흐르는 햇빛이 가득한 활기차고 무성한 숲을 보여줍니다. 공기가 상쾌하고 부드러운 바람이 나뭇잎을 바스락거리며 흐릅니다. 촬영 장면은 날카롭고 생생하며 역동적인 범위가 높아 다람쥐와 다람쥐의 초점을 선명하게 유지하고 배경을 약간 흐리게 하여 심도 있는 현장 효과를 연출합니다.
AI의 발전은 무섭다.
업스케일러와 오디오 먹싱 기능을 가지고 있어서 다음과 같이 영상 편집도 가능하다.