ginipick commited on
Commit
3989673
·
verified ·
1 Parent(s): 6c4e820

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -28
app.py CHANGED
@@ -1679,36 +1679,18 @@ if __name__ == "__main__":
1679
  """
1680
 
1681
  MAX_SEED = np.iinfo(np.int32).max
 
 
 
 
 
 
 
 
1682
 
1683
- with gr.Blocks(css=css) as demo:
1684
  with gr.Column(elem_id="col-container"):
1685
- gr.Markdown("# AccDiffusion: An Accurate Method for Higher-Resolution Image Generation")
1686
- gr.Markdown("### Paper Abstract")
1687
- gr.Markdown("""
1688
- This paper attempts to address the object repetition issue in patch-wise higher-resolution image generation.
1689
- We propose AccDiffusion, an accurate method for patch-wise higher-resolution image generation without training.
1690
- An in-depth analysis in this paper reveals an identical text prompt for different patches causes repeated object generation, while no prompt compromises the image details.
1691
- Therefore, our AccDiffusion, for the first time, proposes to decouple the vanilla image-content-aware prompt into a set of patch-content-aware prompts, each of which serves as a more precise description of an image patch.
1692
- Besides, AccDiffusion also introduces dilated sampling with window interaction for better global consistency in higher-resolution image generation.
1693
- Experimental comparison with existing methods demonstrates that our AccDiffusion effectively addresses the issue of repeated object generation and leads to better performance in higher-resolution image generation.
1694
- """)
1695
- gr.HTML("""
1696
- <div style="display:flex;column-gap:4px;">
1697
- <a href='https://lzhxmu.github.io/accdiffusion/accdiffusion.html'>
1698
- <img src='https://img.shields.io/badge/Project-Page-green'>
1699
- </a>
1700
- <a href='https://github.com/lzhxmu/AccDiffusion'>
1701
- <img src='https://img.shields.io/badge/Code-github-blue'>
1702
- </a>
1703
- <a href='https://arxiv.org/abs/2407.10738v1'>
1704
- <img src='https://img.shields.io/badge/Paper-Arxiv-red'>
1705
- </a>
1706
- <a href='https://huggingface.co/papers/2407.10738'>
1707
- <img src='https://img.shields.io/badge/Papers-HF-ffd21f'>
1708
- </a>
1709
-
1710
- </div>
1711
- """)
1712
  with gr.Group():
1713
  with gr.Row():
1714
  prompt = gr.Textbox(label="Prompt", scale=4)
 
1679
  """
1680
 
1681
  MAX_SEED = np.iinfo(np.int32).max
1682
+
1683
+
1684
+ css = """
1685
+ footer {
1686
+ visibility: hidden;
1687
+ }
1688
+ """
1689
+
1690
 
1691
+ with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css) as demo:
1692
  with gr.Column(elem_id="col-container"):
1693
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1694
  with gr.Group():
1695
  with gr.Row():
1696
  prompt = gr.Textbox(label="Prompt", scale=4)