amildravid4292 commited on
Commit
311a7f2
·
verified ·
1 Parent(s): f596e77

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -0
app.py CHANGED
@@ -490,4 +490,23 @@ with gr.Blocks(css="style.css") as demo:
490
  )
491
  file_input.change(fn=file_upload, inputs=file_input, outputs = input_image)
492
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
493
  demo.queue().launch()
 
490
  )
491
  file_input.change(fn=file_upload, inputs=file_input, outputs = input_image)
492
 
493
+
494
+
495
+ help_text = """
496
+ If you're not getting what you want, there may be a few reasons:
497
+ 1. Is the image not changing enough? Your Image CFG weight may be too high. This value dictates how similar the output should be to the input. It's possible your edit requires larger changes from the original image, and your Image CFG weight isn't allowing that. Alternatively, your Text CFG weight may be too low. This value dictates how much to listen to the text instruction. The default Image CFG of 1.5 and Text CFG of 7.5 are a good starting point, but aren't necessarily optimal for each edit. Try:
498
+ * Decreasing the Image CFG weight, or
499
+ * Increasing the Text CFG weight, or
500
+ 2. Conversely, is the image changing too much, such that the details in the original image aren't preserved? Try:
501
+ * Increasing the Image CFG weight, or
502
+ * Decreasing the Text CFG weight
503
+ 3. Try generating results with different random seeds by setting "Randomize Seed" and running generation multiple times. You can also try setting "Randomize CFG" to sample new Text CFG and Image CFG values each time.
504
+ 4. Rephrasing the instruction sometimes improves results (e.g., "turn him into a dog" vs. "make him a dog" vs. "as a dog").
505
+ 5. Increasing the number of steps sometimes improves results.
506
+ 6. Do faces look weird? The Stable Diffusion autoencoder has a hard time with faces that are small in the image. Try:
507
+ * Cropping the image so the face takes up a larger portion of the frame.
508
+ """
509
+
510
+ gr.Markdown(help_text)
511
+
512
  demo.queue().launch()