Open DiegoRRR opened 1 month ago
I cannot reproduce your problem, but from the log it seems to be caused by wrong gradio version or some other libs. It is very likely that you are not installing forge in official way.
(Thanks for replying and for your amazing work on LayerDiffuse and Forge.)
I had problems making it run on my computer, so I kept notes of what I tried. For this installation here are the only things I did:
I unzipped webui_forge_cu121_torch21.7z
, ran update.bat
, then run.bat
.
It told me to go to: https://pytorch.org to install a PyTorch version that has been compiled with your version of the CUDA driver
, so I uninstalled pytorch and installed v2.4.0 cu117 instead of 2.1 cu12. (I did not install torchaudio because in a previous try it annoyed me asking for missing dlls related to mpeg and I guess torchaudio is not necessary here anyway, is it?)
python -m pip uninstall Torch Torchvision Torchaudio
python -m pip install torch==2.4.0 torchvision==0.19.0 --index-url https://download.pytorch.org/whl/cu118
I also had to downgrade Pydantic to 2.7 instead of 2.9, I just changed the number in requirements_versions.txt
.
I did not change gradio or any other lib. Is there any way to determine what lib is causing this so I can reinstall it? Maybe that lib was not made for the version of pytorch I installed and I just need to reinstall it.
hi if that is the case then your env is quite complicated. you can try mainly changing opencv/pillow/gradio versions to try
I've searched for hours with several new installations and I found, two different things were causing the problem:
My copies of the models in models/layer_model/
were either outdated or corrupted. I let it download new copies and it works now.
The old version of LayerDiffuse in old Forge worked with these old files though, I tried again earlier today, so I don't think they were corrupted. Were these files updated since march?
I noticed that the problem always still happens anyway if I forgot to update with update.bat
after unzipping though.
If I used new layer_models files but forgot to update, or if I updated but used my old layer_models files, the problem always happened. If I update and use the new layer_models files, it always works. So if someone ever has the same problem and reads, check these things.
By the way When LayerDiffuse is enabled, the transparent image should always be saved as png even if "File format for images" in "saving images/grids" is set to jpg.
Thanks again for your great work, lllyasviel.
Two images are saved : one with a blur background and one with a checker background, none with a transparent background. :( I tried several models, 1.5 and XL. Example:
I also checked in AppData\Local\Temp\gradio\, there is only the version with a checker background.
There is no error in the output. There is a warning about onnxruntime and a warning about transformers but I don't think it's related.
Both LayerDiffuse and Forge are up to date. ( In another folder I keep the old Forge from last year with the old LayerDiffuse from april, with the same settings, these old two work perfectly and I do get a transparent image, except for img2img which was fixed recently, that is why I want the new versions. )