Spaces:
Running
on
L4
Running
on
L4
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ from huggingface_hub import hf_hub_download
|
|
9 |
device = 'cuda' #if torch.cuda.is_available() else 'cpu'
|
10 |
torch.cuda.max_memory_allocated(device=device)
|
11 |
torch.cuda.empty_cache()
|
12 |
-
pipe = DiffusionPipeline.from_pretrained("circulus/canvers-
|
13 |
pipe.enable_xformers_memory_efficient_attention()
|
14 |
pipe = pipe.to(device)
|
15 |
torch.cuda.empty_cache()
|
@@ -32,7 +32,7 @@ gr.Interface(fn=genie, inputs=[gr.Textbox(label='What you want the AI to generat
|
|
32 |
gr.Textbox(label='What you Do Not want the AI to generate. 77 Token Limit'),
|
33 |
gr.Slider(512, 2048, 1024, step=128, label='Height'),
|
34 |
gr.Slider(512, 2048, 1024, step=128, label='Width'),
|
35 |
-
gr.Slider(
|
36 |
gr.Slider(10, maximum=50, value=25, step=5, label='Number of Iterations'),
|
37 |
gr.Slider(minimum=0, step=1, maximum=9999999999999999, randomize=True, label='Seed: 0 is Random')],
|
38 |
outputs=gr.Image(label='Generated Image'),
|
|
|
9 |
device = 'cuda' #if torch.cuda.is_available() else 'cpu'
|
10 |
torch.cuda.max_memory_allocated(device=device)
|
11 |
torch.cuda.empty_cache()
|
12 |
+
pipe = DiffusionPipeline.from_pretrained("circulus/canvers-fusionXL-v1", torch_dtype=torch.float16, safety_checker=None)
|
13 |
pipe.enable_xformers_memory_efficient_attention()
|
14 |
pipe = pipe.to(device)
|
15 |
torch.cuda.empty_cache()
|
|
|
32 |
gr.Textbox(label='What you Do Not want the AI to generate. 77 Token Limit'),
|
33 |
gr.Slider(512, 2048, 1024, step=128, label='Height'),
|
34 |
gr.Slider(512, 2048, 1024, step=128, label='Width'),
|
35 |
+
gr.Slider(7.5, maximum=15, value=10, step=.25, label='Guidance Scale'),
|
36 |
gr.Slider(10, maximum=50, value=25, step=5, label='Number of Iterations'),
|
37 |
gr.Slider(minimum=0, step=1, maximum=9999999999999999, randomize=True, label='Seed: 0 is Random')],
|
38 |
outputs=gr.Image(label='Generated Image'),
|