diff --git a/CHANGELOG.md b/CHANGELOG.md index 5225a8cf7..aec86905d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,8 @@ # Change Log for SD.Next -## Update for 2026-05-05 +## Update for 2026-05-07 -### Highlights for 2026-05-05 +### Highlights for 2026-05-07 *What's New?* - Image editing models now can work with multiple image inputs! @@ -13,7 +13,7 @@ For full details, see [ChangeLog](https://github.com/vladmandic/automatic/blob/m [ReadMe](https://github.com/vladmandic/automatic/blob/master/README.md) | [ChangeLog](https://github.com/vladmandic/automatic/blob/master/CHANGELOG.md) | [Docs](https://vladmandic.github.io/sdnext-docs/) | [WiKi](https://github.com/vladmandic/automatic/wiki) | [Discord](https://discord.com/invite/sd-next-federal-batch-inspectors-1101998836328697867) | [Sponsor](https://github.com/sponsors/vladmandic) -### Details for 2026-05-05 +### Details for 2026-05-07 - **Features** - **Multi-image** workflows! @@ -66,6 +66,9 @@ For full details, see [ChangeLog](https://github.com/vladmandic/automatic/blob/m - lora false deactivate - kandinsky-5 t2i/i2i workflows - progress do not timeout when paused + - faster server shutdown/restart, thanks @awsr + - `openvino` force offload none + - `lut` file handling ## Update for 2026-04-28 diff --git a/modules/processing_grading.py b/modules/processing_grading.py index 055e72de7..ec9fada42 100644 --- a/modules/processing_grading.py +++ b/modules/processing_grading.py @@ -181,10 +181,16 @@ def _apply_color_temp(img: torch.Tensor, kelvin: float) -> torch.Tensor: def _apply_lut(image: Image.Image, lut_cube_file: str, strength: float) -> Image.Image: """Apply .cube LUT file via pillow-lut-tools.""" - if not lut_cube_file or not os.path.isfile(lut_cube_file): + if not lut_cube_file: return image - pillow_lut = _ensure_pillow_lut() + if hasattr(lut_cube_file, "name"): + lut_cube_file = lut_cube_file.name + if hasattr(lut_cube_file, "as_posix"): + lut_cube_file = lut_cube_file.as_posix() try: + if not os.path.isfile(lut_cube_file): + return image + pillow_lut = _ensure_pillow_lut() cube = pillow_lut.load_cube_file(lut_cube_file) if strength != 1.0: cube = pillow_lut.amplify_lut(cube, strength)