Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ model = TSR.from_pretrained(
|
|
44 |
config_name="config.yaml",
|
45 |
weight_name="model.ckpt",
|
46 |
)
|
47 |
-
model.renderer.set_chunk_size(
|
48 |
model.to(device)
|
49 |
|
50 |
rembg_session = rembg.new_session()
|
@@ -128,7 +128,7 @@ def generate_image_from_text(pos_prompt, seed):
|
|
128 |
new_prompt = gen_pos_prompt(pos_prompt)
|
129 |
# print(new_prompt)
|
130 |
# neg_prompt = '''Detailed, complex textures, intricate patterns, realistic lighting, high contrast, reflections, fuzzy surface, realistic proportions, photographic quality, vibrant colors, detailed background, shadows, disfigured, deformed, ugly, multiple, duplicate.'''
|
131 |
-
neg_prompt = '''
|
132 |
# neg_prompt = '''Complex patterns, realistic lighting, high contrast, reflections, fuzzy, photographic, vibrant, detailed, shadows, disfigured, duplicate.'''
|
133 |
|
134 |
parameters = {
|
|
|
44 |
config_name="config.yaml",
|
45 |
weight_name="model.ckpt",
|
46 |
)
|
47 |
+
model.renderer.set_chunk_size(124218)
|
48 |
model.to(device)
|
49 |
|
50 |
rembg_session = rembg.new_session()
|
|
|
128 |
new_prompt = gen_pos_prompt(pos_prompt)
|
129 |
# print(new_prompt)
|
130 |
# neg_prompt = '''Detailed, complex textures, intricate patterns, realistic lighting, high contrast, reflections, fuzzy surface, realistic proportions, photographic quality, vibrant colors, detailed background, shadows, disfigured, deformed, ugly, multiple, duplicate.'''
|
131 |
+
neg_prompt = '''Out of frame, blurry, ugly, cropped, reflections, detailed background, shadows, disfigured, deformed, ugly, multiple, duplicate.'''
|
132 |
# neg_prompt = '''Complex patterns, realistic lighting, high contrast, reflections, fuzzy, photographic, vibrant, detailed, shadows, disfigured, duplicate.'''
|
133 |
|
134 |
parameters = {
|