esab commited on
Commit
c4d8798
·
verified ·
1 Parent(s): e9bf074

fix: remove pale background from negative prompt, disable by default

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -75,8 +75,9 @@ def load_pipeline():
75
 
76
 
77
  # Default negative prompt to avoid common issues
 
78
  DEFAULT_NEGATIVE_PROMPT = (
79
- "white background, pale background, washed out, overexposed, "
80
  "low contrast, blurry, out of focus, multiple cells, overlapping cells, "
81
  "artifacts, noise, low quality, deformed"
82
  )
@@ -172,9 +173,9 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Soft(primary_hue="red")) as demo:
172
  gr.Markdown("---")
173
 
174
  use_negative_checkbox = gr.Checkbox(
175
- value=True,
176
  label="Use Negative Prompt",
177
- info="Enable to steer generation away from unwanted characteristics"
178
  )
179
  negative_prompt_box = gr.Textbox(
180
  value=DEFAULT_NEGATIVE_PROMPT,
 
75
 
76
 
77
  # Default negative prompt to avoid common issues
78
+ # Note: Training data from CellaVision DM96/9600 has palid yellow background (desired)
79
  DEFAULT_NEGATIVE_PROMPT = (
80
+ "white background, washed out, overexposed, "
81
  "low contrast, blurry, out of focus, multiple cells, overlapping cells, "
82
  "artifacts, noise, low quality, deformed"
83
  )
 
173
  gr.Markdown("---")
174
 
175
  use_negative_checkbox = gr.Checkbox(
176
+ value=False,
177
  label="Use Negative Prompt",
178
+ info="Enable to steer generation away from unwanted characteristics (e.g., white backgrounds, blur)"
179
  )
180
  negative_prompt_box = gr.Textbox(
181
  value=DEFAULT_NEGATIVE_PROMPT,