Lawrence-cj commited on
Commit
acf4855
1 Parent(s): cd3bf34

1. update examples;

Browse files
Files changed (2) hide show
  1. app.py +9 -7
  2. style.css +1 -8
app.py CHANGED
@@ -18,7 +18,7 @@ from diffusers_patches import pixart_sigma_init_patched_inputs, PixArtSigmaPipel
18
 
19
  DESCRIPTION = """![Logo](https://raw.githubusercontent.com/PixArt-alpha/PixArt-sigma-project/master/static/images/logo-sigma.png)
20
  # PixArt-Sigma 1024px
21
- #### [PixArt-Sigma 1024px](https://github.com/PixArt-alpha/PixArt-sigma) is a transformer-based text-to-image diffusion system trained on text embeddings from T5. This demo uses the [PixArt-alpha/PixArt-XL-2-1024-MS](https://huggingface.co/PixArt-alpha/PixArt-XL-2-1024-MS) checkpoint.
22
  #### English prompts ONLY; 提示词仅限英文
23
  #### Welcome to Star🌟 our [GitHub](https://github.com/PixArt-alpha/PixArt-sigma)
24
  ### <span style='color: red;'>You may change the DPM-Solver inference steps from 14 to 20, or DPM-Solver Guidance scale from 4.5 to 3.5 if you didn't get satisfied results.
@@ -217,17 +217,19 @@ def generate(
217
 
218
  examples = [
219
  "A small cactus with a happy face in the Sahara desert.",
 
 
 
 
 
 
220
  "an astronaut sitting in a diner, eating fries, cinematic, analog film",
221
  "Pirate ship trapped in a cosmic maelstrom nebula, rendered in cosmic beach whirlpool engine, volumetric lighting, spectacular, ambient lights, light pollution, cinematic atmosphere, art nouveau style, illustration art artwork by SenseiJaye, intricate detail.",
222
- "stars, water, brilliantly, gorgeous large scale scene, a little girl, in the style of dreamy realism, light gold and amber, blue and pink, brilliantly illuminated in the background.",
223
  "professional portrait photo of an anthropomorphic cat wearing fancy gentleman hat and jacket walking in autumn forest.",
224
- "beautiful lady, freckles, big smile, blue eyes, short ginger hair, dark makeup, wearing a floral blue vest top, soft light, dark grey background",
225
- "Spectacular Tiny World in the Transparent Jar On the Table, interior of the Great Hall, Elaborate, Carved Architecture, Anatomy, Symetrical, Geometric and Parameteric Details, Precision Flat line Details, Pattern, Dark fantasy, Dark errie mood and ineffably mysterious mood, Technical design, Intricate Ultra Detail, Ornate Detail, Stylized and Futuristic and Biomorphic Details, Architectural Concept, Low contrast Details, Cinematic Lighting, 8k, by moebius, Fullshot, Epic, Fullshot, Octane render, Unreal ,Photorealistic, Hyperrealism",
226
- "anthropomorphic profile of the white snow owl Crystal priestess , art deco painting, pretty and expressive eyes, ornate costume, mythical, ethereal, intricate, elaborate, hyperrealism, hyper detailed, 3D, 8K, Ultra Realistic, high octane, ultra resolution, amazing detail, perfection, In frame, photorealistic, cinematic lighting, visual clarity, shading , Lumen Reflections, Super-Resolution, gigapixel, color grading, retouch, enhanced, PBR, Blender, V-ray, Procreate, zBrush, Unreal Engine 5, cinematic, volumetric, dramatic, neon lighting, wide angle lens ,no digital painting blur",
227
  "The parametric hotel lobby is a sleek and modern space with plenty of natural light. The lobby is spacious and open with a variety of seating options. The front desk is a sleek white counter with a parametric design. The walls are a light blue color with parametric patterns. The floor is a light wood color with a parametric design. There are plenty of plants and flowers throughout the space. The overall effect is a calm and relaxing space. occlusion, moody, sunset, concept art, octane rendering, 8k, highly detailed, concept art, highly detailed, beautiful scenery, cinematic, beautiful light, hyperreal, octane render, hdr, long exposure, 8K, realistic, fog, moody, fire and explosions, smoke, 50mm f2.8",
228
  ]
229
 
230
- with gr.Blocks(css="scripts/style.css") as demo:
231
  gr.Markdown(DESCRIPTION)
232
  gr.DuplicateButton(
233
  value="Duplicate Space for private use",
@@ -245,7 +247,7 @@ with gr.Blocks(css="scripts/style.css") as demo:
245
  container=False,
246
  )
247
  run_button = gr.Button("Run", scale=0)
248
- result = gr.Gallery(label="Result", show_label=False)
249
  # with gr.Accordion("Advanced options", open=False):
250
  with gr.Group():
251
  with gr.Row():
 
18
 
19
  DESCRIPTION = """![Logo](https://raw.githubusercontent.com/PixArt-alpha/PixArt-sigma-project/master/static/images/logo-sigma.png)
20
  # PixArt-Sigma 1024px
21
+ #### [PixArt-Sigma 1024px](https://github.com/PixArt-alpha/PixArt-sigma) is a transformer-based text-to-image diffusion system trained on text embeddings from T5. This demo uses the [PixArt-alpha/PixArt-Sigma-XL-2-1024-MS](https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS) checkpoint.
22
  #### English prompts ONLY; 提示词仅限英文
23
  #### Welcome to Star🌟 our [GitHub](https://github.com/PixArt-alpha/PixArt-sigma)
24
  ### <span style='color: red;'>You may change the DPM-Solver inference steps from 14 to 20, or DPM-Solver Guidance scale from 4.5 to 3.5 if you didn't get satisfied results.
 
217
 
218
  examples = [
219
  "A small cactus with a happy face in the Sahara desert.",
220
+ "Eiffel Tower was Made up of more than 2 million translucent straws to look like a cloud, with the bell tower at the top of the building, Michel installed huge foam-making machines in the forest to blow huge amounts of unpredictable wet clouds in the building's classic architecture.",
221
+ "3D animation of a small, round, fluffy creature with big, expressive eyes explores a vibrant, enchanted forest. The creature, a whimsical blend of a rabbit and a squirrel, has soft blue fur and a bushy, striped tail. It hops along a sparkling stream, its eyes wide with wonder. The forest is alive with magical elements: flowers that glow and change colors, trees with leaves in shades of purple and silver, and small floating lights that resemble fireflies. The creature stops to interact playfully with a group of tiny, fairy-like beings dancing around a mushroom ring. The creature looks up in awe at a large, glowing tree that seems to be the heart of the forest.",
222
+ "Color photo of a corgi made of transparent glass, standing on the riverside in Yosemite National Park.",
223
+ "A close-up photo of a person. The subject is a woman. She wore a blue coat with a gray dress underneath. She has blue eyes and blond hair, and wears a pair of earrings. Behind are blurred city buildings and streets.",
224
+ "A litter of golden retriever puppies playing in the snow. Their heads pop out of the snow, covered in.",
225
+ "a handsome young boy in the middle with sky color background wearing eye glasses, it's super detailed with anime style, it's a portrait with delicated eyes and nice looking face",
226
  "an astronaut sitting in a diner, eating fries, cinematic, analog film",
227
  "Pirate ship trapped in a cosmic maelstrom nebula, rendered in cosmic beach whirlpool engine, volumetric lighting, spectacular, ambient lights, light pollution, cinematic atmosphere, art nouveau style, illustration art artwork by SenseiJaye, intricate detail.",
 
228
  "professional portrait photo of an anthropomorphic cat wearing fancy gentleman hat and jacket walking in autumn forest.",
 
 
 
229
  "The parametric hotel lobby is a sleek and modern space with plenty of natural light. The lobby is spacious and open with a variety of seating options. The front desk is a sleek white counter with a parametric design. The walls are a light blue color with parametric patterns. The floor is a light wood color with a parametric design. There are plenty of plants and flowers throughout the space. The overall effect is a calm and relaxing space. occlusion, moody, sunset, concept art, octane rendering, 8k, highly detailed, concept art, highly detailed, beautiful scenery, cinematic, beautiful light, hyperreal, octane render, hdr, long exposure, 8K, realistic, fog, moody, fire and explosions, smoke, 50mm f2.8",
230
  ]
231
 
232
+ with gr.Blocks(css="style.css") as demo:
233
  gr.Markdown(DESCRIPTION)
234
  gr.DuplicateButton(
235
  value="Duplicate Space for private use",
 
247
  container=False,
248
  )
249
  run_button = gr.Button("Run", scale=0)
250
+ result = gr.Gallery(label="Result", columns=NUM_IMAGES_PER_PROMPT, show_label=False)
251
  # with gr.Accordion("Advanced options", open=False):
252
  with gr.Group():
253
  with gr.Row():
style.css CHANGED
@@ -1,8 +1 @@
1
- .gradio-container{width:680px!important}
2
- .output-image {
3
- display: block;
4
- margin: auto;
5
- /*width: 512px;*/
6
- /*height: 512px;*/
7
- object-fit: cover;
8
- }
 
1
+ .gradio-container{width:1440px!important}