Kosinkadink / ComfyUI-AnimateDiff-Evolved

Improved AnimateDiff for ComfyUI and Advanced Sampling Support
Apache License 2.0
2.37k stars 180 forks source link

IMPORT FAILED since updating #169

Closed Troyificus closed 8 months ago

Troyificus commented 8 months ago

Hi, I saw someone opened a ticket for this a few hours ago and you made an update the fixed it for them, however I'm still having the same problem despite having updated again after the most recent fix.

Here's my output when starting comfyui:

C:\Users\Trism\ComfyUI_windows_portable>.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build ** ComfyUI start up time: 2023-11-09 15:48:56.773190

Prestartup times for custom nodes: 0.0 seconds: C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\custom_nodes\rgthree-comfy 0.0 seconds: C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager-main

Total VRAM 11264 MB, total RAM 32681 MB xformers version: 0.0.21 Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce GTX 1080 Ti : cudaMallocAsync VAE dtype: torch.float32 Using xformers cross attention Adding extra search path checkpoints path/to/stable-diffusion-webui/models/Stable-diffusion Adding extra search path configs path/to/stable-diffusion-webui/models/Stable-diffusion Adding extra search path vae path/to/stable-diffusion-webui/models/VAE Adding extra search path loras path/to/stable-diffusion-webui/models/Lora Adding extra search path loras path/to/stable-diffusion-webui/models/LyCORIS Adding extra search path upscale_models path/to/stable-diffusion-webui/models/ESRGAN Adding extra search path upscale_models path/to/stable-diffusion-webui/models/RealESRGAN Adding extra search path upscale_models path/to/stable-diffusion-webui/models/SwinIR Adding extra search path embeddings path/to/stable-diffusion-webui/embeddings Adding extra search path hypernetworks path/to/stable-diffusion-webui/models/hypernetworks Adding extra search path controlnet path/to/stable-diffusion-webui/models/ControlNet Traceback (most recent call last): File "C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1735, in load_custom_node module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved__init__.py", line 3, in from .animatediff.model_utils import get_available_motion_models, Folders File "C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\model_utils.py", line 9, in from comfy.model_base import SDXL, BaseModel, model_sampling ImportError: cannot import name 'model_sampling' from 'comfy.model_base' (C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\comfy\model_base.py)

Cannot import C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved module for custom nodes: cannot import name 'model_sampling' from 'comfy.model_base' (C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\comfy\model_base.py) Package diffusers is already installed.

Loading: ComfyUI-Impact-Pack (V4.30.2)

[WARN] ComfyUI-Impact-Pack: ComfyUI or ComfyUI-Manager is an outdated version.

Loading: ComfyUI-Impact-Pack (Subpack: V0.3)

Loading: ComfyUI-Inspire-Pack (V0.39)

Loading: ComfyUI-Manager (V0.32)

ComfyUI Revision: UNKNOWN (The currently installed ComfyUI is not a Git repository)

Total VRAM 11264 MB, total RAM 32681 MB xformers version: 0.0.21 Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce GTX 1080 Ti : cudaMallocAsync VAE dtype: torch.float32 Torch version: 2.0.1+cu118 Comfyroll Custom Nodes: Loaded FizzleDorf Custom Nodes: Loaded Efficiency Nodes: Attempting to add Control Net options to the 'HiRes-Fix Script' Node (comfyui_controlnet_aux add-on)...Success! Efficiency Nodes: Attempting to add 'AnimatedDiff Script' Node (ComfyUI-AnimateDiff-Evolved add-on)...Failed! Total VRAM 11264 MB, total RAM 32681 MB xformers version: 0.0.21 Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce GTX 1080 Ti : cudaMallocAsync VAE dtype: torch.float32 Downloading anime face detector... Failed to download lbpcascade_animeface.xml so please download it in C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\custom_nodes\IPAdapter-ComfyUI. Traceback (most recent call last): File "C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1735, in load_custom_node module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\custom_nodes\IPAdapter-ComfyUI__init__.py", line 2, in from .ip_adapter import IPAdapter File "C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\custom_nodes\IPAdapter-ComfyUI\ip_adapter.py", line 8, in from comfy.clip_vision import clip_preprocess ImportError: cannot import name 'clip_preprocess' from 'comfy.clip_vision' (C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\comfy\clip_vision.py)

