Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,11 +15,6 @@ torch.cuda.max_memory_allocated(device=device)
|
|
15 |
pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-3.5-medium", torch_dtype=torch.float16).to(device)
|
16 |
#pipe.enable_xformers_memory_efficient_attention()
|
17 |
torch.cuda.empty_cache()
|
18 |
-
#pipe.enable_model_cpu_offload()
|
19 |
-
#torch.cuda.max_memory_allocated(device=device)
|
20 |
-
#refiner = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-refiner-1.0", use_safetensors=True, torch_dtype=torch.float16, variant="fp16").to(device)
|
21 |
-
#refiner.enable_xformers_memory_efficient_attention()
|
22 |
-
#torch.cuda.empty_cache()
|
23 |
|
24 |
|
25 |
def genie (Prompt, negative_prompt, height, width, scale, steps, seed):
|
@@ -39,6 +34,6 @@ gr.Interface(fn=genie, inputs=[gr.Textbox(label='What you want the AI to generat
|
|
39 |
gr.Slider(10, maximum=50, value=25, step=5, label='Number of Prior Iterations'),
|
40 |
gr.Slider(minimum=0, step=1, maximum=9999999999999999, randomize=True, label='Seed: 0 is Random')],
|
41 |
outputs=gr.Image(label='Generated Image'),
|
42 |
-
title="Manju Dream Booth
|
43 |
description="<br><br><b/>Warning: This Demo is capable of producing NSFW content.",
|
44 |
article = "If You Enjoyed this Demo and would like to Donate, you can send any amount to any of these Wallets. <br><br>SHIB (BEP20): 0xbE8f2f3B71DFEB84E5F7E3aae1909d60658aB891 <br>PayPal: https://www.paypal.me/ManjushriBodhisattva <br>ETH: 0xbE8f2f3B71DFEB84E5F7E3aae1909d60658aB891 <br>DOGE: D9QdVPtcU1EFH8jDC8jhU9uBcSTqUiA8h6<br><br>Code Monkey: <a href=\"https://huggingface.co/Manjushri\">Manjushri</a>").launch(debug=True)
|
|
|
15 |
pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-3.5-medium", torch_dtype=torch.float16).to(device)
|
16 |
#pipe.enable_xformers_memory_efficient_attention()
|
17 |
torch.cuda.empty_cache()
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
|
20 |
def genie (Prompt, negative_prompt, height, width, scale, steps, seed):
|
|
|
34 |
gr.Slider(10, maximum=50, value=25, step=5, label='Number of Prior Iterations'),
|
35 |
gr.Slider(minimum=0, step=1, maximum=9999999999999999, randomize=True, label='Seed: 0 is Random')],
|
36 |
outputs=gr.Image(label='Generated Image'),
|
37 |
+
title="Manju Dream Booth V3.0 with Stable Diffusion 3.5-Medium - GPU",
|
38 |
description="<br><br><b/>Warning: This Demo is capable of producing NSFW content.",
|
39 |
article = "If You Enjoyed this Demo and would like to Donate, you can send any amount to any of these Wallets. <br><br>SHIB (BEP20): 0xbE8f2f3B71DFEB84E5F7E3aae1909d60658aB891 <br>PayPal: https://www.paypal.me/ManjushriBodhisattva <br>ETH: 0xbE8f2f3B71DFEB84E5F7E3aae1909d60658aB891 <br>DOGE: D9QdVPtcU1EFH8jDC8jhU9uBcSTqUiA8h6<br><br>Code Monkey: <a href=\"https://huggingface.co/Manjushri\">Manjushri</a>").launch(debug=True)
|