vibs08 commited on
Commit
dc0e845
·
verified ·
1 Parent(s): 9ab9451

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(104218)
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 = '''Complex textures, intricate patterns, realistic lighting, high contrast, reflections, fuzzy surface, photographic quality, vibrant colors, 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 = {
 
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 = {