kealiu / ComfyUI-Zero123-Porting

ComfyUI Node for Zero-1-to-3: Zero-shot One Image to 3D Object
Apache License 2.0
21 stars 5 forks source link

ModuleNotFoundError: No module named 'taming' #7

Open NekomiSakura opened 1 month ago

NekomiSakura commented 1 month ago

I`m tring use Node Zero123:Image Rotate in 3D

there is a issues: File "E:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Zero123-Porting\ldm\models\diffusion\ddpm.py", line 26, in from ldm.models.autoencoder import VQModelInterface, IdentityFirstStage, AutoencoderKL File "E:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Zero123-Porting\ldm\models\autoencoder.py", line 6, in from taming.modules.vqvae.quantize import VectorQuantizer2 as VectorQuantizer ModuleNotFoundError: No module named 'taming'

I`m using ComfyUI_Windows_protable, and : Total VRAM 8188 MB, total RAM 65223 MB pytorch version: 2.4.1+cu124 Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce RTX 4060 : cudaMallocAsync

I think maybe it`s the same issues with https://github.com/kealiu/ComfyUI-Zero123-Porting/issues/4

I printed python system environment of sys.path: (base) PS E:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Zero123-Porting> python init.py Python version: 3.12.4 | packaged by Anaconda, Inc. | (main, Jun 18 2024, 15:03:56) [MSC v.1929 64 bit (AMD64)]

NekomiSakura commented 1 month ago

and i print the sys.path, like: print(sys.path) sys.path.insert(0, os.path.dirname(__file__)) print(sys.path)

its be : (base) PS E:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Zero123-Porting> python init.py ['E:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Zero123-Porting', 'C:\Anaconda\python312.zip', 'C:\Anaconda\DLLs', 'C:\Anaconda\Lib', 'C:\Anaconda', 'C:\Anaconda\Lib\site-packages', 'e:\comfyui_windows_portable_nvidia\comfyui_windows_portable\comfyui\custom_nodes\comfyui-zero123-porting\src\taming-transformers', 'e:\comfyui_windows_portable_nvidia\comfyui_windows_portable\comfyui\custom_nodes\comfyui-zero123-porting\src\clip', 'C:\Anaconda\Lib\site-packages\win32', 'C:\Anaconda\Lib\site-packages\win32\lib', 'C:\Anaconda\Lib\site-packages\Pythonwin'] ['E:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Zero123-Porting', 'E:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Zero123-Porting', 'C:\Anaconda\python312.zip', 'C:\Anaconda\DLLs', 'C:\Anaconda\Lib', 'C:\Anaconda', 'C:\Anaconda\Lib\site-packages', 'e:\comfyui_windows_portable_nvidia\comfyui_windows_portable\comfyui\custom_nodes\comfyui-zero123-porting\src\taming-transformers', 'e:\comfyui_windows_portable_nvidia\comfyui_windows_portable\comfyui\custom_nodes\comfyui-zero123-porting\src\clip', 'C:\Anaconda\Lib\site-packages\win32', 'C:\Anaconda\Lib\site-packages\win32\lib', 'C:\Anaconda\Lib\site-packages\Pythonwin']`

the taming-transformers path is be setted

kealiu commented 1 month ago

seems the same as https://github.com/kealiu/ComfyUI-Zero123-Porting/issues/3

could u pls try https://github.com/CompVis/stable-diffusion/issues/72

NekomiSakura commented 1 month ago

seems the same as #3

could u pls try CompVis/stable-diffusion#72

thanks for your reply.

I tried https://github.com/CompVis/stable-diffusion/issues/72 but it`s not work.

And I found if I use 'pip install -e' to install taming, it will be install in 'src/taming-transformation' file, and the code wanna use 'src/taming-transformation/taming', I don`t know why the path is not work but if I Put the taming file into the 'ComfyUI-Zero123-Porting/', it will be work.

and the clip will be not find too, I put the clip into the 'ComfyUI-Zero123-Porting/',and i use'from clip.clip import clip', it`s work.

But I think perhaps this is not the right solution, because the results of the model's operation are very strange. It has no error messages, but the results are quite different.