Upload Sagemaker Script.txt
Browse files- Sagemaker Script.txt +47 -0
Sagemaker Script.txt
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
!mkdir /home/studio-lab-user/content
|
| 2 |
+
%cd /home/studio-lab-user/content
|
| 3 |
+
|
| 4 |
+
%env TF_CPP_MIN_LOG_LEVEL=1
|
| 5 |
+
|
| 6 |
+
%conda install -q -y aria2
|
| 7 |
+
%conda install -q -y libglib2.0-0
|
| 8 |
+
%conda install -q -y glib
|
| 9 |
+
%pip install -q opencv-python-headless huggingface-hub
|
| 10 |
+
!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
|
| 11 |
+
!pip install -q xformers==0.0.18 triton==2.0.0 -U
|
| 12 |
+
|
| 13 |
+
!curl -Lo Moondrop.zip https://huggingface.co/amandaic1805/Moondrop/resolve/main/Moondrop.zip
|
| 14 |
+
!unzip /home/studio-lab-user/content/Moondrop.zip
|
| 15 |
+
!rm -r /home/studio-lab-user/content/Moondrop.zip
|
| 16 |
+
%cd /home/studio-lab-user/content/Moondrop
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
!curl -Lo embeddings.zip https://huggingface.co/nolanaatama/colab/resolve/main/embeddings.zip
|
| 20 |
+
%cd /home/studio-lab-user/content/Moondrop
|
| 21 |
+
!unzip /home/studio-lab-user/content/Moondrop/embeddings.zip
|
| 22 |
+
|
| 23 |
+
%cd /home/studio-lab-user/content/Moondrop
|
| 24 |
+
|
| 25 |
+
#model tab
|
| 26 |
+
|
| 27 |
+
!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/embed/upscale/resolve/main/4x-UltraSharp.pth -d /home/studio-lab-user/content/Moondrop/models/ESRGAN -o 4x-UltraSharp.pth
|
| 28 |
+
!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/amandaic1805/Moondrop/resolve/main/Moondrop.safetensors -d /home/studio-lab-user/content/Moondrop/models/Stable-diffusion -o Moondrop.safetensors
|
| 29 |
+
!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/amandaic1805/Moondrop/resolve/main/hand_yolov8s.pt -d /home/studio-lab-user/content/Moondrop/models/adetailer -o hand_yolov8s.safetensors
|
| 30 |
+
!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/hakurei/waifu-diffusion-v1-4/resolve/main/vae/kl-f8-anime2.ckpt -d /home/studio-lab-user/content/Moondrop/models/Stable-diffusion -o klf8bruh.vae.pt
|
| 31 |
+
!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/amandaic1805/MoondropCollection/resolve/main/animescreencap.safetensors -d /home/studio-lab-user/content/Moondrop/models/LyCORIS -o animescreencap.safetensors
|
| 32 |
+
!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/amandaic1805/MoondropCollection/resolve/main/sharpteeth.safetensors -d /home/studio-lab-user/content/Moondrop/models/LyCORIS -o sharpteeth.safetensors
|
| 33 |
+
|
| 34 |
+
#lora tab
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/amandaic1805/MoondropCollection/resolve/main/KuniedaShiho.safetensors -d /home/studio-lab-user/content/Moondrop/models/LyCORIS -o KuniedaShiho.safetensors
|
| 39 |
+
!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/amandaic1805/MoondropCollection/resolve/main/KuboNagisa.safetensors -d /home/studio-lab-user/content/Moondrop/models/LyCORIS -o KuboNagisa.safetensors
|
| 40 |
+
!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/amandaic1805/MoondropCollection/resolve/main/KiyokoShimizu.safetensors -d /home/studio-lab-user/content/Moondrop/models/LyCORIS -o KiyokoShimizu.safetensors
|
| 41 |
+
!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/amandaic1805/MoondropCollection/resolve/main/frierenstyle.safetensors -d /home/studio-lab-user/content/Moondrop/models/LyCORIS -o frierenstyle.safetensors
|
| 42 |
+
!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/amandaic1805/MoondropCollection/resolve/main/KurumiTokisaki.safetensors -d /home/studio-lab-user/content/Moondrop/models/LyCORIS -o KurumiTokisaki.safetensors
|
| 43 |
+
|
| 44 |
+
!git apply --ignore-whitespace /home/studio-lab-user/content/Moondrop/extensions/moondropwebui-twocrot/cfg_denoised_callback-ea9bd9fc.patch
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
!python launch.py --listen --xformers --enable-insecure-extension-access --reinstall-xformers --gradio-queue --ngrok (pake token ngrok di web ngrok)
|