File size: 1,605 Bytes
e401dd3 | 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 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | {
"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
}
|