Spaces:
Sleeping
Sleeping
padmanabhbosamia
commited on
Commit
•
4041358
1
Parent(s):
30d8d88
Update app.py
Browse filesChanges done on interface
app.py
CHANGED
@@ -45,10 +45,10 @@ style_files = ['Thumps_up.bin', 'birb_style.bin',
|
|
45 |
images_without_loss = []
|
46 |
images_with_loss = []
|
47 |
|
48 |
-
seed_values = [
|
49 |
height = 512 # default height of Stable Diffusion
|
50 |
width = 512 # default width of Stable Diffusion
|
51 |
-
num_inference_steps =
|
52 |
guidance_scale = 7.5 # Scale for classifier-free guidance
|
53 |
num_styles = len(style_files)
|
54 |
|
@@ -277,7 +277,7 @@ def image_generator(prompt = "snoopy", loss_function=None):
|
|
277 |
|
278 |
return display_images_in_rows(generated_sd_images, titles)
|
279 |
|
280 |
-
description = "Generate
|
281 |
|
282 |
demo = gr.Interface(image_generator,
|
283 |
inputs=[gr.Textbox(label="Enter prompt for generation", type="text", value="snoopy sitting on a bench"),
|
|
|
45 |
images_without_loss = []
|
46 |
images_with_loss = []
|
47 |
|
48 |
+
seed_values = [10,12,18,30,32]
|
49 |
height = 512 # default height of Stable Diffusion
|
50 |
width = 512 # default width of Stable Diffusion
|
51 |
+
num_inference_steps = 30 # Number of denoising steps
|
52 |
guidance_scale = 7.5 # Scale for classifier-free guidance
|
53 |
num_styles = len(style_files)
|
54 |
|
|
|
277 |
|
278 |
return display_images_in_rows(generated_sd_images, titles)
|
279 |
|
280 |
+
description = "Generate Image from Prompt.Time Taken for Image is around 20 minutes. Please run it on GPU for better performance"
|
281 |
|
282 |
demo = gr.Interface(image_generator,
|
283 |
inputs=[gr.Textbox(label="Enter prompt for generation", type="text", value="snoopy sitting on a bench"),
|