Spaces:
Runtime error
Runtime error
artificialguybr
commited on
Commit
•
aa7ff49
1
Parent(s):
8e85047
Update app.py
Browse files
app.py
CHANGED
@@ -97,6 +97,8 @@ def postprocess(
|
|
97 |
palette_colors,
|
98 |
dither_method_palette
|
99 |
):
|
|
|
|
|
100 |
if not enabled:
|
101 |
return image
|
102 |
|
@@ -143,7 +145,6 @@ def postprocess(
|
|
143 |
def run_and_postprocess(prompt, selected_state, enabled, downscale, need_rescale, enable_color_limit, palette_size_color, quantization_methods_color, dither_methods_color, k_means_color, enable_grayscale, palette_size_gray, quantization_methods_gray, dither_methods_gray, k_means_gray, enable_black_and_white, inverse_black_and_white, threshold_black_and_white, enable_custom_palette, palette_image, palette_size_custom, dither_methods_custom):
|
144 |
# Debug: Starting the function
|
145 |
logging.debug("Starting run_and_postprocess function.")
|
146 |
-
|
147 |
# Run the original image generation
|
148 |
original_image = run_lora(prompt, selected_state)
|
149 |
|
|
|
97 |
palette_colors,
|
98 |
dither_method_palette
|
99 |
):
|
100 |
+
logging.debug(f"Available keys in QUANTIZATION_METHODS: {QUANTIZATION_METHODS.keys()}")
|
101 |
+
logging.debug(f"Selected quantization_method: {quantization_method}")
|
102 |
if not enabled:
|
103 |
return image
|
104 |
|
|
|
145 |
def run_and_postprocess(prompt, selected_state, enabled, downscale, need_rescale, enable_color_limit, palette_size_color, quantization_methods_color, dither_methods_color, k_means_color, enable_grayscale, palette_size_gray, quantization_methods_gray, dither_methods_gray, k_means_gray, enable_black_and_white, inverse_black_and_white, threshold_black_and_white, enable_custom_palette, palette_image, palette_size_custom, dither_methods_custom):
|
146 |
# Debug: Starting the function
|
147 |
logging.debug("Starting run_and_postprocess function.")
|
|
|
148 |
# Run the original image generation
|
149 |
original_image = run_lora(prompt, selected_state)
|
150 |
|