Spaces:
Paused
Paused
lllyasviel
commited on
Commit
·
6b46857
1
Parent(s):
bb33d1a
i (#68)
Browse files- colab.ipynb +47 -0
colab.ipynb
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cells": [
|
3 |
+
{
|
4 |
+
"cell_type": "code",
|
5 |
+
"execution_count": null,
|
6 |
+
"metadata": {
|
7 |
+
"id": "VjYy0F2gZIPR"
|
8 |
+
},
|
9 |
+
"outputs": [],
|
10 |
+
"source": [
|
11 |
+
"!git clone https://github.com/lllyasviel/Fooocus\n",
|
12 |
+
"\n",
|
13 |
+
"!apt -y update -qq\n",
|
14 |
+
"!wget https://github.com/camenduru/gperftools/releases/download/v1.0/libtcmalloc_minimal.so.4 -O /content/libtcmalloc_minimal.so.4\n",
|
15 |
+
"%env LD_PRELOAD=/content/libtcmalloc_minimal.so.4\n",
|
16 |
+
"\n",
|
17 |
+
"!pip install torchsde==0.2.5 einops==0.4.1 transformers==4.30.2 safetensors==0.3.1 accelerate==0.21.0\n",
|
18 |
+
"!pip install pytorch_lightning==1.9.4 omegaconf==2.2.3 gradio==3.39.0 xformers==0.0.20 triton==2.0.0 pygit2==1.12.2\n",
|
19 |
+
"\n",
|
20 |
+
"!apt -y install -qq aria2\n",
|
21 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/ckpt/sd_xl_base_1.0/resolve/main/sd_xl_base_1.0_0.9vae.safetensors -d /content/Fooocus/models/checkpoints -o sd_xl_base_1.0_0.9vae.safetensors\n",
|
22 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/ckpt/sd_xl_refiner_1.0/resolve/main/sd_xl_refiner_1.0_0.9vae.safetensors -d /content/Fooocus/models/checkpoints -o sd_xl_refiner_1.0_0.9vae.safetensors\n",
|
23 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_offset_example-lora_1.0.safetensors -d /content/Fooocus/models/loras -o sd_xl_offset_example-lora_1.0.safetensors\n",
|
24 |
+
"\n",
|
25 |
+
"%cd /content/Fooocus\n",
|
26 |
+
"!git pull\n",
|
27 |
+
"!python launch.py --share\n"
|
28 |
+
]
|
29 |
+
}
|
30 |
+
],
|
31 |
+
"metadata": {
|
32 |
+
"accelerator": "GPU",
|
33 |
+
"colab": {
|
34 |
+
"gpuType": "T4",
|
35 |
+
"provenance": []
|
36 |
+
},
|
37 |
+
"kernelspec": {
|
38 |
+
"display_name": "Python 3",
|
39 |
+
"name": "python3"
|
40 |
+
},
|
41 |
+
"language_info": {
|
42 |
+
"name": "python"
|
43 |
+
}
|
44 |
+
},
|
45 |
+
"nbformat": 4,
|
46 |
+
"nbformat_minor": 0
|
47 |
+
}
|