StartHua / ComfyUI_Seg_VITON

comfyui-模特换装(Model dress up)
190 stars 32 forks source link

ModuleNotFoundError: No module named 'diffusers.models.autoencoder_kl' #15

Open florestefano1975 opened 7 months ago

florestefano1975 commented 7 months ago

ERROR: !!! Exception during processing !!! ERROR: Traceback (most recent call last): File "/content/drive/MyDrive/ComfyUI/execution.py", line 153, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "/content/drive/MyDrive/ComfyUI/execution.py", line 83, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "/content/drive/MyDrive/ComfyUI/execution.py", line 76, in map_node_over_list results.append(getattr(obj, func)(slice_dict(input_data_all, i))) File "/content/drive/MyDrive/ComfyUI/custom_nodes/ComfyUI_Seg_VITON/stabel_vition.py", line 128, in sample self.model = create_model(config_path=None, config=config) File "/content/drive/MyDrive/ComfyUI/custom_nodes/ComfyUI_Seg_VITON/cldm/model.py", line 8, in create_model model = instantiate_from_config(config.model).cpu() File "/content/drive/MyDrive/ComfyUI/custom_nodes/ComfyUI_Seg_VITON/ldm/util.py", line 119, in instantiate_from_config return get_obj_from_str(config["target"])(config.get("params", dict())) File "/content/drive/MyDrive/ComfyUI/custom_nodes/ComfyUI_Seg_VITON/ldm/util.py", line 127, in get_obj_from_str return getattr(importlib.import_module(module, package=None), cls) File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "/content/drive/MyDrive/ComfyUI/custom_nodes/ComfyUI_Seg_VITON/cldm/cldm.py", line 14, in from ldm.models.diffusion.ddpm import LatentDiffusion File "/content/drive/MyDrive/ComfyUI/custom_nodes/ComfyUI_Seg_VITON/ldm/models/diffusion/ddpm.py", line 26, in from diffusers.models.autoencoder_kl import AutoencoderKLOutput ModuleNotFoundError: No module named 'diffusers.models.autoencoder_kl'

shisheng660 commented 7 months ago

File "E:\ComfyUI-aki-v1.1\custom_nodes\ComfyUI_Seg_VITON\cldm\cldm.py", line 14, in from ldm.models.diffusion.ddpm import LatentDiffusion File "E:\ComfyUI-aki-v1.1\custom_nodes\ComfyUI_Seg_VITON\ldm\models\diffusion\ddpm.py", line 26, in from diffusers.models.autoencoder_kl import AutoencoderKLOutput ModuleNotFoundError: No module named 'diffusers.models.autoencoder_kl'

Prompt executed in 14.16 seconds

I got the same error. How did you fix it, Thanks!

florestefano1975 commented 7 months ago

File "E:\ComfyUI-aki-v1.1\custom_nodes\ComfyUI_Seg_VITON\cldm\cldm.py", line 14, in from ldm.models.diffusion.ddpm import LatentDiffusion File "E:\ComfyUI-aki-v1.1\custom_nodes\ComfyUI_Seg_VITON\ldm\models\diffusion\ddpm.py", line 26, in from diffusers.models.autoencoder_kl import AutoencoderKLOutput ModuleNotFoundError: No module named 'diffusers.models.autoencoder_kl'

Prompt executed in 14.16 seconds

I got the same error. How did you fix it, Thanks!

I have updated ComfyUI and several nodes. However I encountered further errors and am still looking for a solution.

whmc76 commented 7 months ago

anyone fix this ?

shisheng660 commented 6 months ago

File "E:\ComfyUI-aki-v1.1\custom_nodes\ComfyUI_Seg_VITON\cldm\cldm.py", line 14, in from ldm.models.diffusion.ddpm import LatentDiffusion File "E:\ComfyUI-aki-v1.1\custom_nodes\ComfyUI_Seg_VITON\ldm\models\diffusion\ddpm.py", line 26, in from diffusers.models.autoencoder_kl import AutoencoderKLOutput ModuleNotFoundError: No module named 'diffusers.models.autoencoder_kl' Prompt executed in 14.16 seconds I got the same error. How did you fix it, Thanks!

I have updated ComfyUI and several nodes. However I encountered further errors and am still looking for a solution.

I may have solved this problem, but I'm encountering new ones

This my solution: Open custom_nodes\ComfyUI_Seg_VITON\ldm\models\diffusion\ddpm.py Code: """ from diffusers.models.autoencoder_kl import AutoencoderKLOutput from diffusers.models.vae import DecoderOutput """ to """ from diffusers.models.autoencoders.autoencoder_kl import AutoencoderKLOutput from diffusers.models.autoencoders.vae import DecoderOutput """ This path will change when you move to a new version of the software