Open ProGamerGov opened 1 year ago
ValueError: image has wrong mode
6000x3000 and 6144x3072
The problem seems to happen when trying to save the PIL image after it has been generated.
Those are very large images, have you verified if smaller images work ?
(Note: For images that large you definitely want to set a much larger Rmax (max wholesize for boost) to get a higher resolution merged depthmap. See Settings on WebUI Settings tab
in README )
@thygate I resized the image to smaller size and it worked, so it does appear that the size is causing the problem somehow.
File "C:\Users\caps\Desktop\sd.webui\webui\modules\images.py", line 593, in save_image image = image.resize((round(opts.target_side_length), round(image.height * opts.target_side_length / image.width)), LANCZOS) File "C:\Users\caps\Desktop\sd.webui\system\python\lib\site-packages\PIL\Image.py", line 2192, in resize return self._new(self.im.resize(size, resample, box)) ValueError: image has wrong mode
I'm not sure what the cause of this is..
I get the following errors when trying to create depthmaps for 6000x3000 and 6144x3072