Code Monkey home page Code Monkey logo

Comments (6)

ltdrdata avatar ltdrdata commented on September 28, 2024

I guess this issue related to directory recognition. I need to check the portable version.
Which one do you running?

https://github.com/comfyanonymous/ComfyUI/releases

from comfyui-impact-pack.

robertvoy avatar robertvoy commented on September 28, 2024

Thank you!

I'm using this one:

Download Link with stable pytorch 2.0 cu118 + xformers

from comfyui-impact-pack.

ltdrdata avatar ltdrdata commented on September 28, 2024

Thank you!

I'm using this one:

Download Link with stable pytorch 2.0 cu118 + xformers

I just tested on that version.
There is no problem under this installation steps.

  1. unzip portable version
  2. goto ComfyUI/custom_nodes
  3. git clone https://github.com/ltdrdata/ComfyUI-Impact-Pack
  4. launch run_cpu.bat

Is this your installation steps, too?
In that case...

open install.py. Then you can see this code.

import os
import sys
import subprocess


comfy_path = '../..'

sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), "comfy"))
sys.path.append(comfy_path)


import platform
import folder_paths
from torchvision.datasets.utils import download_url
import impact_config
...

add logging code like this..

import os
import sys
import subprocess


comfy_path = '../..'

sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), "comfy"))
sys.path.append(comfy_path)

print(f"__File__ path: {os.path.realpath(__file__)}")            # ADD THIS CODE 
print(f"comfy_path: {os.path.realpath(comfy_path)}")             # 
print(f"comfy_path: {os.path.realpath('.')}")                    # 
print(f"impact_config: {os.path.exists('impact_config.py')}")    # 

import platform
import folder_paths
from torchvision.datasets.utils import download_url
import impact_config
...

and launch show me the console message.

from comfyui-impact-pack.

robertvoy avatar robertvoy commented on September 28, 2024

My installation steps are:

  1. unzip portable version
  2. goto ComfyUI/custom_nodes
  3. git clone https://github.com/ltdrdata/ComfyUI-Impact-Pack
  4. cd ComfyUI-Impact-Pack
  5. PS C:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-Impact-Pack> C:\ComfyUI\python_embeded\python.exe install.py

In step 5, after changing the code as you requested, I get this error:

__File__ path: C:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-Impact-Pack\install.py comfy_path: C:\ComfyUI\ComfyUI comfy_path: C:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-Impact-Pack impact_config: True Traceback (most recent call last): File "C:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-Impact-Pack\install.py", line 19, in <module> import impact_config ModuleNotFoundError: No module named 'impact_config'

I've gone ahead and installed the below manually:

pip install

  • openmim
  • segment-anything
  • pycocotools
  • onnxruntime

mim install

  • mmcv==2.0.0, mmdet==3.0.0, mmengine==0.7.2

It seems to work sometimes. Half of the time it seems to skip without any error in the console. Maybe it doesn't detect a face, I'm not sure.

from comfyui-impact-pack.

ltdrdata avatar ltdrdata commented on September 28, 2024

My installation steps are:

  1. unzip portable version
  2. goto ComfyUI/custom_nodes
  3. git clone https://github.com/ltdrdata/ComfyUI-Impact-Pack
  4. cd ComfyUI-Impact-Pack
  5. PS C:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-Impact-Pack> C:\ComfyUI\python_embeded\python.exe install.py

In step 5, after changing the code as you requested, I get this error:

__File__ path: C:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-Impact-Pack\install.py comfy_path: C:\ComfyUI\ComfyUI comfy_path: C:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-Impact-Pack impact_config: True Traceback (most recent call last): File "C:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-Impact-Pack\install.py", line 19, in <module> import impact_config ModuleNotFoundError: No module named 'impact_config'

I've gone ahead and installed the below manually:

pip install

  • openmim
  • segment-anything
  • pycocotools
  • onnxruntime

mim install

  • mmcv==2.0.0, mmdet==3.0.0, mmengine==0.7.2

It seems to work sometimes. Half of the time it seems to skip without any error in the console. Maybe it doesn't detect a face, I'm not sure.

Try recent version. I've fixed this issue.
Now, you can execute install.py manually on portable version.

Additionally, you don't need execute install.py. It will executed automatically during initial launch.
I updated installation guide.

from comfyui-impact-pack.

robertvoy avatar robertvoy commented on September 28, 2024

Thank you for that.

from comfyui-impact-pack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.