jychen0828 commited on
Commit
e73313a
·
verified ·
1 Parent(s): 9c46709

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -4
app.py CHANGED
@@ -88,7 +88,7 @@ with gr.Blocks(css=css) as demo:
88
  with gr.Group():
89
  prompt = gr.Textbox(
90
  label="Prompt",
91
- value="portrait photo of a girl, photograph, highly detailed face, depth of field, moody light, golden hour, style by Dan Winters, Russell James, Steve McCurry, centered, extremely detailed, Nikon D850, award winning photography",
92
  lines=3
93
  )
94
 
@@ -102,7 +102,7 @@ with gr.Blocks(css=css) as demo:
102
  steps = gr.Slider(label="Inference Steps", minimum=4, maximum=10, step=1, value=8)
103
  scales = gr.Slider(label="Guidance Scale", minimum=0.0, maximum=3.5, step=0.1, value=2.0)
104
  with gr.Row():
105
- seed = gr.Number(label="Seed", value=3420, precision=0)
106
  with gr.Row():
107
  acc = gr.Dropdown(
108
  label="Accelerate Lora",
@@ -116,14 +116,22 @@ with gr.Blocks(css=css) as demo:
116
  output = gr.Image(label="Your Generated Image")
117
 
118
  person="Portrait of a girl, high-end photography, prominent facial details, significant depth of field, soft lighting, late afternoon sun, in the style of Richard Avedon, Henri Cartier-Bresson, and Yousuf Karsh. Golden ratio composition, exquisite detail, Hasselblad H6D-100c, featured on the cover of photography magazines."
 
 
119
  dog="Portrait photo of a Shiba Inu, photograph, highly detailed fur, warm and cheerful light, soft pastel tones, vibrant and sunny atmosphere, style by Tim Flach, bright daylight, natural setting, centered, extremely detailed, Nikon D850, award-winning photography"
 
120
  # scenery="A high-detail shot of the sea and sky, capturing the vibrant blues and crisp sunlight. Shot with a Canon 5D Mark IV, award-winning photography."
121
- scenery="Capture the golden hour's warm embrace on a sandy beach with a Nikon D850, highlighting the vibrant blues and the soft, golden sunlight. This award-winning photography captures the essence of a summer sunset by the coast."
 
122
  gr.Examples(
123
  examples=[
124
  [person, "TDD", 1024, 1024, 8, 2, 8888],
 
 
125
  [dog, "TDD", 1024, 1024, 6, 2, 29],
126
- [scenery, "TDD", 1024, 1024, 6, 2.2, 3777],
 
 
127
  ],
128
  # inputs=[prompt, negative_prompt, ckpt, acc, steps, guidance_scale, eta, seed],
129
  inputs=[prompt,acc, height, width, steps, scales, seed],
 
88
  with gr.Group():
89
  prompt = gr.Textbox(
90
  label="Prompt",
91
+ # value="portrait photo of a girl, photograph, highly detailed face, depth of field, moody light, golden hour, style by Dan Winters, Russell James, Steve McCurry, centered, extremely detailed, Nikon D850, award winning photography",
92
  lines=3
93
  )
94
 
 
102
  steps = gr.Slider(label="Inference Steps", minimum=4, maximum=10, step=1, value=8)
103
  scales = gr.Slider(label="Guidance Scale", minimum=0.0, maximum=3.5, step=0.1, value=2.0)
104
  with gr.Row():
105
+ seed = gr.Number(label="Seed", value=-1, precision=0)
106
  with gr.Row():
107
  acc = gr.Dropdown(
108
  label="Accelerate Lora",
 
116
  output = gr.Image(label="Your Generated Image")
117
 
118
  person="Portrait of a girl, high-end photography, prominent facial details, significant depth of field, soft lighting, late afternoon sun, in the style of Richard Avedon, Henri Cartier-Bresson, and Yousuf Karsh. Golden ratio composition, exquisite detail, Hasselblad H6D-100c, featured on the cover of photography magazines."
119
+ person2="A high-end, close-up portrait of a young woman and a man outdoors in soft, golden late afternoon sunlight. The woman is wearing an orange jacket, and the man is wearing a black jacket. The focus is on their faces, featuring ultra-high-resolution details such as skin texture, natural facial expressions, and realistic lighting. The image has a shallow depth of field to emphasize the sharpness of their facial features while softly blurring the background. Captured in the style of professional magazine photography with golden ratio composition, exquisite clarity, and a modern touch. The atmosphere is warm, serene, and natural."
120
+ person1="Snowy Lake Portrait, fine-art photography, capturing a woman's serene expression with intricate facial features, against a backdrop of a frosted lake at twilight. The shallow depth of field isolates the subject from the softly lit, ambient snowscape. Inspired by the styles of Annie Leibovitz, Joe McNally, and David LaChapelle, this centered composition is extremely detailed, shot on a Nikon D850, and worthy of a photography magazine cover."
121
  dog="Portrait photo of a Shiba Inu, photograph, highly detailed fur, warm and cheerful light, soft pastel tones, vibrant and sunny atmosphere, style by Tim Flach, bright daylight, natural setting, centered, extremely detailed, Nikon D850, award-winning photography"
122
+ bird="Seize the moment with a high-detail shot of a crane's majestic flight using a Nikon D850. The 45.7-megapixel sensor ensures sharp feather detail. Paired with a Nikkor 600mm f/4E FL ED VR lens, the setup captures the bird with a fast shutter speed against a serene wetland backdrop. Low ISO maintains image clarity, and a shallow depth of field isolates the crane, making it a standout in wildlife photography."
123
  # scenery="A high-detail shot of the sea and sky, capturing the vibrant blues and crisp sunlight. Shot with a Canon 5D Mark IV, award-winning photography."
124
+ scenery1="Capture the golden hour's warm embrace on a sandy beach with a Nikon D850, highlighting the vibrant blues and the soft, golden sunlight. This award-winning photography captures the essence of a summer sunset by the coast."
125
+ scenery2="A high-detail close-up of the Forbidden City's architectural details, with snowflakes gracefully falling. Shot on a Nikon D850, the 45.7-megapixel sensor captures the scene's bright warmth. A fast shutter speed at a low ISO freezes the snowflakes, ensuring a crisp, vivid image. Ideal for a winter magazine feature."
126
  gr.Examples(
127
  examples=[
128
  [person, "TDD", 1024, 1024, 8, 2, 8888],
129
+ [person1, "TDD", 1024, 1024, 6, 2, 2929],
130
+ [person2, "TDD", 1024, 1024, 8, 2, 8888],
131
  [dog, "TDD", 1024, 1024, 6, 2, 29],
132
+ [bird,"TDD", 1024, 1024, 8, 2.2, 7777]
133
+ [scenery1, "TDD", 1024, 1024, 6, 2.2, 3777],
134
+ [scenery2, "TDD", 1024, 1024, 6, 1.8, 3420],
135
  ],
136
  # inputs=[prompt, negative_prompt, ckpt, acc, steps, guidance_scale, eta, seed],
137
  inputs=[prompt,acc, height, width, steps, scales, seed],