SDColab / sdtn.txt
bstungnguyen's picture
Update sdtn.txt
c7e7e8f
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