Apache License 2.0

项目介绍

cancer32/ComfyEnv 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 Apache License 2.0 许可证,目前获得 18 个 Star、4 次 Fork。

仓库全名
cancer32/ComfyEnv
开源许可证
Apache License 2.0
Star 数
18
Fork 数
4
未关闭 Issue
1

README 摘要

ComfyEnv: An Environment Manager for ComfyUI ComfyUI is incredibly flexible, but installing different custom nodes or dependencies often leads to conflicts that can break existing setups. ComfyEnv helps you manage isolated environments, so each project or node set can live in its own stable sandbox. Supported Platforms: ✅ Windows ✅ Linux ❌ macOS is currently not supported Features Isolated Conda environments per…

完整内容见 GitHub 原始 README 或本页 。

常见问题

ComfyEnv 用什么语言开发?

主要使用 Python 编写,采用 Apache License 2.0 许可证,目前有 18 个 Star。

ComfyEnv 可以免费商用吗?

仓库采用 Apache License 2.0 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 ComfyEnv 的源码?

可以直接克隆仓库:git clone https://github.com/cancer32/ComfyEnv.git,默认分支为 main;安装与运行步骤见仓库 README。

ComfyEnv 最近还在维护吗?

仓库最近一次更新为 6月28日,当前有 1 个未关闭 Issue;Star 数为 18,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

An environment manager for ComfyUI

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
26
价值分
11
活跃状态
活跃

语言占比

Batchfile
Python
Shell

贡献者

README

ComfyEnv: An Environment Manager for ComfyUI

image info

ComfyUI is incredibly flexible, but installing different custom nodes or dependencies often leads to conflicts that can break existing setups. ComfyEnv helps you manage isolated environments, so each project or node set can live in its own stable sandbox.

Supported Platforms:

✅ Windows ✅ Linux ❌ macOS is currently not supported


Features

  • Isolated Conda environments per ComfyUI setup
  • Install and run ComfyUI without dependency conflicts
  • Clean separation of node configurations
  • CLI and GUI interface for managing environments
  • Flexibility to configure the environments

Requirements

Before using ComfyEnv, make sure the following are installed:

  • Miniconda3
  • Git
  • NVIDIA GPU (Required) - AMD and Intel GPUs are not supported

Installation

conda activate
git clone https://github.com/cancer32/ComfyEnv.git
cd ComfyEnv
pip install -r requirements.txt

chmod +x bin/comfy-env bin/env-manager            # For Linux Only

⚠️ Set CONDA_ROOT environment variable (if it gives error)

  • Set the CONDA_ROOT environment variable to the root path of your Miniconda installation eg. C:\ProgramData\miniconda3 in the user’s startup profile

  • OR edit the bin/_conda_root[.bat], uncomment the below line, set the CONDA_ROOT path and Save.

    Windows bin/_conda_root.bat

    REM ##########################################
    REM Uncomment and set CONDA_ROOT path below
    set CONDA_ROOT=/path/to/miniconda3
    REM ##########################################
    

    Linux bin/_conda_root

    ##########################################
    # Uncomment and set CONDA_ROOT path below
    export CONDA_ROOT=/path/to/miniconda3
    ##########################################
    

Usage

GUI Interface

  • For Windows run bin/env-manager.bat file from explorer
  • For Linux execute bin/env-manager file from shell

CLI Interface

# Create a new environment
# Note: Edit "nvidia_requirements.txt" file if you want to install specific pytorch version for environment
bin/comfy-env create -n my-env --python=3.13 --comfyui-version=v0.26.2

# List all environments
bin/comfy-env list

# Run ComfyUI inside an environment
bin/comfy-env run -n my-env -- [comfyui args]

# Stop ComfyUI running in an environment
bin/comfy-env stop -n my-env

# Get status of an environment (returns JSON with running state, PID, port, etc.)
bin/comfy-env status -n my-env

Directory Structure

ComfyEnv/
├── bin/
│   └── comfy-env        # The main CLI interface
│   └── env-manager      # The main GUI interface
├── envs/                # Contains all isolated environments
│   └── <env_name>/      # A specific ComfyUI environment
├── models/              # Shared models directory accessible to all environments
│   └── checkpoints/
│   └── vae/
│   └── .../

TODO:

  • Check if env exists before creating a new one with the same name
  • Replace the models path and set extra_model_path_config.yml from dynamically while running the environment
  • Change module names to avoid naming conflict
  • Add status command to get the running status of the comfy environment
  • Custom port is not getting set while opening comfy through browser button

评论

暂无评论