Commit ·
0b5a380
1
Parent(s): 2a275b5
Upload short.ipynb
Browse files- short.ipynb +80 -0
short.ipynb
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"cell_type": "code",
|
| 5 |
+
"execution_count": null,
|
| 6 |
+
"metadata": {
|
| 7 |
+
"id": "caeYrAXcZCQv",
|
| 8 |
+
"cellView": "code"
|
| 9 |
+
},
|
| 10 |
+
"outputs": [],
|
| 11 |
+
"source": [
|
| 12 |
+
"!git clone https://tinyurl.com/vorstcavry-remajapekalongan /home/studio-lab-user/sagemaker-studiolab-notebooks/vorst-cavry\n",
|
| 13 |
+
"%cd /home/studio-lab-user/sagemaker-studiolab-notebooks/vorst-cavry\n",
|
| 14 |
+
"!git checkout baf6946e06249c5af9851c60171692c44ef633e0\n",
|
| 15 |
+
"!conda install -y -c conda-forge opencv\n",
|
| 16 |
+
"\n",
|
| 17 |
+
"%cd /home/studio-lab-user/sagemaker-studiolab-notebooks/vorst-cavry/models/Stable-diffusion/\n",
|
| 18 |
+
"!curl -O -J -L https://huggingface.co/vorstcavry/mymodel/resolve/main/Cavry_V2.safetensors\n",
|
| 19 |
+
"!curl -O -J -L https://huggingface.co/vorstcavry/mymodel/resolve/main/Cavry_V2.preview.png\n",
|
| 20 |
+
"%cd /home/studio-lab-user/sagemaker-studiolab-notebooks/vorst-cavry/models/VAE\n",
|
| 21 |
+
"!curl -O -J -L https://huggingface.co/stabilityai/sd-vae-ft-mse-original/resolve/main/vae-ft-mse-840000-ema-pruned.ckpt\n",
|
| 22 |
+
"\n",
|
| 23 |
+
"%cd /home/studio-lab-user/sagemaker-studiolab-notebooks/vorst-cavry/models/Lora\n",
|
| 24 |
+
"!curl -O -J -L https://huggingface.co/vorstcavry/loraasia1/resolve/main/japaneseDollLikeness_v15.safetensors\n",
|
| 25 |
+
"!curl -O -J -L https://huggingface.co/vorstcavry/loraasia1/resolve/main/koreanDollLikeness_v20.safetensors\n",
|
| 26 |
+
"!curl -O -J -L https://huggingface.co/vorstcavry/loraasia1/resolve/main/taiwanDollLikeness_v15.safetensors\n",
|
| 27 |
+
"\n",
|
| 28 |
+
"!pip install rich\n",
|
| 29 |
+
"!pip install onnxruntime\n",
|
| 30 |
+
"!pip install numexpr\n",
|
| 31 |
+
"\n",
|
| 32 |
+
"!wget https://raw.githubusercontent.com/vorstcavry/s-scripts/main/run_n_times.py -O /home/studio-lab-user/sagemaker-studiolab-notebooks/vorst-cavry/scripts/run_n_times.py\n",
|
| 33 |
+
"#install-bahan-dasar\n",
|
| 34 |
+
"\n",
|
| 35 |
+
"!git clone https://github.com/vorstcavry/lora /home/studio-lab-user/sagemaker-studiolab-notebooks/vorst-cavry/models/Lora/Lora-set\n",
|
| 36 |
+
"!rm -rf /home/studio-lab-user/sagemaker-studiolab-notebooks/vorst-cavry/models/Lora/Lora-set/.git\n",
|
| 37 |
+
"%cd /home/studio-lab-user/sagemaker-studiolab-notebooks/vorst-cavry/embeddings\n",
|
| 38 |
+
"!git clone https://github.com/vorstcavry/embeddings /home/studio-lab-user/sagemaker-studiolab-notebooks/vorst-cavry/embeddings/negative\n",
|
| 39 |
+
"!rm -rf /home/studio-lab-user/sagemaker-studiolab-notebooks/vorst-cavry/embeddings/negative/.git\n",
|
| 40 |
+
"\n",
|
| 41 |
+
"#install-ekstension\n",
|
| 42 |
+
"%cd /home/studio-lab-user/sagemaker-studiolab-notebooks/vorst-cavry/extensions-builtin/\n",
|
| 43 |
+
"!git clone https://github.com/BlafKing/sd-civitai-browser-plus\n",
|
| 44 |
+
"!git clone https://github.com/A-I-Channel/explorer-image\n",
|
| 45 |
+
"!git clone https://github.com/Iyashinouta/sd-model-downloader\n",
|
| 46 |
+
"!git clone https://github.com/NoCrypt/inpaint-nav\n",
|
| 47 |
+
"!git clone https://tinyurl.com/tagcomplete-1111\n",
|
| 48 |
+
"!git clone https://github.com/vorstcavry/Downloader\n",
|
| 49 |
+
"!git clone https://tinyurl.com/aspect-ratio-v\n",
|
| 50 |
+
"\n",
|
| 51 |
+
"!sed -i -e '''/from modules import launch_utils/a\\import os''' /home/studio-lab-user/sagemaker-studiolab-notebooks/vorst-cavry/launch.py\n",
|
| 52 |
+
"!sed -i -e '''/ prepare_environment()/a\\ os.system\\(f\\\"\"\"sed -i -e ''\\\"s/dict()))/dict())).cuda()/g\\\"'' /home/studio-lab-user/sagemaker-studiolab-notebooks/vorst-cavry/repositories/stable-diffusion-stability-ai/ldm/util.py\"\"\")''' /home/studio-lab-user/sagemaker-studiolab-notebooks/vorst-cavry/launch.py\n",
|
| 53 |
+
"!sed -i -e 's/\\[\"sd_model_checkpoint\"\\]/\\[\"sd_model_checkpoint\",\"sd_vae\",\"CLIP_stop_at_last_layers\"\\]/g' /home/studio-lab-user/sagemaker-studiolab-notebooks/vorst-cavry/modules/shared.py\n",
|
| 54 |
+
"\n",
|
| 55 |
+
"%cd /home/studio-lab-user/sagemaker-studiolab-notebooks/vorst-cavry\n",
|
| 56 |
+
"!rm -rf webui.py\n",
|
| 57 |
+
"!curl -Lo \"/home/studio-lab-user/sagemaker-studiolab-notebooks/vorst-cavry/webui.py\" https://huggingface.co/vorstcavry/test/resolve/main/webui.py\n",
|
| 58 |
+
"!pip install pyngrok\n",
|
| 59 |
+
"authtoken=\"2Pru5tTivWjXNLotYH6jsGqJZRN_4MpnwGEaAEVKTgHJMt77t\"\n",
|
| 60 |
+
"\n",
|
| 61 |
+
"!python launch.py --share --disable-safe-unpickle --theme=dark --no-half-vae --enable-insecure-extension --gradio-queue --ngrok {authtoken}"
|
| 62 |
+
]
|
| 63 |
+
}
|
| 64 |
+
],
|
| 65 |
+
"metadata": {
|
| 66 |
+
"accelerator": "GPU",
|
| 67 |
+
"colab": {
|
| 68 |
+
"provenance": []
|
| 69 |
+
},
|
| 70 |
+
"kernelspec": {
|
| 71 |
+
"display_name": "Python 3",
|
| 72 |
+
"name": "python3"
|
| 73 |
+
},
|
| 74 |
+
"language_info": {
|
| 75 |
+
"name": "python"
|
| 76 |
+
}
|
| 77 |
+
},
|
| 78 |
+
"nbformat": 4,
|
| 79 |
+
"nbformat_minor": 0
|
| 80 |
+
}
|