New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: SyntaxError: not a TIFF file (header b"b'Exif\\x" not valid) #9078
Comments
requirements: |
the latest commit also has the same quesstion |
I have the same problem after using upscaler. |
您好,我已收到您的邮件。
|
@a-l-e-x-d-s-9 Yes, I have read these issues,and I use pillow 9.4.0,but this question seems to not be solved.And according to these issues,probhably b"b'Exif\x" should be b"Exif\x",it has one extra b' |
any updates on this issue? I saw the same behavior today with inpainting. |
您好,我已收到您的邮件。
|
[is fix for this still to run the image through SD again and then upscale?) Traceback (most recent call last): |
Is there final solutions? |
您好,我已收到您的邮件。
|
I'm having the same problem To create a public link, set |
According to my experience and #11126, this problem seems to happen because:
|
+1 |
Traceback (most recent call last): |
Same. Traceback (most recent call last): |
I'm having this same issue. When I use the "Extras" tab and resize an image (in my case I'm using 4x+ AnimeB6) and then try to use that same image in ControlNet I get that error. Does anyone know a fix for this? |
same, while trying to upscale big image inn extras, and i dont have controlnet |
Same error message here, trying to run upscaling under the extra tab, then use the outputted png file to upscale again, but looks like it doesn't like its last own output last time
|
+1 The same |
This may be a problem with the image format generated by SD, a temporary solution: |
Thank you for the temp fix for this. I'll give it a try. Hopefully this is an issue that will be fixed so one doesn't have to go through the extra step of opening the image up in an image editor and then resaving it. It's a bit of a hasle and definitely slows down the workflow. Hopefully there will be a fix for the issue soon. :) Thanks again for the tip! |
您好,我已收到您的邮件。
|
This continues to be a problem for me. iOS source images from an Apple XS ... full error:
|
您好,我已收到您的邮件。
|
This is still an error, but looks to be in the dependent library and not webui. Might be a way to invoke the library differently to avoid this behavior but otherwise dependent on inherited error. def exif_transpose(image):
|
您好,我已收到您的邮件。
|
Is there an existing issue for this?
What happened?
When I use the extra module to resize my img ,and I use the nearest samlper to resize it.But when I use this img to generate a new img from img2img module,the program raised this error:
Error completing request
Arguments: ('task(l6z6cwd19ehg4fj)', 0, '', '', [], <PIL.Image.Image image mode=RGBA size=828x1792 at 0x7F3C649705B0>, None, None, None, None, None, None, 20, 0, 4, 0, 1, False, False, 1, 1, 7, 1.5, 0.75, -1.0, -1.0, 0, 0, 0, False, 512, 512, 0, 0, 32, 0, '', '', '', [], 0, <scripts.external_code.ControlNetUnit object at 0x7f3c6495bf10>, <scripts.external_code.ControlNetUnit object at 0x7f3c64958b80>, <scripts.external_code.ControlNetUnit object at 0x7f3c64959030>, '
\n \n
\n', True, True, '', '', True, 50, True, 1, 0, False, 4, 1, 'None', 'None', None, 1, 'None', False, False, 'PreviousFrame', 'CFG Scale
should be 2 or lower.Recommended settings: Sampling Steps: 80-100, Sampler: Euler a, Denoising strength: 0.8
', 128, 8, ['left', 'right', 'up', 'down'], 1, 0.05, 128, 4, 0, ['left', 'right', 'up', 'down'], False, False, 'positive', 'comma', 0, False, False, '', 'Will upscale the image by the selected scale factor; use width and height sliders to set tile size
', 64, 0, 2, 1, '', 0, '', 0, '', True, False, False, False, 0, None, False, None, False, None, False, 50) {}Traceback (most recent call last):
File "/root/autodl-tmp/stable-diffusion-webui/modules/call_queue.py", line 56, in f
res = list(func(*args, **kwargs))
File "/root/autodl-tmp/stable-diffusion-webui/modules/call_queue.py", line 37, in f
res = func(*args, **kwargs)
File "/root/autodl-tmp/stable-diffusion-webui/modules/img2img.py", line 115, in img2img
image = ImageOps.exif_transpose(image)
File "/root/miniconda3/envs/draw/lib/python3.10/site-packages/PIL/ImageOps.py", line 588, in exif_transpose
exif = image.getexif()
File "/root/miniconda3/envs/draw/lib/python3.10/site-packages/PIL/Image.py", line 1454, in getexif
self._exif.load(exif_info)
File "/root/miniconda3/envs/draw/lib/python3.10/site-packages/PIL/Image.py", line 3670, in load
self._info = TiffImagePlugin.ImageFileDirectory_v2(self.head)
File "/root/miniconda3/envs/draw/lib/python3.10/site-packages/PIL/TiffImagePlugin.py", line 504, in init
raise SyntaxError(msg)
SyntaxError: not a TIFF file (header b"b'Exif\x" not valid)
Steps to reproduce the problem
Go to extra module and generate a img,and use this img to generate a new img.
What should have happened?
this img should be generated correctly.
Commit where the problem happens
a9fed7c
What platforms do you use to access the UI ?
Linux
What browsers do you use to access the UI ?
Google Chrome
Command Line Arguments
List of extensions
none
Console logs
Additional information
requirements and requirements_version is the same as my current commit.
The text was updated successfully, but these errors were encountered: