Closed jamahun closed 2 years ago
The error happens at line 142 because channel_mult
is ""
and image_size
is not one of 256
, 128
, 64
.
Maybe try to set channel_mult
to a non-empty string.
Thanks so much for your response @woctezuma I did see this part of the script but didn’t really know how I could change it. I’ve got a very basic understanding of python and prgramming languages in general any chance you could give me an example of how I can change the channel_mult
to a non-empty string?
I don't know:
channel_mult
for 1024x1024 resolution,However, I can make a few remarks about values which would work with the else
statement and pass the assert
check.
First, the string should be a sequence of integers separated by commas.
For instance: channel_mult = "1,2,3,4"
would be correctly parsed and transformed into (1, 2, 3, 4)
Second, the length of the string should be equal to log2(image_size) - 2
.
For instance, for an image resolution of 64, the length of the tuple is log2(64) - 2 = 6 - 2 = 4
.
This is consistent with the tuple mentioned above, i.e. (1, 2, 3, 4)
.
For an image resolution of 1024, the length of the tuple should be log2(1024) - 2 = 10 - 2 = 8
.
Personally, based on the examples mentioned above, I would try one of the following tuples:
(1, 1, 2, 2, 3, 3, 4, 4)
(1, 1, 1, 2, 2, 3, 4, 4)
(1, 1, 1, 1, 2, 2, 4, 4)
That would require an input string:
"1,1,2,2,3,3,4,4"
"1,1,1,2,2,3,4,4"
"1,1,1,1,2,2,4,4"
We haven't trained an upsampler for higher resolutions. You can't just change the code and load the old upsampler model--it won't work because it was trained for 256x256.
People on Twitter have been using third-party upsamplers / image super resolution models.
Any recommendations on third-party upsamplers / image super resolution models?
Any recommendations on third-party upsamplers / image super resolution models?
Maybe https://huggingface.co/stabilityai/stable-diffusion-x4-upscaler from last year.
Is there a way to upsize the outputs to something closer to 1024px? I've noticed a few people on twitter that have been able to do so with this model but after trying to change the image size to a higher value I get this error for anything over 256 -