comfyanonymous / ComfyUI

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface.
https://www.comfy.org/
GNU General Public License v3.0
50.96k stars 5.35k forks source link

create venv for each node respectively #3173

Open longge0126 opened 5 months ago

longge0126 commented 5 months ago

some nodes cause conflicts each other(they need different edition), may i create virtural environment to run the requirement for each node respectively in portable edition?

bigcat88 commented 5 months ago

no, it is not possible from technical perspective.

only a separate venv for one worklow is possible

kakachiex2 commented 5 months ago

You can create a ComfyUI with miniconda venv for experimental extension like I do, I have three comfyui install everyone with his own venv folder:

longge0126 commented 5 months ago

You can create a ComfyUI with miniconda venv for experimental extension like I do, I have three comfyui install everyone with his own venv folder:

  • :: ComfyUI for all apparel model like VITON | ODD diffusion etc... that use old library and cause conflict with other node extensions.
  • :: ComfyUI stable for all stable extensions
  • :: ComfyUI3d for all 3d technology like 3DPack | TripoSR etc...

en……then how to decide which comfyui should you launch? does it mean you may lose the other two comfyui ‘ nodes everytime?

kakachiex2 commented 5 months ago

Every comfyui is independent with his own folder, you launch the one you need at the moment keep in mind you need lots of space for this

kakachiex2 commented 5 months ago

This is my folder structure

kakachiex2 commented 5 months ago

Inside experimental folder this is the structure: :: > ComfyUI folder :: > python_miniconda_env Screenshot 2024-03-30 213953

longge0126 commented 5 months ago

Inside experimental folder this is the structure: :: > ComfyUI folder :: > python_miniconda_env Screenshot 2024-03-30 213953

so i still cant use conflict nodes at the same time?