nosiu / comfyui-instantId-faceswap

Implementation of faceswap based on InstantID for ComfyUI.
Apache License 2.0
176 stars 14 forks source link

Cannot import PipelineImageInput #8

Open lyranmahir4 opened 4 months ago

lyranmahir4 commented 4 months ago
Traceback (most recent call last):
  File "/workspace/ComfyUI/nodes.py", line 1893, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 879, in exec_module
  File "<frozen importlib._bootstrap_external>", line 1016, in get_code
  File "<frozen importlib._bootstrap_external>", line 1073, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/workspace/ComfyUI/custom_nodes/.ipynb_checkpoints/__init__.py'

Cannot import /workspace/ComfyUI/custom_nodes/.ipynb_checkpoints module for custom nodes: [Errno 2] No such file or directory: '/workspace/ComfyUI/custom_nodes/.ipynb_checkpoints/__init__.py'
Traceback (most recent call last):
  File "/workspace/ComfyUI/nodes.py", line 1893, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-InstantID/__init__.py", line 2, in <module>
    from .nodes import InstantIDSampler
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-InstantID/nodes.py", line 7, in <module>
    from .pipeline_stable_diffusion_xl_instantid import StableDiffusionXLInstantIDPipeline, draw_kps
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-InstantID/pipeline_stable_diffusion_xl_instantid.py", line 26, in <module>
    from diffusers.image_processor import PipelineImageInput
ImportError: cannot import name 'PipelineImageInput' from 'diffusers.image_processor' (/usr/local/lib/python3.10/dist-packages/diffusers/image_processor.py)

Cannot import /workspace/ComfyUI/custom_nodes/ComfyUI-InstantID module for custom nodes: cannot import name 'PipelineImageInput' from 'diffusers.image_processor' (/usr/local/lib/python3.10/dist-packages/diffusers/image_processor.py)

In addition, I get these on the existing workflows: When loading the graph, the following node types were not found: FaceSwapSetupPipeline FaceEmbed FaceSwapGenerationInpaint Nodes that have failed to load will show as red on the graph.

nosiu commented 4 months ago

what's your diffusers version? requirements.txt should install 0.25.0

lyranmahir4 commented 4 months ago

Fixed now, It was having trouble because of another existing custom node of instantID But now I get this error: RuntimeError: Failed downloading url https://github.com/deepinsight/insightface/releases/download/v0.7/antelopev2.zip

what's your diffusers version? requirements.txt should install 0.25.0

lyranmahir4 commented 4 months ago

I have already downloaded the models manually as the readme instructions say, still this error keeps coming back

nosiu commented 4 months ago

There was an error in the readme. You cannot add a path for insightface inside YAML file. It needs to be in ComfyUI/models/