animeartstudio Sam Watson commited on
Commit
3f60c8c
0 Parent(s):

Duplicate from pulpapps/Diffusion30-Anime

Browse files

Co-authored-by: Sam Watson <pulpapps@users.noreply.huggingface.co>

Files changed (3) hide show
  1. .gitattributes +34 -0
  2. README.md +13 -0
  3. app.py +216 -0
.gitattributes ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tflite filter=lfs diff=lfs merge=lfs -text
29
+ *.tgz filter=lfs diff=lfs merge=lfs -text
30
+ *.wasm filter=lfs diff=lfs merge=lfs -text
31
+ *.xz filter=lfs diff=lfs merge=lfs -text
32
+ *.zip filter=lfs diff=lfs merge=lfs -text
33
+ *.zst filter=lfs diff=lfs merge=lfs -text
34
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: Maximum Multiplier
3
+ emoji: 🛕🛕
4
+ colorFrom: green
5
+ colorTo: blue
6
+ sdk: gradio
7
+ sdk_version: 3.15.0
8
+ app_file: app.py
9
+ pinned: true
10
+ duplicated_from: pulpapps/Diffusion30-Anime
11
+ ---
12
+
13
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app.py ADDED
@@ -0,0 +1,216 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import os
3
+ import sys
4
+ from pathlib import Path
5
+
6
+ models = [
7
+ {"name": "Anything 5.0", "url": "stablediffusionapi/anything-v5"},
8
+ {"name": "Counterfeit 2.0", "url": "gsdf/Counterfeit-V2.0"},
9
+ {"name": "Counterfeit 3.0", "url": "stablediffusionapi/counterfeit-v30"},
10
+ {"name": "Dreamlike Anime", "url": "dreamlike-art/dreamlike-anime-1.0"},
11
+ {"name": "MeinaMix 7", "url": "Nacholmo/meinamixv7-diffusers"},
12
+ {"name": "Openjourney 4", "url": "prompthero/openjourney-v4"},
13
+ {"name": "OpenNiji", "url": "Korakoe/OpenNiji"},
14
+ {"name": "Pastel Mix", "url": "andite/pastel-mix"},
15
+ {"name": "Picasso Diffusion 1.1", "url": "aipicasso/picasso-diffusion-1-1"},
16
+ {"name": "Rev Anim", "url": "stablediffusionapi/rev-anim"},
17
+ {"name": "TMND mix", "url": "stablediffusionapi/tmnd-mix"},
18
+ {"name": "Waifu Diffusion", "url": "hakurei/waifu-diffusion"},
19
+ {"name": "-------- TOP MODELS -------", "url": "WarriorMama777/AbyssOrangeMix"},
20
+ {"name": "Abyss Orange Mix 2", "url": "WarriorMama777/AbyssOrangeMix2"},
21
+ {"name": "Anything 3.0", "url": "Linaqruf/anything-v3.0"},
22
+ {"name": "Anything 3.1", "url": "cag/anything-v3-1"},
23
+ {"name": "Anything 3X", "url": "iZELX1/Anything-V3-X"},
24
+ {"name": "Anything 4.0", "url": "andite/anything-v4.0"},
25
+ {"name": "Anything 5.0", "url": "stablediffusionapi/anything-v5"},
26
+ {"name": "Chillout App Factory","url": "stablediffusionapi/chillout-app-factory"},
27
+ {"name": "Classic Anime", "url": "nitrosocke/classic-anim-diffusion"},
28
+ {"name": "Cool Japan Diffusion 2.1.2", "url": "aipicasso/cool-japan-diffusion-2-1-2"},
29
+ {"name": "Counterfeit 2.0", "url": "gsdf/Counterfeit-V2.0"},
30
+ {"name": "Counterfeit 3.0", "url": "stablediffusionapi/counterfeit-v30"},
31
+ {"name": "CyberPunk Anime", "url": "DGSpitzer/Cyberpunk-Anime-Diffusion"},
32
+ {"name": "Dark Sushi Mix", "url": "stablediffusionapi/dark-sushi-mix"},
33
+ {"name": "Dreamlike Anime", "url": "dreamlike-art/dreamlike-anime-1.0"},
34
+ {"name": "Eimis Anime Diffusion", "url": "eimiss/EimisAnimeDiffusion_1.0v"},
35
+ {"name": "Ghibli Diffusion", "url": "nitrosocke/Ghibli-Diffusion"},
36
+ {"name": "GrapeFruit", "url": "iZELX1/Grapefruit"},
37
+ {"name": "GuoFeng 3", "url": "xiaolxl/GuoFeng3"},
38
+ {"name": "Meina Pastel", "url": "stablediffusionapi/meinapastel"},
39
+ {"name": "MeinaMix 7", "url": "Nacholmo/meinamixv7-diffusers"},
40
+ {"name": "Openjourney 4", "url": "prompthero/openjourney-v4"},
41
+ {"name": "OpenNiji", "url": "Korakoe/OpenNiji"},
42
+ {"name": "Pastel Mix", "url": "andite/pastel-mix"},
43
+ {"name": "Picasso Diffusion 1.1", "url": "aipicasso/picasso-diffusion-1-1"},
44
+ {"name": "Protogen 2.2", "url": "darkstorm2150/Protogen_v2.2_Official_Release"},
45
+ {"name": "Protogen Infinity", "url": "darkstorm2150/Protogen_Infinity_Official_Release"},
46
+ {"name": "Protogen X 3.4", "url": "darkstorm2150/Protogen_x3.4_Official_Release"},
47
+ {"name": "Rev Anim", "url": "stablediffusionapi/rev-anim"},
48
+ {"name": "TMND mix", "url": "stablediffusionapi/tmnd-mix"},
49
+ {"name": "Waifu Diffusion", "url": "hakurei/waifu-diffusion"},
50
+ {"name": "-------- ALL ANIME MODELS -------", "url": "WarriorMama777/AbyssOrangeMix"},
51
+ {"name": "7 Pa", "url": "AIARTCHAN/7pa"},
52
+ {"name": "A Certain Model", "url": "JosephusCheung/ACertainModel"},
53
+ {"name": "A Certain Thing", "url": "JosephusCheung/ACertainThing"},
54
+ {"name": "A Certainity", "url": "JosephusCheung/ACertainty"},
55
+ {"name": "Abyss Hell Hero", "url": "AIARTCHAN/AbyssHellHero"},
56
+ {"name": "Abyss Maple 3", "url": "AIARTCHAN/AbyssMapleVer3"},
57
+ {"name": "Abyss Orange Mix 2", "url": "WarriorMama777/AbyssOrangeMix2"},
58
+ {"name": "Abyss Orange Mix", "url": "WarriorMama777/AbyssOrangeMix"},
59
+ {"name": "AbyssHell 3", "url": "AIARTCHAN/AbyssHellVer3"},
60
+ {"name": "All 526 Animated", "url": "stablediffusionapi/all-526-animated"},
61
+ {"name": "Anidosmix 3", "url": "AIARTCHAN/anidosmixV2"},
62
+ {"name": "Anime Kawai Diffusion", "url": "Ojimi/anime-kawai-diffusion"},
63
+ {"name": "Anireal 3D V2", "url": "circulus/sd-anireal-3d-v2"},
64
+ {"name": "AnyLORA", "url": "kubanemil/AnyLORA"},
65
+ {"name": "Anything 2.1", "url": "swl-models/anything-v2.1"},
66
+ {"name": "Anything 3.0 Light", "url": "mm00/anything-v3.0-light"},
67
+ {"name": "Anything 3.0", "url": "Linaqruf/anything-v3.0"},
68
+ {"name": "Anything 3.1", "url": "cag/anything-v3-1"},
69
+ {"name": "Anything 3X", "url": "iZELX1/Anything-V3-X"},
70
+ {"name": "Anything 4.0", "url": "andite/anything-v4.0"},
71
+ {"name": "Anything 5.0", "url": "stablediffusionapi/anything-v5"},
72
+ {"name": "Anything Else 4", "url": "stablediffusionapi/anythingelse-v4"},
73
+ {"name": "Anything Else 5", "url": "stablediffusionapi/anything-v5"},
74
+ {"name": "Arcane Diffusion", "url": "nitrosocke/Arcane-Diffusion"},
75
+ {"name": "Archer Diffusion", "url": "nitrosocke/archer-diffusion"},
76
+ {"name": "Asian Mix", "url": "D1b4l4p/AsianMix"},
77
+ {"name": "Blood Orange Mix", "url": "WarriorMama777/BloodOrangeMix"},
78
+ {"name": "CamelliaMix 2.5D","url": "stablediffusionapi/camelliamix25d"},
79
+ {"name": "CamelliaMix Line","url": "stablediffusionapi/camelliamixline"},
80
+ {"name": "CamelliaMix","url": "Powidl43/CamelliaMix"},
81
+ {"name": "Cetusmix", "url": "stablediffusionapi/cetusmix"},
82
+ {"name": "Chik Mix", "url": "stablediffusionapi/chikmix"},
83
+ {"name": "Chikmix", "url": "stablediffusionapi/chikmix"},
84
+ {"name": "Chillout App Factory","url": "stablediffusionapi/chillout-app-factory"},
85
+ {"name": "Classic Anime", "url": "nitrosocke/classic-anim-diffusion"},
86
+ {"name": "Cool Japan Diffusion 2.1.2", "url": "aipicasso/cool-japan-diffusion-2-1-2"},
87
+ {"name": "Cosmic Babes", "url": "stablediffusionapi/cosmic-babes"},
88
+ {"name": "Counterfeit 1.0", "url": "gsdf/counterfeit-v1.0"},
89
+ {"name": "Counterfeit 2", "url": "gsdf/Counterfeit-V2.0"},
90
+ {"name": "Counterfeit 2.0", "url": "gsdf/Counterfeit-V2.0"},
91
+ {"name": "Counterfeit 3.0", "url": "stablediffusionapi/counterfeit-v30"},
92
+ {"name": "CuteSexyRobutts", "url": "andite/cutesexyrobutts-diffusion"},
93
+ {"name": "CyberPunk Anime", "url": "DGSpitzer/Cyberpunk-Anime-Diffusion"},
94
+ {"name": "Dark Sushi Mix", "url": "stablediffusionapi/dark-sushi-mix"},
95
+ {"name": "Dash Sushi 25d", "url": "stablediffusionapi/dark-sushi-25d"},
96
+ {"name": "Dreamlike Anime", "url": "dreamlike-art/dreamlike-anime-1.0"},
97
+ {"name": "DucHaiten Anime", "url": "DucHaiten/DucHaitenAnime"},
98
+ {"name": "Eerie Orange Mix", "url": "WarriorMama777/EerieOrangeMix"},
99
+ {"name": "Eimis Anime Diffusion", "url": "eimiss/EimisAnimeDiffusion_1.0v"},
100
+ {"name": "Ghibli Diffusion", "url": "nitrosocke/Ghibli-Diffusion"},
101
+ {"name": "GrapeFruit", "url": "iZELX1/Grapefruit"},
102
+ {"name": "GuoFeng 3", "url": "xiaolxl/GuoFeng3"},
103
+ {"name": "Guweiz Diffusion", "url": "andite/guweiz-diffusion"},
104
+ {"name": "Hiten Diffusion", "url": "andite/hiten-diffusion"},
105
+ {"name": "Icomix 2", "url": "stablediffusionapi/icomix-2"},
106
+ {"name": "InkPunk Diffusion", "url": "Envvi/Inkpunk-Diffusion"},
107
+ {"name": "Mama Orange Mixs", "url": "WarriorMama777/OrangeMixs"},
108
+ {"name": "Mashuu Diffusion", "url": "andite/mashuu-diffusion"},
109
+ {"name": "Meina Alter", "url": "stablediffusionapi/meinaalter"},
110
+ {"name": "Meina Pastel", "url": "stablediffusionapi/meinapastel"},
111
+ {"name": "MeinaMix 7", "url": "Nacholmo/meinamixv7-diffusers"},
112
+ {"name": "Mignon Diffusion", "url": "andite/mignon-diffusion"},
113
+ {"name": "MikaPikazo Diffusion", "url": "andite/mikapikazo-diffusion"},
114
+ {"name": "Mikapikazo", "url": "andite/mikapikazo-diffusion"},
115
+ {"name": "Mix Pro V4", "url": "AIARTCHAN/MIX-Pro-V4"},
116
+ {"name": "NeverEnding-Dream", "url": "Lykon/NeverEnding-Dream"},
117
+ {"name": "Openjourney 4", "url": "prompthero/openjourney-v4"},
118
+ {"name": "OpenNiji", "url": "Korakoe/OpenNiji"},
119
+ {"name": "Pastel Mix", "url": "andite/pastel-mix"},
120
+ {"name": "Picasso Diffusion 1.1", "url": "aipicasso/picasso-diffusion-1-1"},
121
+ {"name": "Piromizu Diffusion", "url": "andite/piromizu-diffusion"},
122
+ {"name": "Protogen 2.2", "url": "darkstorm2150/Protogen_v2.2_Official_Release"},
123
+ {"name": "Protogen Infinity", "url": "darkstorm2150/Protogen_Infinity_Official_Release"},
124
+ {"name": "Protogen X 3.4", "url": "darkstorm2150/Protogen_x3.4_Official_Release"},
125
+ {"name": "Rev Anim", "url": "stablediffusionapi/rev-anim"},
126
+ {"name": "Rev Animated", "url": "coreml/coreml-ReV-Animated"},
127
+ {"name": "Rev Animated", "url": "LottePeisch/RevAnimated-Diffusers"},
128
+ {"name": "Something V 2.2","url": "NoCrypt/SomethingV2_2"},
129
+ {"name": "Something V2","url": "NoCrypt/SomethingV2"},
130
+ {"name": "Three Delicacy", "url": "stablediffusionapi/three-delicacy"},
131
+ {"name": "Three Delicacy wonto", "url": "stablediffusionapi/three-delicacy-wonto"},
132
+ {"name": "TMND mix", "url": "stablediffusionapi/tmnd-mix"},
133
+ {"name": "Waifu Diffusion", "url": "hakurei/waifu-diffusion"}
134
+ ]
135
+
136
+ current_model = models[0]
137
+
138
+ text_gen = gr.Interface.load("spaces/daspartho/prompt-extend")
139
+
140
+ models2 = []
141
+ for model in models:
142
+ model_url = f"models/{model['url']}"
143
+ loaded_model = gr.Interface.load(model_url, live=True, preprocess=True)
144
+ models2.append(loaded_model)
145
+
146
+
147
+ def text_it(inputs, text_gen=text_gen):
148
+ return text_gen(inputs)
149
+
150
+
151
+ def set_model(current_model_index):
152
+ global current_model
153
+ current_model = models[current_model_index]
154
+ return gr.update(value=f"{current_model['name']}")
155
+
156
+
157
+ def send_it(inputs, model_choice):
158
+ proc = models2[model_choice]
159
+ return proc(inputs)
160
+
161
+
162
+ with gr.Blocks() as myface:
163
+ gr.HTML(
164
+
165
+ )
166
+
167
+ with gr.Row():
168
+ with gr.Row():
169
+ input_text = gr.Textbox(label="Prompt idea", placeholder="Eg. Cyber punk anime princess", lines=1)
170
+ # Model selection dropdown
171
+ model_name1 = gr.Dropdown(
172
+ label="Choose Model",
173
+ choices=[m["name"] for m in models],
174
+ type="index",
175
+ value=current_model["name"],
176
+ interactive=True,
177
+ )
178
+ with gr.Row():
179
+ see_prompts = gr.Button("Generate Prompts")
180
+ run = gr.Button("Generate Images", variant="primary")
181
+
182
+ with gr.Row():
183
+ output1 = gr.Image(label="")
184
+ output2 = gr.Image(label="")
185
+ output3 = gr.Image(label="")
186
+ with gr.Row():
187
+ magic1 = gr.Textbox(label="Generated Prompt", lines=2)
188
+ magic2 = gr.Textbox(label="Generated Prompt", lines=2)
189
+ magic3 = gr.Textbox(label="Generated Prompt", lines=2)
190
+ with gr.Row():
191
+ output4 = gr.Image(label="")
192
+ output5 = gr.Image(label="")
193
+ output6 = gr.Image(label="")
194
+ with gr.Row():
195
+ magic4 = gr.Textbox(label="Generated Prompt", lines=2)
196
+ magic5 = gr.Textbox(label="Generated Prompt", lines=2)
197
+ magic6 = gr.Textbox(label="Generated Prompt", lines=2)
198
+
199
+ model_name1.change(set_model, inputs=model_name1, outputs=[output1, output2, output3, output4, output5, output6])
200
+
201
+ run.click(send_it, inputs=[magic1, model_name1], outputs=[output1])
202
+ run.click(send_it, inputs=[magic2, model_name1], outputs=[output2])
203
+ run.click(send_it, inputs=[magic3, model_name1], outputs=[output3])
204
+ run.click(send_it, inputs=[magic4, model_name1], outputs=[output4])
205
+ run.click(send_it, inputs=[magic5, model_name1], outputs=[output5])
206
+ run.click(send_it, inputs=[magic6, model_name1], outputs=[output6])
207
+
208
+ see_prompts.click(text_it, inputs=[input_text], outputs=[magic1])
209
+ see_prompts.click(text_it, inputs=[input_text], outputs=[magic2])
210
+ see_prompts.click(text_it, inputs=[input_text], outputs=[magic3])
211
+ see_prompts.click(text_it, inputs=[input_text], outputs=[magic4])
212
+ see_prompts.click(text_it, inputs=[input_text], outputs=[magic5])
213
+ see_prompts.click(text_it, inputs=[input_text], outputs=[magic6])
214
+
215
+ myface.queue(concurrency_count=200)
216
+ myface.launch(inline=True, show_api=False, max_threads=400)