Upload japanesedolllikeness_LoRA.ipynb

#1
by SHjo - opened
models/japanesedolllikeness_LoRA.ipynb ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "markdown",
5
+ "source": [
6
+ "# 1. Setup the web ui"
7
+ ],
8
+ "metadata": {
9
+ "id": "bsiZpfkU7S77"
10
+ }
11
+ },
12
+ {
13
+ "cell_type": "code",
14
+ "execution_count": null,
15
+ "metadata": {
16
+ "id": "sBbcB4vwj_jm"
17
+ },
18
+ "outputs": [],
19
+ "source": [
20
+ "!pip install --upgrade fastapi==0.90.1\n",
21
+ "!git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui\n",
22
+ "!git clone https://github.com/yfszzx/stable-diffusion-webui-images-browser /content/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser\n",
23
+ "!git clone https://github.com/DominikDoom/a1111-sd-webui-tagcomplete /content/stable-diffusion-webui/extensions/a1111-sd-webui-tagcomplete\n",
24
+ "\n",
25
+ "# Model(s) setup\n",
26
+ "# Below are model code for ChilloutMix, we always could change it to our desired model (how-to: https://youtu.be/vj-QrS_mWQI or https://youtu.be/MwyfwPFezvY)\n",
27
+ "!curl -Lo chilloutmixni.safetensors https://huggingface.co/nolanaatama/chomni/resolve/main/chomni.safetensors\n",
28
+ "!mv \"/content/chilloutmixni.safetensors\" \"/content/stable-diffusion-webui/models/Stable-diffusion\"\n",
29
+ "\n",
30
+ "import shutil\n",
31
+ "shutil.rmtree('/content/stable-diffusion-webui/embeddings')\n",
32
+ "%cd /content/stable-diffusion-webui\n",
33
+ "!git checkout 3715ece\n",
34
+ "!git clone https://huggingface.co/nolanaatama/embeddings\n",
35
+ "!COMMANDLINE_ARGS=\"--share --disable-safe-unpickle --enable-insecure-extension-access\" REQS_FILE=\"requirements.txt\" python launch.py"
36
+ ]
37
+ },
38
+ {
39
+ "cell_type": "markdown",
40
+ "source": [
41
+ "# 2. After the gradio link show up, stop the first cell & clear the code output👆"
42
+ ],
43
+ "metadata": {
44
+ "id": "JUtPlg328avv"
45
+ }
46
+ },
47
+ {
48
+ "cell_type": "markdown",
49
+ "source": [
50
+ "# 3. Load the LoRA & launch the web ui"
51
+ ],
52
+ "metadata": {
53
+ "id": "qxhOCPrg7WXm"
54
+ }
55
+ },
56
+ {
57
+ "cell_type": "code",
58
+ "source": [
59
+ "!curl -Lo japaneseDollLikeness_v10.safetensors https://huggingface.co/nolanaatama/jdllora/resolve/main/jdllora.safetensors\n",
60
+ "!mv \"/content/stable-diffusion-webui/japaneseDollLikeness_v10.safetensors\" \"/content/stable-diffusion-webui/models/Lora\"\n",
61
+ "!COMMANDLINE_ARGS=\"--share --disable-safe-unpickle --no-half-vae --xformers --reinstall-xformers --enable-insecure-extension-access\" REQS_FILE=\"requirements.txt\" python launch.py"
62
+ ],
63
+ "metadata": {
64
+ "id": "pZVeLcbD70Lf"
65
+ },
66
+ "execution_count": null,
67
+ "outputs": []
68
+ },
69
+ {
70
+ "cell_type": "markdown",
71
+ "metadata": {
72
+ "id": "fhwIXzcgfkoR"
73
+ },
74
+ "source": [
75
+ "# 📚 GitHub for more: [_@nolanaatama_](https://github.com/nolanaatama)\n",
76
+ "# 📦 Repo: [Github](https://github.com/nolanaatama/sd-1click-colab)"
77
+ ]
78
+ }
79
+ ],
80
+ "metadata": {
81
+ "accelerator": "GPU",
82
+ "colab": {
83
+ "provenance": []
84
+ },
85
+ "gpuClass": "standard",
86
+ "kernelspec": {
87
+ "display_name": "Python 3",
88
+ "name": "python3"
89
+ },
90
+ "language_info": {
91
+ "name": "python"
92
+ }
93
+ },
94
+ "nbformat": 4,
95
+ "nbformat_minor": 0
96
+ }