diff --git a/ldm/generate.py b/ldm/generate.py index f3bc93250f..ed3c2390be 100644 --- a/ldm/generate.py +++ b/ldm/generate.py @@ -928,7 +928,7 @@ class Generate: # BUG: We need to use the model's downsample factor rather than hardcoding "8" from ldm.dream.generator.base import downsampling image = image.resize((image.width//downsampling, image.height // - downsampling), resample=Image.Resampling.LANCZOS) + downsampling), resample=Image.Resampling.NEAREST) # print( # f'>> DEBUG: writing the mask to mask.png' # )