Cannot import C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\custom_nodes\IPAdapter-ComfyUI module for custom nodes: cannot import name 'clip_preprocess' from 'comfy.clip_vision' (C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\comfy\clip_vision.py)

[rgthree] Loaded 15 exciting nodes. [rgthree] Optimizing ComfyUI recursive execution. If queueing and/or re-queueing seems broken, change "patch_recursive_execution" to false in rgthree_config.json

Searge-SDXL v4.3.1 in C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\custom_nodes\SeargeSDXL WARNING: Ignoring invalid distribution -illow (c:\users\trism\comfyui_windows_portable\python_embeded\lib\site-packages) WARNING: Ignoring invalid distribution -rotobuf (c:\users\trism\comfyui_windows_portable\python_embeded\lib\site-packages) WAS Node Suite: OpenCV Python FFMPEG support is enabled WAS Node Suite Warning: ffmpeg_bin_path is not set in C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui\was_suite_config.json config file. Will attempt to use system ffmpeg binaries if available. WARNING: Ignoring invalid distribution -illow (c:\users\trism\comfyui_windows_portable\python_embeded\lib\site-packages) WARNING: Ignoring invalid distribution -rotobuf (c:\users\trism\comfyui_windows_portable\python_embeded\lib\site-packages) WAS Node Suite: Finished. Loaded 197 nodes successfully.

    "Every strike brings me closer to the next home run." - Babe Ruth

Import times for custom nodes: 0.0 seconds: C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\custom_nodes\sdxl_utility.py 0.0 seconds: C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\custom_nodes\Mile_High_Styler 0.0 seconds: C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\custom_nodes\sdxl_prompt_styler 0.0 seconds: C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\custom_nodes\stability-ComfyUI-nodes 0.0 seconds: C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Advanced-ControlNet 0.0 seconds: C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_UltimateSDUpscale 0.0 seconds: C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\custom_nodes\cg-prompt-info 0.0 seconds: C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite 0.0 seconds: C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\custom_nodes\Derfuu_ComfyUI_ModdedNodes 0.0 seconds: C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\custom_nodes\efficiency-nodes-comfyui 0.0 seconds (IMPORT FAILED): C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\custom_nodes\IPAdapter-ComfyUI 0.0 seconds (IMPORT FAILED): C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved 0.0 seconds: C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\custom_nodes\facerestore 0.0 seconds: C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux 0.1 seconds: C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Comfyroll_CustomNodes 0.2 seconds: C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager-main 0.2 seconds: C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Inspire-Pack 0.3 seconds: C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\custom_nodes\SeargeSDXL 0.4 seconds: C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\custom_nodes\rgthree-comfy 0.4 seconds: C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-flowty-lcm 0.8 seconds: C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node 1.1 seconds: C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_FizzNodes 3.8 seconds: C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui 4.5 seconds: C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack

Starting server

To see the GUI go to: http://127.0.0.1:8188 FETCH DATA from: C:\Users\Trism\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager-main\extension-node-map.json

Troyificus commented 8 months ago

NEVER MIND! I hadn't kept ComfyUI itself updated, issue was fixed once I did that. Always keep your stuff updated, folks!

Kosinkadink commented 8 months ago

Hey, in your case, I think your issue is your ComfyUi is outdated - model_sampling was added into ComfyUI as a thing I need to use over a week ago. Update your ComfyUI, and your problem will be solved. If it's not, that means whatever method you used to try to update ComfyUi failed.

Kosinkadink commented 8 months ago

Whoops, I see you found the solution too while I was typing haha, no worries!

flov commented 7 months ago

Thanks! Just ran into the same issue, started the standard comfyUI template on runpod, but going into the shell and doing a git fetch && git merge origin/main in the comfy directory did the trick