Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -1620,7 +1620,7 @@ if __name__ == "__main__":
|
|
1620 |
args = parser.parse_args()
|
1621 |
|
1622 |
pipe = AccDiffusionSDXLPipeline.from_pretrained(args.model_ckpt, torch_dtype=torch.float16).to("cuda")
|
1623 |
-
|
1624 |
|
1625 |
# GRADIO MODE
|
1626 |
|
@@ -1633,6 +1633,7 @@ if __name__ == "__main__":
|
|
1633 |
"n_cross_replace": {"default_": 1.0, "confetti": 0.8},
|
1634 |
}
|
1635 |
seed = args.seed
|
|
|
1636 |
generator = generator.manual_seed(seed)
|
1637 |
|
1638 |
print(f"Prompt: {prompt}")
|
@@ -1677,7 +1678,7 @@ if __name__ == "__main__":
|
|
1677 |
gr.HTML("""
|
1678 |
<div style="display:flex;column-gap:4px;">
|
1679 |
<a href='https://lzhxmu.github.io/accdiffusion/accdiffusion.html'>
|
1680 |
-
<img src='https://img.shields.io/badge/Project-Page-
|
1681 |
</a>
|
1682 |
<a href='https://github.com/lzhxmu/AccDiffusion'>
|
1683 |
<img src='https://img.shields.io/badge/Code-github-blue'>
|
@@ -1696,7 +1697,7 @@ if __name__ == "__main__":
|
|
1696 |
gr.Examples(
|
1697 |
examples = [
|
1698 |
["Astronaut on Mars during sunset."],
|
1699 |
-
["A
|
1700 |
["A cute corgi on the lawn."],
|
1701 |
],
|
1702 |
inputs = [prompt]
|
|
|
1620 |
args = parser.parse_args()
|
1621 |
|
1622 |
pipe = AccDiffusionSDXLPipeline.from_pretrained(args.model_ckpt, torch_dtype=torch.float16).to("cuda")
|
1623 |
+
|
1624 |
|
1625 |
# GRADIO MODE
|
1626 |
|
|
|
1633 |
"n_cross_replace": {"default_": 1.0, "confetti": 0.8},
|
1634 |
}
|
1635 |
seed = args.seed
|
1636 |
+
generator = torch.Generator(device='cuda')
|
1637 |
generator = generator.manual_seed(seed)
|
1638 |
|
1639 |
print(f"Prompt: {prompt}")
|
|
|
1678 |
gr.HTML("""
|
1679 |
<div style="display:flex;column-gap:4px;">
|
1680 |
<a href='https://lzhxmu.github.io/accdiffusion/accdiffusion.html'>
|
1681 |
+
<img src='https://img.shields.io/badge/Project-Page-green'>
|
1682 |
</a>
|
1683 |
<a href='https://github.com/lzhxmu/AccDiffusion'>
|
1684 |
<img src='https://img.shields.io/badge/Code-github-blue'>
|
|
|
1697 |
gr.Examples(
|
1698 |
examples = [
|
1699 |
["Astronaut on Mars during sunset."],
|
1700 |
+
["A fox peeking out from behind a bush."],
|
1701 |
["A cute corgi on the lawn."],
|
1702 |
],
|
1703 |
inputs = [prompt]
|