Commit
•
10b6f16
1
Parent(s):
a07b378
Upload 3 files
Browse files- spaghetti_ai.zip +2 -2
- spaghetti_ai_launcher.bat +1 -1
- spaghetti_ai_script.py +13 -5
spaghetti_ai.zip
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6010b8e71b9f3c0f1a1a6ce1694f1c242f25e9e9fbd4e1955d187cd8211b9277
|
3 |
+
size 86416
|
spaghetti_ai_launcher.bat
CHANGED
@@ -28,7 +28,7 @@ REM automatically. That means your drive would eventually run out of
|
|
28 |
REM space if you never deleted older versions.
|
29 |
REM
|
30 |
|
31 |
-
set HF_HUB_OFFLINE=
|
32 |
|
33 |
REM
|
34 |
REM HF_HUB_DISABLE_TELEMETRY
|
|
|
28 |
REM space if you never deleted older versions.
|
29 |
REM
|
30 |
|
31 |
+
set HF_HUB_OFFLINE=0
|
32 |
|
33 |
REM
|
34 |
REM HF_HUB_DISABLE_TELEMETRY
|
spaghetti_ai_script.py
CHANGED
@@ -815,7 +815,7 @@ if device == "cpu":
|
|
815 |
|
816 |
if script_being_run_on_hugging_face == 1:
|
817 |
|
818 |
-
opening_html = "<span style=\"font-weight: bold; color: #c00;\">This app is extremely slow
|
819 |
|
820 |
else:
|
821 |
|
@@ -892,6 +892,10 @@ if script_being_run_on_hugging_face == 1:
|
|
892 |
|
893 |
minimum_refiner_denoise_start = 0.70
|
894 |
|
|
|
|
|
|
|
|
|
895 |
ending_html = """
|
896 |
If you would like to download this app to run offline on a Windows computer that has a NVIDIA graphics card, click <a href=\"https://huggingface.co/spaces/magicfixeseverything/ai_image_creation/resolve/main/spaghetti_ai.zip\">here</a> to download it.
|
897 |
|
@@ -3134,7 +3138,7 @@ def create_image_function (
|
|
3134 |
desc = "Refining is beginning"
|
3135 |
)
|
3136 |
|
3137 |
-
current_actual_total_refiner_steps = (refining_steps_for_sdxl_online_config_field_value - (
|
3138 |
|
3139 |
nice_refiner_denoise_start = str(refining_denoise_start_for_online_config_field_value)
|
3140 |
|
@@ -3246,7 +3250,7 @@ def create_image_function (
|
|
3246 |
|
3247 |
default_steps_in_diffusers = 50
|
3248 |
|
3249 |
-
current_actual_total_refiner_steps = (default_steps_in_diffusers - (
|
3250 |
|
3251 |
refiner_info_for_info_about_prompt_lines_array = [
|
3252 |
"Refiner? Yes",
|
@@ -3316,7 +3320,7 @@ def create_image_function (
|
|
3316 |
|
3317 |
denoising_end = refining_denoise_start_for_default_config_field_value
|
3318 |
|
3319 |
-
current_actual_total_base_model_steps =
|
3320 |
|
3321 |
else:
|
3322 |
|
@@ -3328,7 +3332,7 @@ def create_image_function (
|
|
3328 |
|
3329 |
output_type_before_refiner = "latent"
|
3330 |
|
3331 |
-
current_actual_total_refiner_steps = (base_model_num_inference_steps -
|
3332 |
|
3333 |
refiner_info_for_info_about_prompt_lines_array = [
|
3334 |
"Refiner? Yes"
|
@@ -3470,6 +3474,10 @@ def create_image_function (
|
|
3470 |
callback_on_step_end = callback_to_do_for_base_model_progress
|
3471 |
).images
|
3472 |
|
|
|
|
|
|
|
|
|
3473 |
if show_messages_in_command_prompt == 1:
|
3474 |
|
3475 |
print ("Refiner steps...");
|
|
|
815 |
|
816 |
if script_being_run_on_hugging_face == 1:
|
817 |
|
818 |
+
opening_html = "<span style=\"font-weight: bold; color: #c00;\">This app is extremely slow.</span> This app is not running on a GPU. The first time it loads after the space is rebuilt it might take 10 minutes to generate a SDXL Turbo image. It may take around 3 minutes after that point to do two steps. (with no refining or upscaling) For other models, it may take an hour to create a single image. Want apps that work fast? Use these which this app is based on: <a href=\"https://huggingface.co/spaces/Manjushri/SDXL-1.0\" target=\"_blank\">Stable Diffusion XL</a>, <a href=\"https://huggingface.co/spaces/Manjushri/PhotoReal-V3.7.5\" target=\"_blank\">PhotoReal with SDXL 1.0 Refiner</a> and <a href=\"https://huggingface.co/spaces/diffusers/unofficial-SDXL-Turbo-i2i-t2i\" target=\"_blank\">SDXL Turbo Unofficial Demo</a>. This app is designed to give more options, but it's too slow to operate and test on a CPU. There are some features that are either not available, or more limited, in the online version of this app. (such as smaller allowed image dimensions and less steps allowed) This app is still in development. Next will be the ability to create a <a href=\"https://huggingface.co/spaces/magicfixeseverything/ai_image_creation?model=sdxl_turbo&model_config=sdxl_default&scheduler=model_default&width=768&height=768&guidance=7.5&steps=2&add_seed=1&refiner=no&upscaler=no&prompt=cat&neg_prompt=dog&seed=3648905360627576\" target=\"_blank\">link like this</a>."
|
819 |
|
820 |
else:
|
821 |
|
|
|
892 |
|
893 |
minimum_refiner_denoise_start = 0.70
|
894 |
|
895 |
+
maximum_upscaler_steps = 15
|
896 |
+
default_upscaler_steps = 10
|
897 |
+
|
898 |
+
|
899 |
ending_html = """
|
900 |
If you would like to download this app to run offline on a Windows computer that has a NVIDIA graphics card, click <a href=\"https://huggingface.co/spaces/magicfixeseverything/ai_image_creation/resolve/main/spaghetti_ai.zip\">here</a> to download it.
|
901 |
|
|
|
3138 |
desc = "Refining is beginning"
|
3139 |
)
|
3140 |
|
3141 |
+
current_actual_total_refiner_steps = (refining_steps_for_sdxl_online_config_field_value - round(refining_steps_for_sdxl_online_config_field_value * refining_denoise_start_for_online_config_field_value))
|
3142 |
|
3143 |
nice_refiner_denoise_start = str(refining_denoise_start_for_online_config_field_value)
|
3144 |
|
|
|
3250 |
|
3251 |
default_steps_in_diffusers = 50
|
3252 |
|
3253 |
+
current_actual_total_refiner_steps = (default_steps_in_diffusers - round(default_steps_in_diffusers * refining_denoise_start_for_online_config_field_value))
|
3254 |
|
3255 |
refiner_info_for_info_about_prompt_lines_array = [
|
3256 |
"Refiner? Yes",
|
|
|
3320 |
|
3321 |
denoising_end = refining_denoise_start_for_default_config_field_value
|
3322 |
|
3323 |
+
current_actual_total_base_model_steps = round(base_model_num_inference_steps * refining_denoise_start_for_default_config_field_value)
|
3324 |
|
3325 |
else:
|
3326 |
|
|
|
3332 |
|
3333 |
output_type_before_refiner = "latent"
|
3334 |
|
3335 |
+
current_actual_total_refiner_steps = (base_model_num_inference_steps - round(base_model_num_inference_steps * refining_denoise_start_for_default_config_field_value))
|
3336 |
|
3337 |
refiner_info_for_info_about_prompt_lines_array = [
|
3338 |
"Refiner? Yes"
|
|
|
3474 |
callback_on_step_end = callback_to_do_for_base_model_progress
|
3475 |
).images
|
3476 |
|
3477 |
+
|
3478 |
+
print ("b")
|
3479 |
+
|
3480 |
+
|
3481 |
if show_messages_in_command_prompt == 1:
|
3482 |
|
3483 |
print ("Refiner steps...");
|