deforum-art / sd-webui-deforum

Deforum extension for AUTOMATIC1111's Stable Diffusion webui
https://deforum.github.io
Other
2.7k stars 390 forks source link

No module named py3d_tools #28

Closed Yaiol closed 2 years ago

Yaiol commented 2 years ago

Fresh Install when i try to generate get this error

File "D:\Apps\sd-webui\extensions\deforum\scripts\deforum.py", line 62, in run from scripts.deforum.render import render_animation, render_input_video File "D:\Apps\sd-webui\extensions\deforum\scripts\deforum\render.py", line 13, in from .generate import generate, add_noise File "D:\Apps\sd-webui\extensions\deforum\scripts\deforum\generate.py", line 23, in from .animation import sample_from_cv2, sample_to_cv2 File "D:\Apps\sd-webui\extensions\deforum\scripts\deforum\animation.py", line 5, in import py3d_tools as p3d ModuleNotFoundError: No module named 'py3d_tools'

kabachuha commented 2 years ago

Add this line

print (sys.path)

just after the sys path extend fragment in deforum.py, line 57 https://github.com/deforum-art/deforum-for-automatic1111-webui/blob/753893492521fa7f50c328976692be6834fcef65/scripts/deforum.py#L53-L57

and send here the array of folders you will get in the log

Yaiol commented 2 years ago

Thanks a lot that is fixing the issue, the deforum folder into extensions didn't have the good name. I renamed the extensions to control the order of tabs into sd-webui, that worked for others extensions, cannot be done with deforum.

NeoTrace82 commented 2 years ago

Thanks a lot that is fixing the issue, the deforum folder into extensions didn't have the good name. I renamed the extensions to control the order of tabs into sd-webui, that worked for others extensions, cannot be done with deforum.

can you describe it a bit more, as im not getting what to do now am on Mac thought

Yaiol commented 2 years ago

can you describe it a bit more, as im not getting what to do now am on Mac thought

The code of deforum only works if you don't rename the folder extension name. line 53 of deforum.py assumes the folder name of deforum extension is "deforum" if you rename it to anything else then you get the error with No module named 'py3d_tools'

sys.path.extend([
   os.getcwd()+'/scripts/deforum/src',
   os.getcwd()+'/extensions/deforum/scripts/deforum/src'
])

Hope is more clear

NeoTrace82 commented 2 years ago

got it thanks

Ericdom commented 2 years ago

I am getting the same issue while Running in Automatic 1111 Colab as an extension. Please help.

kabachuha commented 2 years ago

@Ericdom add that debug line https://github.com/deforum-art/deforum-for-automatic1111-webui/issues/28#issuecomment-1291151841 and send that you're getting

Ericdom commented 2 years ago

File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui/scripts/deforum/render.py", line 13, in from .generate import generate, add_noise File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui/scripts/deforum/generate.py", line 24, in from .animation import sample_from_cv2, sample_to_cv2 File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui/scripts/deforum/animation.py", line 5, in import py3d_tools as p3d ModuleNotFoundError: No module named 'py3d_tools'

28 (I am getting these lines while running Deforum in Automatic 1111 Colab as an extension)

@kabachuha

kabachuha commented 2 years ago

what does print (sys.path) write?

check the full log, it should display your path content

Yaiol commented 2 years ago

As i explained before be sure you didn't rename "deforum" extension directory is what is causing this issue

Limbicnation commented 2 years ago

Hi this is a bit confusing to me too. My path is a follows: image So the extensions folder is inside the stable-diffusion-webui folder. I would appreciate some clarification. Thanks!

Updated path:

image

after restarting and running the deforum in the webui I still get the error:

ModuleNotFoundError: No module named 'py3d_tools'

image

CJohnDesign commented 1 year ago

I see this thread is a little old. Has this fix been committed to the main branch?