File size: 2,327 Bytes
6be422c
 
 
c7e7e8f
 
 
 
 
 
 
 
 
 
 
 
 
 
11a85ce
c7e7e8f
11a85ce
 
 
c7e7e8f
11a85ce
 
 
 
 
 
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
git clone https://github.com/camenduru/sd-webui-tunnels /content/SDVN/extensions/sd-webui-tunnels
git clone https://huggingface.co/embed/negative /content/SDVN/embeddings/negative
git clone https://huggingface.co/embed/lora /content/SDVN/models/Lora/positive
sample= !ls /content/drive/MyDrive/SD-Data/Lyco
if sample == ["ls: cannot access '/content/drive/MyDrive/SD-Data/Lyco': No such file or directory"] :
  print("Khởi tạo thư mục lần đầu")
   mkdir /content/drive/MyDrive/SD-Data/
   mkdir /content/drive/MyDrive/SD-Data/Model
   mkdir /content/drive/MyDrive/SD-Data/Lora
   mkdir /content/drive/MyDrive/SD-Data/Embeddings
   mkdir /content/drive/MyDrive/SD-Data/Lyco
   mkdir /content/drive/MyDrive/SD-Data/wildcards
   mkdir /content/drive/MyDrive/SD-Data/Hypernetworks
sudo apt-get install aria2
rm /content/SDVN/ui-config.json
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
rm /content/SDVN/style.css
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/
rm -r /content/drive/MyDrive/SD-Data/Setting15
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
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

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
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

ln -s /content/SDVN/models/Stable-diffusion /content/drive/MyDrive/SD-Data/Model
ln -s /content/SDVN/models/Lora /content/drive/MyDrive/SD-Data/Lora
ln -s /content/SDVN/embeddings /content/drive/MyDrive/SD-Data/Embeddings
ln -s /content/SDVN/models/Lora /content/drive/MyDrive/SD-Data/Lyco