Skip to content

Commit 5d62567

Browse files
psychedelicioushipsterusername
authored andcommitted
fix(nodes): use lanczos resample mode for uno preprocessing
1 parent 911fc99 commit 5d62567

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

invokeai/app/invocations/flux_uno.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def preprocess_ref(raw_image: Image.Image, long_size: int = 512) -> Image.Image:
3030
new_w = int((long_size / image_h) * image_w)
3131

3232
# Scale proportionally to the new width and height
33-
raw_image = raw_image.resize((new_w, new_h), resample=Image.LANCZOS)
33+
raw_image = raw_image.resize((new_w, new_h), resample=Image.Resampling.LANCZOS)
3434
target_w = new_w // 16 * 16
3535
target_h = new_h // 16 * 16
3636

0 commit comments

Comments
 (0)