Commit
·
c7e7e8f
1
Parent(s):
f837a23
Update sdtn.txt
Browse files
sdtn.txt
CHANGED
@@ -1,27 +1,26 @@
|
|
1 |
-
apt -y update -qq
|
2 |
-
wget http://launchpadlibrarian.net/367274644/libgoogle-perftools-dev_2.5-2.2ubuntu3_amd64.deb
|
3 |
-
wget https://launchpad.net/ubuntu/+source/google-perftools/2.5-2.2ubuntu3/+build/14795286/+files/google-perftools_2.5-2.2ubuntu3_all.deb
|
4 |
-
wget https://launchpad.net/ubuntu/+source/google-perftools/2.5-2.2ubuntu3/+build/14795286/+files/libtcmalloc-minimal4_2.5-2.2ubuntu3_amd64.deb
|
5 |
-
wget https://launchpad.net/ubuntu/+source/google-perftools/2.5-2.2ubuntu3/+build/14795286/+files/libgoogle-perftools4_2.5-2.2ubuntu3_amd64.deb
|
6 |
-
apt install -qq libunwind8-dev
|
7 |
-
dpkg -i *.deb
|
8 |
-
%env LD_PRELOAD=libtcmalloc.so
|
9 |
-
rm *.deb
|
10 |
-
|
11 |
-
apt -y install -qq aria2 libcairo2-dev pkg-config python3-dev
|
12 |
-
pip install -q torch==2.0.0+cu118 torchvision==0.15.1+cu118 torchaudio==2.0.1+cu118 torchtext==0.15.1 torchdata==0.6.0 --extra-index-url https://download.pytorch.org/whl/cu118 -U
|
13 |
-
pip install -q xformers==0.0.19 triton==2.0.0 -U
|
14 |
-
|
15 |
git clone https://github.com/camenduru/sd-webui-tunnels /content/SDVN/extensions/sd-webui-tunnels
|
16 |
git clone https://huggingface.co/embed/negative /content/SDVN/embeddings/negative
|
17 |
git clone https://huggingface.co/embed/lora /content/SDVN/models/Lora/positive
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
aria2c --continue --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/bstungnguyen/SDColab/resolve/main/style.css -d /content/SDVN/
|
21 |
-
|
22 |
aria2c --continue --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/bstungnguyen/SDColab/resolve/main/config.json -d /content/drive/MyDrive/SD-Data/Setting15 -o config.json
|
23 |
aria2c --continue --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/bstungnguyen/SDColab/resolve/main/styles.csv -d /content/drive/MyDrive/SD-Data/Setting15 -o styles.csv
|
24 |
|
|
|
25 |
aria2c --continue --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/stabilityai/sd-vae-ft-mse-original/resolve/main/vae-ft-mse-840000-ema-pruned.ckpt -d /content/SDVN/models/Stable-diffusion -o VAE84.vae.pt
|
26 |
|
27 |
ln -s /content/SDVN/models/Stable-diffusion /content/drive/MyDrive/SD-Data/Model
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
git clone https://github.com/camenduru/sd-webui-tunnels /content/SDVN/extensions/sd-webui-tunnels
|
2 |
git clone https://huggingface.co/embed/negative /content/SDVN/embeddings/negative
|
3 |
git clone https://huggingface.co/embed/lora /content/SDVN/models/Lora/positive
|
4 |
+
sample= !ls /content/drive/MyDrive/SD-Data/Lyco
|
5 |
+
if sample == ["ls: cannot access '/content/drive/MyDrive/SD-Data/Lyco': No such file or directory"] :
|
6 |
+
print("Khởi tạo thư mục lần đầu")
|
7 |
+
mkdir /content/drive/MyDrive/SD-Data/
|
8 |
+
mkdir /content/drive/MyDrive/SD-Data/Model
|
9 |
+
mkdir /content/drive/MyDrive/SD-Data/Lora
|
10 |
+
mkdir /content/drive/MyDrive/SD-Data/Embeddings
|
11 |
+
mkdir /content/drive/MyDrive/SD-Data/Lyco
|
12 |
+
mkdir /content/drive/MyDrive/SD-Data/wildcards
|
13 |
+
mkdir /content/drive/MyDrive/SD-Data/Hypernetworks
|
14 |
+
sudo apt-get install aria2
|
15 |
+
rm /content/SDVN/ui-config.json
|
16 |
+
aria2c --continue --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/bstungnguyen/SDColab/resolve/main/ui-config.json -d /content/SDVN/ -o ui-config.json
|
17 |
+
rm /content/SDVN/style.css
|
18 |
aria2c --continue --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/bstungnguyen/SDColab/resolve/main/style.css -d /content/SDVN/
|
19 |
+
rm -r /content/drive/MyDrive/SD-Data/Setting15
|
20 |
aria2c --continue --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/bstungnguyen/SDColab/resolve/main/config.json -d /content/drive/MyDrive/SD-Data/Setting15 -o config.json
|
21 |
aria2c --continue --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/bstungnguyen/SDColab/resolve/main/styles.csv -d /content/drive/MyDrive/SD-Data/Setting15 -o styles.csv
|
22 |
|
23 |
+
aria2c --continue --console-log-level=error -c -x 16 -s 16 -k 1M https://civitai.com/api/download/models/65898 -d /content/SDVN/models/Stable-diffusion -o SDVN-Real-v2.safetensors
|
24 |
aria2c --continue --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/stabilityai/sd-vae-ft-mse-original/resolve/main/vae-ft-mse-840000-ema-pruned.ckpt -d /content/SDVN/models/Stable-diffusion -o VAE84.vae.pt
|
25 |
|
26 |
ln -s /content/SDVN/models/Stable-diffusion /content/drive/MyDrive/SD-Data/Model
|