RoniFinTech commited on
Commit
4598c6c
1 Parent(s): 7963de3
routers/intference/stable_diffusion.py CHANGED
@@ -35,10 +35,12 @@ async def generate(prompt: str):
35
  """
36
  generate image
37
  """
 
38
  # Define how many steps and what % of steps to be run on each experts (80/20) here
39
  n_steps = 40
40
  high_noise_frac = 0.8
41
- negative = "drawing, painting, crayon, sketch, graphite, impressionist, noisy, blurry, soft, deformed, ugly. bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, disgusting, poorly drawn hands, missing limb, floating limbs, disconnected limbs, malformed hands, blurry, mutated hands and fingers, watermark, watermarked, oversaturated, censored, distorted hands, amputation, missing hands, obese, doubled face, double hands, two women, anime style, cartoon, toon. multiple people."
 
42
  # prompt = "Designs should play with different textures and layering but stick to a monochrome palette. Think leather jackets over mesh tops, or satin draped over matte cotton. in a studio. zoomed-in. single model."
43
 
44
  # run both experts
 
35
  """
36
  generate image
37
  """
38
+ print(prompt)
39
  # Define how many steps and what % of steps to be run on each experts (80/20) here
40
  n_steps = 40
41
  high_noise_frac = 0.8
42
+ negative = "disfigured, ugly, bad, immature, cartoon, anime, 3d, painting, b&w, sketch, blurry, deformed, bad anatomy, poorly drawn face, mutation, multiple people."
43
+ # "drawing, painting, crayon, sketch, graphite, impressionist, noisy, blurry, soft, deformed, ugly. bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, disgusting, poorly drawn hands, missing limb, floating limbs, disconnected limbs, malformed hands, blurry, mutated hands and fingers, watermark, watermarked, oversaturated, censored, distorted hands, amputation, missing hands, obese, doubled face, double hands, two women, anime style, cartoon, toon. multiple people."
44
  # prompt = "Designs should play with different textures and layering but stick to a monochrome palette. Think leather jackets over mesh tops, or satin draped over matte cotton. in a studio. zoomed-in. single model."
45
 
46
  # run both experts