{"id":17725407,"url":"https://github.com/ergonomech/comfyui-windows-installer","last_synced_at":"2025-03-31T14:20:00.930Z","repository":{"id":259311172,"uuid":"877135092","full_name":"ergonomech/comfyui-windows-installer","owner":"ergonomech","description":"Automated setup for ComfyUI on Windows with CUDA, custom plugins, and optimized PyTorch settings. Made to Run as Server and Error Correct,. Easy installation and launch using Miniconda.","archived":false,"fork":false,"pushed_at":"2025-01-03T09:24:01.000Z","size":1340,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T20:29:17.037Z","etag":null,"topics":["automation","comfy","conda","conda-environment","cuda","hosting-deployment","setup","windows"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ergonomech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-23T06:34:42.000Z","updated_at":"2025-01-03T09:24:04.000Z","dependencies_parsed_at":"2024-12-13T16:25:33.605Z","dependency_job_id":"4091122d-5d96-4230-a237-6051a8190f61","html_url":"https://github.com/ergonomech/comfyui-windows-installer","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"bea299d4f298c361aac3c906b8f3db5f0d82d64c"},"previous_names":["philglod/comfyui-windows-installer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ergonomech%2Fcomfyui-windows-installer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ergonomech%2Fcomfyui-windows-installer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ergonomech%2Fcomfyui-windows-installer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ergonomech%2Fcomfyui-windows-installer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ergonomech","download_url":"https://codeload.github.com/ergonomech/comfyui-windows-installer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246481004,"owners_count":20784458,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","comfy","conda","conda-environment","cuda","hosting-deployment","setup","windows"],"created_at":"2024-10-25T16:04:22.064Z","updated_at":"2025-03-31T14:20:00.908Z","avatar_url":"https://github.com/ergonomech.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ComfyUI Installation and Launcher for Windows\n![Header](readme_assets/header.png)\n\nThis guide provides detailed instructions for setting up and running ComfyUI on Windows using Miniconda. The goal is to simplify the installation process, integrate essential plugins for enhanced usability, and enable error correction with automatic relaunching of the server when needed. Additionally, it allows storing cache and models on separate drives, such as NAS or DAS storage, for optimized performance and storage management.\n\n## Prerequisites\n\nBefore running the installer, ensure that your system meets the following requirements:\n\n1. **Latest NVIDIA Driver**\n   - Download and install the latest NVIDIA drivers for your GPU from the [NVIDIA Driver Download page](https://www.nvidia.com/Download/index.aspx)\n   \n2. **Microsoft Visual C++ Build Tools**\n   - Install the Microsoft C++ Build Tools, which are necessary for compiling certain Python packages\n   - [Download Microsoft C++ Build Tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/)\n   \n3. **Miniconda**\n   - Install Miniconda for managing the Python environment\n   - [Download Miniconda](https://docs.conda.io/en/latest/miniconda.html)\n   - After installing Miniconda, initialize Conda by running the conda created console as Administrator:\n     ```bash\n     conda init --all --system\n     ```\n\n4. **Git**\n   - Install Git for cloning repositories and model management\n   - [Download Git](https://git-scm.com/downloads)\n   - Ensure Git LFS is installed for large file handling\n\n## Installation\n\n1. **Get the Installation Files**\n   - Clone this repository or download the provided scripts\n   - Ensure all batch files are in the same directory\n\n2. **Configure Environment Settings**\n   - Edit the `.env` file to customize your installation:\n     - Set model paths for external storage\n     - Configure cache locations\n     - Adjust environment variables\n     - Set custom directories for input/output\n\n3. **Run the Installation**\n   ```bash\n   install_comfy_windows.bat\n   ```\n   This will:\n   - Create a new Conda environment\n   - Install all required dependencies\n   - Clone ComfyUI and essential plugins\n   - Configure your specified paths\n\n## Model Installation\n\nUse `install_models.bat` to manage your model installation:\n```bash\ninstall_models.bat\n```\n\nModels are configured in `model_config.yaml` with the following structure:\n```yaml\nunet:\n  model_name:\n    repo_url: \"https://huggingface.co/...\"\n    include_files:\n      - specific_file.safetensors\n    \nvae:\n  model_name:\n    repo_url: \"https://huggingface.co/...\"\n    include_folder: vae\n```\n\n## Launching ComfyUI\n\n### Standard Launch\nStart ComfyUI using the launcher script:\n```bash\nlaunch_comfyui.bat\n```\nAccess the web interface at: `http://127.0.0.1:8188`\n\n### Running as a Windows Service\n\nFor a more robust setup, you can run ComfyUI as a Windows service using NSSM:\n\n1. **Install NSSM**\n   - Download NSSM from [nssm.cc](https://nssm.cc/download)\n   - Extract nssm.exe to a permanent location\n   - Add the NSSM directory to your system PATH\n\n2. **Create the Service**\n   ```bash\n   nssm install ComfyUI\n   ```\n\n3. **Configure Service Settings**\n   In the NSSM configuration window:\n   - Application Path: Full path to `launch_comfyui.bat`\n   - Start Directory: Your ComfyUI installation directory\n   - Service Name: ComfyUI\n   - Log on Tab: Select 'This Account' and use your Windows account\n   - I/O Tab: Set output and error logs paths\n\n4. **Start the Service**\n   ```bash\n   nssm start ComfyUI\n   ```\n\n5. **Additional Service Management**\n   ```bash\n   nssm stop ComfyUI            # Stop the service\n   nssm restart ComfyUI         # Restart the service\n   nssm remove ComfyUI confirm  # Remove the service\n   nssm edit ComfyUI           # Edit service configuration\n   ```\n\n## Maintaining Your Installation\n\n### Updates\nUpdate your installation with:\n```bash\ninstall_update_comfyui.bat\n```\n\n### Uninstallation\nRemove the installation with:\n```bash\nuninstall_comfyui.bat\n```\n\n## Included Custom Nodes\n- ComfyUI-Manager: Management interface\n- rgthree-comfy: Enhanced node collection\n- ComfyUI_IPAdapter_plus: IP-Adapter integration\n- ComfyUI-Impact-Pack: Advanced processing nodes\n- ComfyUI-Inspire-Pack: Creative workflow nodes\n- ComfyUI_ExtraModels: Additional model support\n- ComfyUI-GGUF: GGUF model support\n- comfyui-reactor-node: Face processing tools\n- ComfyUI-Adaptive-Guidance: Enhanced sampling controls\n\n## License\nThis project is released under the [MIT License](https://opensource.org/licenses/MIT).\n\n## Acknowledgments\n- ComfyUI by [comfyanonymous](https://github.com/comfyanonymous/ComfyUI)\n- All custom node developers listed in the included nodes section\n\nFor issues, updates, and contributions, please visit the project repository.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fergonomech%2Fcomfyui-windows-installer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fergonomech%2Fcomfyui-windows-installer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fergonomech%2Fcomfyui-windows-installer/lists"}