Spaces:
Sleeping
Sleeping
Update app.py
#5
by
zee2221
- opened
app.py
CHANGED
@@ -720,7 +720,7 @@ if Input_type == 'TEXT':
|
|
720 |
# Defaults to 7.0 if not specified.
|
721 |
width=512, # Generation width, defaults to 512 if not included.
|
722 |
height=512, # Generation height, defaults to 512 if not included.
|
723 |
-
samples=
|
724 |
sampler=generation.SAMPLER_K_DPMPP_2M # Choose which sampler we want to denoise our generation with.
|
725 |
# Defaults to k_dpmpp_2m if not specified. Clip Guidance only supports ancestral samplers.
|
726 |
# (Available Samplers: ddim, plms, k_euler, k_euler_ancestral, k_heun, k_dpm_2, k_dpm_2_ancestral, k_dpmpp_2s_ancestral, k_lms, k_dpmpp_2m)
|
@@ -865,7 +865,7 @@ elif Input_type == 'SPEECH':
|
|
865 |
# Defaults to 7.0 if not specified.
|
866 |
width=512, # Generation width, defaults to 512 if not included.
|
867 |
height=512, # Generation height, defaults to 512 if not included.
|
868 |
-
samples=
|
869 |
sampler=generation.SAMPLER_K_DPMPP_2M # Choose which sampler we want to denoise our generation with.
|
870 |
# Defaults to k_dpmpp_2m if not specified. Clip Guidance only supports ancestral samplers.
|
871 |
# (Available Samplers: ddim, plms, k_euler, k_euler_ancestral, k_heun, k_dpm_2, k_dpm_2_ancestral, k_dpmpp_2s_ancestral, k_lms, k_dpmpp_2m)
|
@@ -974,7 +974,7 @@ elif Input_type == 'SPEECH':
|
|
974 |
# Defaults to 7.0 if not specified.
|
975 |
width=512, # Generation width, defaults to 512 if not included.
|
976 |
height=512, # Generation height, defaults to 512 if not included.
|
977 |
-
samples=
|
978 |
sampler=generation.SAMPLER_K_DPMPP_2M # Choose which sampler we want to denoise our generation with.
|
979 |
# Defaults to k_dpmpp_2m if not specified. Clip Guidance only supports ancestral samplers.
|
980 |
# (Available Samplers: ddim, plms, k_euler, k_euler_ancestral, k_heun, k_dpm_2, k_dpm_2_ancestral, k_dpmpp_2s_ancestral, k_lms, k_dpmpp_2m)
|
@@ -1024,3 +1024,4 @@ elif Input_type == 'SPEECH':
|
|
1024 |
|
1025 |
else:
|
1026 |
pass
|
|
|
|
720 |
# Defaults to 7.0 if not specified.
|
721 |
width=512, # Generation width, defaults to 512 if not included.
|
722 |
height=512, # Generation height, defaults to 512 if not included.
|
723 |
+
samples=4, # Number of images to generate, defaults to 1 if not included.
|
724 |
sampler=generation.SAMPLER_K_DPMPP_2M # Choose which sampler we want to denoise our generation with.
|
725 |
# Defaults to k_dpmpp_2m if not specified. Clip Guidance only supports ancestral samplers.
|
726 |
# (Available Samplers: ddim, plms, k_euler, k_euler_ancestral, k_heun, k_dpm_2, k_dpm_2_ancestral, k_dpmpp_2s_ancestral, k_lms, k_dpmpp_2m)
|
|
|
865 |
# Defaults to 7.0 if not specified.
|
866 |
width=512, # Generation width, defaults to 512 if not included.
|
867 |
height=512, # Generation height, defaults to 512 if not included.
|
868 |
+
samples=4, # Number of images to generate, defaults to 1 if not included.
|
869 |
sampler=generation.SAMPLER_K_DPMPP_2M # Choose which sampler we want to denoise our generation with.
|
870 |
# Defaults to k_dpmpp_2m if not specified. Clip Guidance only supports ancestral samplers.
|
871 |
# (Available Samplers: ddim, plms, k_euler, k_euler_ancestral, k_heun, k_dpm_2, k_dpm_2_ancestral, k_dpmpp_2s_ancestral, k_lms, k_dpmpp_2m)
|
|
|
974 |
# Defaults to 7.0 if not specified.
|
975 |
width=512, # Generation width, defaults to 512 if not included.
|
976 |
height=512, # Generation height, defaults to 512 if not included.
|
977 |
+
samples=4, # Number of images to generate, defaults to 1 if not included.
|
978 |
sampler=generation.SAMPLER_K_DPMPP_2M # Choose which sampler we want to denoise our generation with.
|
979 |
# Defaults to k_dpmpp_2m if not specified. Clip Guidance only supports ancestral samplers.
|
980 |
# (Available Samplers: ddim, plms, k_euler, k_euler_ancestral, k_heun, k_dpm_2, k_dpm_2_ancestral, k_dpmpp_2s_ancestral, k_lms, k_dpmpp_2m)
|
|
|
1024 |
|
1025 |
else:
|
1026 |
pass
|
1027 |
+
|