Open yesbroc opened 1 year ago
absolutely related with: Version: v1.3.2 version: v1.3.0 not have same
@AUTOMATIC1111 AUTOMATIC1111 said v.1.3.2 "fix postprocessing overwriting parameters"
i was have same. i just worked a few hours to understand this: SyntaxError: not a TIFF file (header b"b'Exif\x" not valid)
for example: In extras tab, if your script creating new image and upload it to pnginfo tab. you will see same error.
it must be related with this change : https://github.com/AUTOMATIC1111/stable-diffusion-webui/compare/v1.3.0...v1.3.2#diff-7035c0b11c034183a4d5570fccaf498d0e1ceea6f1a70efffab2bf963703739a (modules/images.py) updates, gradio not adaptable with them to detect png image
i solved my problem in extras tab with copying original info to return:
prev_image_info = pp.image.info
...
(my code creates newimage)
...
pp.image = newimage
pp.image.info = prev_image_info (if you not have this its creating header b"b'Exif\\x" not valid error)
return pp.image
more easy solution: use v1.3.0
i got around the tiff thing by using a duplicate backup photo, what im really asking about is why using cpu for controlnet and cuda for sd wont work
I was getting this issue too after using --medvram-sdxl
. Was able to fix by running once with --reinstall-torch
(in addition to all my other arguments). Then closed, removed --reinstall-torch
, and could rerun without getting the error.
I was running into the same error, while trying to use my CPU for both the model and ControlNet. I was able to fix it by preventing torch from seeing my GPU at all:
export CUDA_VISIBLE_DEVICES=""
Is there an existing issue for this?
What happened?
using cpu for controlnet and gpu for everything else (bc lowvram on cn just doesnt do it lol), from what i understant webui cant handle 2 devices. (this is in img2img, could happen to txt2img too)
Steps to reproduce the problem
--reinstall-xformers --xformers --lowvram --update-all-extensions --always-batch-cond-uncond --api --use-cpu controlnet –opt-split-attention-v1
launch img2img
use with depth cn
What should have happened?
it shouldve just worked ig
Commit where the problem happens
https://github.com/AUTOMATIC1111/stable-diffusion-webui
What Python version are you running on ?
Python 3.10.x
What platforms do you use to access the UI ?
Windows
What device are you running WebUI on?
CPU, Other GPUs
What browsers do you use to access the UI ?
Microsoft Edge
Command Line Arguments
List of extensions
Console logs
Additional information
No response