{ "cells": [ { "cell_type": "code", "execution_count": null, "id": "3da917aa-d675-42ea-9974-2dc76d3eb755", "metadata": { "id": "3da917aa-d675-42ea-9974-2dc76d3eb755", "scrolled": true }, "outputs": [], "source": [ "!git clone https://github.com/deepbeepmeep/Wan2GP.git\n", "%cd Wan2GP\n", "!pip install torch==2.6.0 torchvision torchaudio --index-url https://download.pytorch.org/whl/test/cu124\n", "!pip install -r requirements.txt\n", "!pip install sageattention==1.0.6" ] }, { "cell_type": "code", "execution_count": null, "id": "aeefbb8c-da90-4b46-b6a7-9e51220e8195", "metadata": {}, "outputs": [], "source": [ "!mkdir -p ./ckpts/mask && wget -O ./ckpts/mask/sam_vit_h_4b8939_fp16.safetensors https://huggingface.co/DeepBeepMeep/Wan2.1/resolve/main/mask/sam_vit_h_4b8939_fp16.safetensors" ] }, { "cell_type": "code", "execution_count": null, "id": "0df98841-e97d-4449-a1e1-0f911bab1e4a", "metadata": {}, "outputs": [], "source": [ "!pip install flash-attn==2.7.2.post1\n", "!python wgp.py --share" ] } ], "metadata": { "colab": { "provenance": [] }, "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.10.12" } }, "nbformat": 4, "nbformat_minor": 5 }