Spaces:
Sleeping
Sleeping
added/updated app files
Browse files- modules/engine_v2.py +5 -5
- modules/models_v2.py +1 -1
- modules/styles_v2.py +1 -0
modules/engine_v2.py
CHANGED
@@ -32,7 +32,7 @@ def gen_v2(prompt, model, style, size, quality, seed_type, seed_num):
|
|
32 |
try:
|
33 |
response = requests.post(mode['generate'], headers=head, files=data, timeout=(60, 60))
|
34 |
|
35 |
-
if model != 'Turbo
|
36 |
print(reject())
|
37 |
return None
|
38 |
|
@@ -84,8 +84,8 @@ def gen_v2(prompt, model, style, size, quality, seed_type, seed_num):
|
|
84 |
return None
|
85 |
|
86 |
def quads_v2(a, b, c, d, e, f, g, h, progress=ui.Progress()):
|
87 |
-
if b != 'Turbo
|
88 |
-
elif b == 'Turbo
|
89 |
else: quantities = 1
|
90 |
|
91 |
result_list = [None] * quantities
|
@@ -112,6 +112,6 @@ def quads_v2(a, b, c, d, e, f, g, h, progress=ui.Progress()):
|
|
112 |
|
113 |
successful_results = [result for result in result_list if result is not None]
|
114 |
|
115 |
-
if b != 'Turbo
|
116 |
-
elif b == 'Turbo
|
117 |
else: return successful_results, ui.Gallery(columns=1, rows=1)
|
|
|
32 |
try:
|
33 |
response = requests.post(mode['generate'], headers=head, files=data, timeout=(60, 60))
|
34 |
|
35 |
+
if model != 'Turbo V3' and len(response.content) < 65 * 1024:
|
36 |
print(reject())
|
37 |
return None
|
38 |
|
|
|
84 |
return None
|
85 |
|
86 |
def quads_v2(a, b, c, d, e, f, g, h, progress=ui.Progress()):
|
87 |
+
if b != 'Turbo V3' and g == 'Randomized': quantities = 2
|
88 |
+
elif b == 'Turbo V3' and g == 'Randomized': quantities = 6
|
89 |
else: quantities = 1
|
90 |
|
91 |
result_list = [None] * quantities
|
|
|
112 |
|
113 |
successful_results = [result for result in result_list if result is not None]
|
114 |
|
115 |
+
if b != 'Turbo V3' and g == 'Randomized': return successful_results, ui.Gallery(columns=1, rows=2)
|
116 |
+
elif b == 'Turbo V3' and g == 'Randomized': return successful_results, ui.Gallery(columns=2, rows=3)
|
117 |
else: return successful_results, ui.Gallery(columns=1, rows=1)
|
modules/models_v2.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
ckpt_v2 = {
|
2 |
'Anime V2': '34',
|
3 |
'Toon V2': '36',
|
4 |
-
'Turbo V2': '128',
|
5 |
'Realistic V2': '124',
|
6 |
'Creative V2-a': '33',
|
7 |
'Creative V2-b': '35',
|
8 |
'Toon V3': '39',
|
|
|
9 |
'Creative V3': '126',
|
10 |
'Realistic V3': '12000',
|
11 |
'SDXL': '122'
|
|
|
1 |
ckpt_v2 = {
|
2 |
'Anime V2': '34',
|
3 |
'Toon V2': '36',
|
|
|
4 |
'Realistic V2': '124',
|
5 |
'Creative V2-a': '33',
|
6 |
'Creative V2-b': '35',
|
7 |
'Toon V3': '39',
|
8 |
+
'Turbo V3': '128',
|
9 |
'Creative V3': '126',
|
10 |
'Realistic V3': '12000',
|
11 |
'SDXL': '122'
|
modules/styles_v2.py
CHANGED
@@ -6,6 +6,7 @@ stella_v2 = {
|
|
6 |
'STELLA Photograph': {'prompt': 'photograph {prompt}, 50mm . cinematic 4k epic detailed 4k epic detailed photograph shot on kodak detailed cinematic hbo dark moody, 35mm photo, grainy, vignette, vintage, Kodachrome, Lomography, stained, highly detailed, found footage', 'negative_prompt': 'hands, Brad Pitt, bokeh, depth of field, blurry, cropped, regular face, saturated, contrast, deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime, text, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck'},
|
7 |
'STELLA Cinematic': {'prompt': 'cinematic still {prompt} . emotional, harmonious, vignette, highly detailed, high budget, bokeh, cinemascope, moody, epic, gorgeous, film grain, grainy', 'negative_prompt': 'hands, anime, cartoon, graphic, text, painting, crayon, graphite, abstract, glitch, deformed, mutated, ugly, disfigured'},
|
8 |
'90s Yearbook': {'prompt': 'Photo of a {prompt} in high school yearbook photoshoot, simple colored background. This is a high school yearbook photo from the 1988. Retro look style.', 'negative_prompt': 'hands, deformed, bad anatomy, disfigured, poorly drawn face, mutated, extra limb, ugly, poorly drawn hands, missing limb, floating limbs, disconnected limbs, disconnected head, malformed hands, long neck, mutated hands and fingers, bad hands, missing fingers, cropped, worst quality, low quality, mutation, poorly drawn, huge calf, bad hands, fused hand, missing hand, disappearing arms, disappearing thigh, disappearing calf, disappearing legs, missing fingers, fused fingers, abnormal eye proportion, Abnormal hands, abnormal legs, abnormal feet, abnormal fingers, drawing, painting, crayon, sketch, graphite, impressionist, noisy, blurry, soft, deformed, ugly, anime, cartoon, graphic, text, painting, crayon, graphite, abstract, glitch'},
|
|
|
9 |
'Vintage Japanese Poster': {'prompt': 'beautiful classic japanese anime movie poster of {prompt}, japanese poster title, vintage', 'negative_prompt': 'hands, deformed, bad anatomy, disfigured, poorly drawn face, mutated, extra limb, ugly, poorly drawn hands, missing limb, floating limbs, disconnected limbs, disconnected head, malformed hands, long neck, mutated hands and fingers, bad hands, missing fingers, cropped, worst quality, low quality, mutation, poorly drawn, huge calf, bad hands, fused hand, missing hand, disappearing arms, disappearing thigh, disappearing calf, disappearing legs, missing fingers, fused fingers, abnormal eye proportion, Abnormal hands, abnormal legs, abnormal feet, abnormal fingers, drawing, painting, crayon, sketch, graphite, impressionist, noisy, blurry, soft, deformed, ugly, anime, cartoon, graphic, text, painting, crayon, graphite, abstract, glitch'},
|
10 |
'Satin Sportsuit': {'prompt': '{prompt} wearing satin sportsuit, sporty and rich, canon dslr, night street, rim light, raytraced lighting', 'negative_prompt': 'hands, deformed, bad anatomy, disfigured, poorly drawn face, mutated, extra limb, ugly, poorly drawn hands, missing limb, floating limbs, disconnected limbs, disconnected head, malformed hands, long neck, mutated hands and fingers, bad hands, missing fingers, cropped, worst quality, low quality, mutation, poorly drawn, huge calf, bad hands, fused hand, missing hand, disappearing arms, disappearing thigh, disappearing calf, disappearing legs, missing fingers, fused fingers, abnormal eye proportion, Abnormal hands, abnormal legs, abnormal feet, abnormal fingers, drawing, painting, crayon, sketch, graphite, impressionist, noisy, blurry, soft, deformed, ugly, anime, cartoon, graphic, text, painting, crayon, graphite, abstract, glitch'},
|
11 |
'3D Model': {'prompt': 'professional 3d model {prompt} . octane render, highly detailed, volumetric, dramatic lighting', 'negative_prompt': 'hands, ugly, deformed, noisy, low poly, blurry, painting'},
|
|
|
6 |
'STELLA Photograph': {'prompt': 'photograph {prompt}, 50mm . cinematic 4k epic detailed 4k epic detailed photograph shot on kodak detailed cinematic hbo dark moody, 35mm photo, grainy, vignette, vintage, Kodachrome, Lomography, stained, highly detailed, found footage', 'negative_prompt': 'hands, Brad Pitt, bokeh, depth of field, blurry, cropped, regular face, saturated, contrast, deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime, text, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck'},
|
7 |
'STELLA Cinematic': {'prompt': 'cinematic still {prompt} . emotional, harmonious, vignette, highly detailed, high budget, bokeh, cinemascope, moody, epic, gorgeous, film grain, grainy', 'negative_prompt': 'hands, anime, cartoon, graphic, text, painting, crayon, graphite, abstract, glitch, deformed, mutated, ugly, disfigured'},
|
8 |
'90s Yearbook': {'prompt': 'Photo of a {prompt} in high school yearbook photoshoot, simple colored background. This is a high school yearbook photo from the 1988. Retro look style.', 'negative_prompt': 'hands, deformed, bad anatomy, disfigured, poorly drawn face, mutated, extra limb, ugly, poorly drawn hands, missing limb, floating limbs, disconnected limbs, disconnected head, malformed hands, long neck, mutated hands and fingers, bad hands, missing fingers, cropped, worst quality, low quality, mutation, poorly drawn, huge calf, bad hands, fused hand, missing hand, disappearing arms, disappearing thigh, disappearing calf, disappearing legs, missing fingers, fused fingers, abnormal eye proportion, Abnormal hands, abnormal legs, abnormal feet, abnormal fingers, drawing, painting, crayon, sketch, graphite, impressionist, noisy, blurry, soft, deformed, ugly, anime, cartoon, graphic, text, painting, crayon, graphite, abstract, glitch'},
|
9 |
+
'DVD Screengrab': {'prompt': 'DVD screengrab from the movie {prompt}, 1990', 'negative_prompt': 'hands, deformed, bad anatomy, disfigured, poorly drawn face, mutated, extra limb, ugly, poorly drawn hands, missing limb, floating limbs, disconnected limbs, disconnected head, malformed hands, long neck, mutated hands and fingers, bad hands, missing fingers, cropped, worst quality, low quality, mutation, poorly drawn, huge calf, bad hands, fused hand, missing hand, disappearing arms, disappearing thigh, disappearing calf, disappearing legs, missing fingers, fused fingers, abnormal eye proportion, Abnormal hands, abnormal legs, abnormal feet, abnormal fingers, drawing, painting, crayon, sketch, graphite, impressionist, noisy, blurry, soft, deformed, ugly, anime, cartoon, graphic, text, painting, crayon, graphite, abstract, glitch'},
|
10 |
'Vintage Japanese Poster': {'prompt': 'beautiful classic japanese anime movie poster of {prompt}, japanese poster title, vintage', 'negative_prompt': 'hands, deformed, bad anatomy, disfigured, poorly drawn face, mutated, extra limb, ugly, poorly drawn hands, missing limb, floating limbs, disconnected limbs, disconnected head, malformed hands, long neck, mutated hands and fingers, bad hands, missing fingers, cropped, worst quality, low quality, mutation, poorly drawn, huge calf, bad hands, fused hand, missing hand, disappearing arms, disappearing thigh, disappearing calf, disappearing legs, missing fingers, fused fingers, abnormal eye proportion, Abnormal hands, abnormal legs, abnormal feet, abnormal fingers, drawing, painting, crayon, sketch, graphite, impressionist, noisy, blurry, soft, deformed, ugly, anime, cartoon, graphic, text, painting, crayon, graphite, abstract, glitch'},
|
11 |
'Satin Sportsuit': {'prompt': '{prompt} wearing satin sportsuit, sporty and rich, canon dslr, night street, rim light, raytraced lighting', 'negative_prompt': 'hands, deformed, bad anatomy, disfigured, poorly drawn face, mutated, extra limb, ugly, poorly drawn hands, missing limb, floating limbs, disconnected limbs, disconnected head, malformed hands, long neck, mutated hands and fingers, bad hands, missing fingers, cropped, worst quality, low quality, mutation, poorly drawn, huge calf, bad hands, fused hand, missing hand, disappearing arms, disappearing thigh, disappearing calf, disappearing legs, missing fingers, fused fingers, abnormal eye proportion, Abnormal hands, abnormal legs, abnormal feet, abnormal fingers, drawing, painting, crayon, sketch, graphite, impressionist, noisy, blurry, soft, deformed, ugly, anime, cartoon, graphic, text, painting, crayon, graphite, abstract, glitch'},
|
12 |
'3D Model': {'prompt': 'professional 3d model {prompt} . octane render, highly detailed, volumetric, dramatic lighting', 'negative_prompt': 'hands, ugly, deformed, noisy, low poly, blurry, painting'},
|