Skip to content

About

wan2gp for rtx 50xx - one click install

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

57 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Website Twitter LinkedIn GitHub Google Dev

badge badge badge

wan2gp_stuff

wan2gp for rtx 40xx & 50xx - one click install

RTX 50XX

wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod +x Miniconda3-latest-Linux-x86_64.sh
./Miniconda3-latest-Linux-x86_64.sh -b -p $HOME/miniconda3
$HOME/miniconda3/bin/conda init bash
eval "$($HOME/miniconda3/bin/conda shell.bash hook)"
# Install ffmpeg with sudo check
if command -v sudo >/dev/null 2>&1; then
    sudo apt-get update
    sudo apt-get install ffmpeg -y
else
    apt-get update
    apt-get install ffmpeg -y
fi
git clone https://github.com/deepbeepmeep/Wan2GP.git
cd Wan2GP
# Fix matplotlib backend
sed -i "s/matplotlib.use('TkAgg')/matplotlib.use('Agg')/g" preprocessing/dwpose/util.py
sed -i 's/filter_letters(video_prompt_type, "PDSFCMU"))/filter_letters(video_prompt_type, "PDSLCMU"))/g' wgp.py
conda tos accept --override-channels --channel defaults
conda create -n wan2gp python=3.10.9 -y
conda activate wan2gp
pip install torch==2.7.0 torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128
pip install -r requirements.txt
conda install -c conda-forge libstdcxx-ng gcc_linux-64=11.4.0 gxx_linux-64=11.4.0 -y
git clone https://github.com/thu-ml/SageAttention
cd SageAttention 
python setup.py install
cd ../
python wgp.py --share

Launch

cd Wan2GP
conda activate wan2gp
export SERVER_NAME="0.0.0.0"
python wgp.py --share

RTX 40XX

wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod +x Miniconda3-latest-Linux-x86_64.sh
./Miniconda3-latest-Linux-x86_64.sh -b -p $HOME/miniconda3
$HOME/miniconda3/bin/conda init bash
eval "$($HOME/miniconda3/bin/conda shell.bash hook)"
# Install ffmpeg with sudo check
if command -v sudo >/dev/null 2>&1; then
    sudo apt-get update
    sudo apt-get install ffmpeg -y
else
    apt-get update
    apt-get install ffmpeg -y
fi
git clone https://github.com/deepbeepmeep/Wan2GP.git
cd Wan2GP
# Fix matplotlib backend
sed -i "s/matplotlib.use('TkAgg')/matplotlib.use('Agg')/g" preprocessing/dwpose/util.py
sed -i 's/filter_letters(video_prompt_type, "PDSFCMU"))/filter_letters(video_prompt_type, "PDSLCMU"))/g' wgp.py
conda create -n wan2gp python=3.10.9 -y
conda activate wan2gp
pip install torch==2.6.0 torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124
pip install -r requirements.txt
#ln -sf /usr/lib/x86_64-linux-gnu/libstdc++.so.6 ${CONDA_PREFIX}/lib/libstdc++.so.6
#conda install -c conda-forge gcc_linux-64 gxx_linux-64 libstdcxx-ng -y
conda install -c conda-forge libstdcxx-ng gcc_linux-64=11.4.0 gxx_linux-64=11.4.0 -y
#conda install -c conda-forge libstdcxx-ng -y
git clone https://github.com/thu-ml/SageAttention
cd SageAttention 
python setup.py install
cd ../
export SERVER_NAME="0.0.0.0"
python wgp.py --share

Lora Wan2.1_I2V_14B_FusionX

https://huggingface.co/vrgamedevgirl84/Wan14BT2VFusioniX/resolve/main/FusionX_LoRa/Wan2.1_I2V_14B_FusionX_LoRA.safetensors

FFMPEG mix audio

ffmpeg -i video.mp4 -i 655565__sergequadrado__hush-little-baby.wav -filter_complex "[1:a]volume=1[a1];[0:a][a1]amix=inputs=2[a]" -map 0:v -map "[a]" -c:v copy -shortest output.mp4

FFMPEG add audio

ffmpeg -i video.mp4 -i audio.mp3 -c:v copy -c:a aac -shortest output.mp4 -y

4090 fix!

wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod +x Miniconda3-latest-Linux-x86_64.sh
./Miniconda3-latest-Linux-x86_64.sh -b -p $HOME/miniconda3
$HOME/miniconda3/bin/conda init bash
eval "$($HOME/miniconda3/bin/conda shell.bash hook)"
# Install ffmpeg with sudo check
if command -v sudo >/dev/null 2>&1; then
    sudo apt-get update
    sudo apt-get install ffmpeg -y
else
    apt-get update
    apt-get install ffmpeg -y
fi
git clone https://github.com/deepbeepmeep/Wan2GP.git
cd Wan2GP
# Fix matplotlib backend
sed -i "s/matplotlib.use('TkAgg')/matplotlib.use('Agg')/g" preprocessing/dwpose/util.py
sed -i 's/filter_letters(video_prompt_type, "PDSFCMU"))/filter_letters(video_prompt_type, "PDSLCMU"))/g' wgp.py
conda create -n wan2gp python=3.10.9 -y
conda activate wan2gp

# ========== ПРОВЕРКА И ОБНОВЛЕНИЕ CUDA ==========
conda install -c nvidia cuda-toolkit=12.4 -y
# export CUDA_HOME=$CONDA_PREFIX
# ===============================================

pip install torch==2.6.0 torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124
pip install -r requirements.txt
conda install -c conda-forge libstdcxx-ng gcc_linux-64=11.4.0 gxx_linux-64=11.4.0 -y
git clone https://github.com/thu-ml/SageAttention
cd SageAttention 
pip install . --no-build-isolation
cd ../
export SERVER_NAME="0.0.0.0"
python wgp.py --share

MultiTalk

wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod +x Miniconda3-latest-Linux-x86_64.sh
./Miniconda3-latest-Linux-x86_64.sh -b -p $HOME/miniconda3
$HOME/miniconda3/bin/conda init bash
eval "$($HOME/miniconda3/bin/conda shell.bash hook)"
conda create -n multitalk python=3.10 -y
conda activate multitalk
pip install torch==2.4.1 torchvision==0.19.1 torchaudio==2.4.1 --index-url https://download.pytorch.org/whl/cu121
pip install -U xformers==0.0.28 --index-url https://download.pytorch.org/whl/cu121
pip install misaki[en]
pip install ninja 
pip install psutil 
pip install packaging 
pip install flash_attn==2.7.4.post1
pip install --upgrade numba
conda install -c conda-forge libstdcxx-ng gcc_linux-64=11.4.0 gxx_linux-64=11.4.0 -y
conda install -c conda-forge librosa -y
conda install -c conda-forge ffmpeg -y
git clone https://github.com/MeiGen-AI/MultiTalk.git
cd MultiTalk
pip install -r requirements.txt
pip install --upgrade numpy
pip install --force-reinstall transformers==4.52
huggingface-cli download Wan-AI/Wan2.1-I2V-14B-480P --local-dir ./weights/Wan2.1-I2V-14B-480P
huggingface-cli download TencentGameMate/chinese-wav2vec2-base --local-dir ./weights/chinese-wav2vec2-base
huggingface-cli download TencentGameMate/chinese-wav2vec2-base model.safetensors --revision refs/pr/1 --local-dir ./weights/chinese-wav2vec2-base
huggingface-cli download hexgrad/Kokoro-82M --local-dir ./weights/Kokoro-82M
huggingface-cli download MeiGen-AI/MeiGen-MultiTalk --local-dir ./weights/MeiGen-MultiTalk
mv weights/Wan2.1-I2V-14B-480P/diffusion_pytorch_model.safetensors.index.json weights/Wan2.1-I2V-14B-480P/diffusion_pytorch_model.safetensors.index.json_old
cp weights/MeiGen-MultiTalk/diffusion_pytorch_model.safetensors.index.json weights/Wan2.1-I2V-14B-480P/
cp weights/MeiGen-MultiTalk/multitalk.safetensors weights/Wan2.1-I2V-14B-480P/
wget -O ./weights/Wan2.1_I2V_14B_FusionX_LoRA.safetensors https://huggingface.co/vrgamedevgirl84/Wan14BT2VFusioniX/resolve/main/FusionX_LoRa/Wan2.1_I2V_14B_FusionX_LoRA.safetensors
sed -i 's/demo\.launch(server_name="0\.0\.0\.0", debug=True, server_port=8418)/demo.launch(server_name="0.0.0.0", debug=True, server_port=8418, share=True)/g' app.py

About

wan2gp for rtx 50xx - one click install

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors