fast-stable-diffusion
fast-stable-diffusion copied to clipboard
ModuleNotFoundError: No module named 'py3d_tools'
Hi,
Running Deforum extension in your notebook. Image generation and everything works fine but when trying to generate animation I get this error : ModuleNotFoundError: No module named 'py3d_tools' Not sure how to fix this.
And also Open Image Directory don't work in whole notebook - text2image and image2image

Create a new cell and run this code :
import sys
%cd /content
!git clone https://github.com/MSFTserver/pytorch3d-lite.git
sys.path.append('./pytorch3d-lite')
see if it works so I'll add it to the notebook
Didn't fix it. Same error. I updated Deforum and the rest of notebook runs smooth. Took me a while I restarted run time. I put the cell here :


I added the Deforum extensions through webui and updated it.
I'll try to find a solution
Thx a lot. Adding this module to Requirments List didn’t help. Need to kick of those animations :)
how did you install the extension ? by copying the script or through A1111 webui installer
Throgh the webui installer.
fixed https://github.com/TheLastBen/fast-stable-diffusion/commit/6caa960f9c59e2a6e61a98e73cee26974b062e0f
Will try it tomorrow. So now I just need to update the repo?
no need to update the repo
Afraid I still get the same result. module missing. I updated Deforum script. The cell you asked me to add is still there though..shall I try removing it? this one : import sys %cd /content !git clone https://github.com/MSFTserver/pytorch3d-lite.git sys.path.append('./pytorch3d-lite')
did you update the colab to latest version ?
to make that precise...your notebook or Deforum script dowloaded through webui ?
I updated the repo but I need to copy the collab again to my drive I think. Will do that. Is there a way to save my styles saved on notebook?

If you don't want to refresh the collab, just copy the code from the "requirements" cell from the new notebook to your notebook
Thank you Sir! It worked this time. Got first trial animation out just know. Respect!
Great !
I am having the same error: ModuleNotFoundError: No module named 'py3d_tools'
What do I need to update exactly?
use the latest colab : https://colab.research.google.com/github/TheLastBen/fast-stable-diffusion/blob/main/fast_stable_diffusion_AUTOMATIC1111.ipynb
I still get the error.
I'll check if something changed
When installing the requirements, in my google drive the deforum path is:
/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui/scripts/deforum_helpers/
but the requirements in the notebook check for this path:
/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui/scripts/deforum/
Could this be anything to do with my issue? I've already redownloaded the sd repository.
that must be it, the folder has changed, I'll fix it
I did a superficial fix, can you show the folder structure of the directory "deforum_helpers"

Ok, the fix https://github.com/TheLastBen/fast-stable-diffusion/commit/bc3dddebfaef8cc970ac2fdea1030e211958471c should work
I have the same obstacle; I even deleted the SD folder and started from scratch.
ModuleNotFoundError: No module named 'py3d_tools' Time taken: 0.21sTorch active/reserved: 2069/2082 MiB, Sys VRAM: 3102/40537 MiB (7.65%)
You are just amazing. I getting this erorr over and over so then I found this topic. I'll try it today and try to contribute here!
There is an if statement in the requirements:
if os.path.exists('/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui/scripts/deforum/src/infer.py'):
Change the path to:
if os.path.exists('/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui/scripts/deforum_helpers/src/infer.py'):
I guess I forgot to change that part