Closed fyyv closed 1 year ago
Looks like the dependencies were not downloaded successfully. In the dream_textures
addon folder, is the .python_dependencies
folder empty? There should be a folder diffusers and huggingface_hub in there (among others)
I can verify that folders named diffusers
and huggingface_hub
exist in /home/username/.config/blender/3.3/scripts/addons/dream-textures/.python_dependencies
and not anywhere else. There are 137 items in .python_dependencies
.
Out of curiosity I reinstalled the addon and got the dependencies again. After collecting packages, it successfully builds the wheel for diffusers
, successfully builds diffusers
, and claims it has successfully installed all collected packages.
One thing I saw in an error tooltip which I didn't see in the console was when I tried to import a checkpoint file, No module named 'torch'
. All other errors are still happening, unfortunately, and the dependency torch
exists in .python_dependencies
as well.
Any ideas?
Have you tried restarting Blender after installing dependencies? Could be an issue with the backend already being started and not being able to load the new modules while its running.
Yes, I have restarted both Blender and my computer at all different stages of installation. I verified I have full write access to all directories used by Blender, and a firewall isn't preventing connections. In case 3.3 had been the problem, I also tried 3.4 and 3.5. Logs indicate nothing goes wrong when installing dependencies. The files exist, they are just not being used.
No success so far with this or any previous version of the addon on Linux. In any case, I appreciate the help so far.
I have exactly the same problem. .python_dependencies are installed correctly, but
ModuleNotFoundError: No module named 'diffusers'
shows up when I try to import checkpoint. Other Stable Diffusion front ends are working correctly.
I've found that this can be caused by the default context that multiprocessing has for unix based systems being different from windows and macOS. https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods
Much appreciated @NullSenseStudio I was just trying the add-on on Linux and had the same issue. Your fix works and allows me to download SD 2.1.
Description
Using Linux (CUDA), I was successfully able to download developer dependencies, but when downloading a model, I received the following error:
Further, when attempting to use the Find Models feature to search Hugging Face Hub for a model, I received this error:
I can verify that folders named
diffusers
andhuggingface_hub
exist in/home/username/.config/blender/3.3/scripts/addons/dream-textures/.python_dependencies
and not anywhere else.I have manually downloaded the models I'd like to use but the
Import Checkpoint file
creates the samediffusers
error as above.It may be possible that a SD-related cache elsewhere on my machine is conflicting. I used other SD tools when 1.4 came out.
It is also possible that the bug is related to Blender version 3.3. That's currently the latest version supporting Octane, otherwise I'd use the latest builds.
Thanks for building a great tool. I'm looking forward to trying it out!
Steps to Reproduce
Expected Behavior
Successfully complete a search for a model, or successfully download a model.
Addon Version
Other (Built from source)
GPU
NVIDIA