Spaces:
Sleeping
Sleeping
Update LUTs
Browse files- LUT/Colorful.cube +0 -0
- LUT/Contrast.cube +0 -0
- LUT/PureWhites.cube +0 -0
- LUT/Saturation.cube +0 -0
- app.py +4 -3
LUT/Colorful.cube
ADDED
The diff for this file is too large to render.
See raw diff
|
|
LUT/Contrast.cube
ADDED
The diff for this file is too large to render.
See raw diff
|
|
LUT/PureWhites.cube
ADDED
The diff for this file is too large to render.
See raw diff
|
|
LUT/Saturation.cube
ADDED
The diff for this file is too large to render.
See raw diff
|
|
app.py
CHANGED
@@ -45,7 +45,7 @@ from modules.image_utils import (
|
|
45 |
apply_lut_to_image_path,
|
46 |
multiply_and_blend_images,
|
47 |
alpha_composite_with_control,
|
48 |
-
|
49 |
convert_to_rgba_png,
|
50 |
get_image_from_dict
|
51 |
)
|
@@ -427,7 +427,7 @@ def run_lora(prompt, map_option, image_input, image_strength, cfg_scale, steps,
|
|
427 |
# ensure the conditioned image is an image and not a string, cannot use RGBA
|
428 |
if isinstance(current_prerendered_image.value, str):
|
429 |
conditioned_image = open_image(current_prerendered_image.value).convert("RGB")
|
430 |
-
image_input =
|
431 |
print(f"Conditioned Image: {image_input.size}.. converted to RGB and resized\n")
|
432 |
if map_option != "Prompt":
|
433 |
prompt = PROMPTS[map_option]
|
@@ -764,7 +764,8 @@ with gr.Blocks(css_paths="style_20250128.css", title=title, theme='Surn/beeuty',
|
|
764 |
examples=[[f] for f in lut_files],
|
765 |
inputs=[lut_filename],
|
766 |
outputs=[lut_filename],
|
767 |
-
label="Select a Filter (LUT) file. Populate the LUT File Name field"
|
|
|
768 |
)
|
769 |
|
770 |
with gr.Row():
|
|
|
45 |
apply_lut_to_image_path,
|
46 |
multiply_and_blend_images,
|
47 |
alpha_composite_with_control,
|
48 |
+
resize_and_crop_image,
|
49 |
convert_to_rgba_png,
|
50 |
get_image_from_dict
|
51 |
)
|
|
|
427 |
# ensure the conditioned image is an image and not a string, cannot use RGBA
|
428 |
if isinstance(current_prerendered_image.value, str):
|
429 |
conditioned_image = open_image(current_prerendered_image.value).convert("RGB")
|
430 |
+
image_input = resize_and_crop_image(conditioned_image, width, height)
|
431 |
print(f"Conditioned Image: {image_input.size}.. converted to RGB and resized\n")
|
432 |
if map_option != "Prompt":
|
433 |
prompt = PROMPTS[map_option]
|
|
|
764 |
examples=[[f] for f in lut_files],
|
765 |
inputs=[lut_filename],
|
766 |
outputs=[lut_filename],
|
767 |
+
label="Select a Filter (LUT) file. Populate the LUT File Name field",
|
768 |
+
examples_per_page=15
|
769 |
)
|
770 |
|
771 |
with gr.Row():
|