CUIComfyUI Setup
Локальная нейросетевая среда
Local neural network runtime

Установка ComfyUI

Install ComfyUI

Пошаговое руководство по развертыванию локального сервера ComfyUI на Windows. Данная конфигурация оптимизирована для работы с Photoshop-плагином Flux2 Klein.

Step-by-step guide to deploying a local ComfyUI server on Windows. This configuration is optimized to run seamlessly with the Flux2 Klein Photoshop plugin.

Требования к оборудованию

Hardware requirements

Поскольку генерация Flux2 Klein происходит локально на вашем компьютере, ее скорость и стабильность напрямую зависят от аппаратной начинки.

Since Flux2 Klein generation runs locally on your PC, its speed and stability depend heavily on your hardware specifications.

NVIDIA

Видеокарта

Graphics Card

GPU с архитектурой CUDA. Видеокарты AMD и встроенные графические чипы Intel/Apple не поддерживаются плагином.

GPU with CUDA architecture. AMD cards and integrated Intel/Apple graphics are not supported by the plugin.

8GB

Видеопамять

Video VRAM

Минимум 6 ГБ VRAM для запуска, но рекомендуется от 8 ГБ и выше для быстрой генерации без сбоев памяти.

Minimum 6 GB VRAM to run, but 8 GB or more is highly recommended for faster speed without out-of-memory errors.

16GB

ОЗУ (RAM)

System RAM

Минимум 16 ГБ системной памяти. При генерации тяжелых моделей часть весов временно выгружается в ОЗУ.

Minimum 16 GB of system memory. When running heavy models, parts of the weights are swapped out to RAM.

SSD

Накопитель

Storage Drive

Крайне рекомендуется установка на скоростной SSD. Модели весят много, скорость загрузки с диска критична.

Highly recommended to install on a fast SSD. Model files are huge, and disk read speed is crucial.

Пошаговый процесс установки

Step-by-step installation

1
Скачайте ComfyUI Standalone Portable
Download ComfyUI Standalone Portable
Портативная сборка со встроенной средой Python.
Portable standalone archive with embedded Python.
Download

Перейдите на официальный репозиторий проекта и скачайте архив Direct Link. Распакуйте его с помощью архиватора 7-Zip в корень вашего диска (например, C:\ComfyUI_windows_portable).

Go to the official project repository and download the Direct Link archive. Extract it using 7-Zip to the root of your drive (e.g. C:\ComfyUI_windows_portable).

2
Установите ComfyUI Manager
Install ComfyUI Manager
Инструмент для автоматической загрузки нод и моделей.
Essential tool to automate missing node installations.
git clone

Перейдите в папку ComfyUI_windows_portable/ComfyUI/custom_nodes/ в проводнике. В адресной строке введите cmd, нажмите Enter и выполните команду клонирования репозитория:

Navigate to ComfyUI_windows_portable/ComfyUI/custom_nodes/ in Explorer. Type cmd in the address bar, hit Enter, and run the clone command:

Terminal / Console
git clone https://github.com/ltdrdata/ComfyUI-Manager.git
3
Разложите модели по папкам
Place Model Files
Размещение весов Flux2 Klein по каталогам.
Distribute Flux2 Klein weights to their folders.
models

Скачайте три файла моделей (ссылки в разделе ниже) и распределите их строго по указанным путям в директории ComfyUI/models/:

Download the three model files (links in the section below) and place them exactly into their designated paths inside ComfyUI/models/:

Структура папокFolder structure
ComfyUI/models/
├── diffusion_models/   <-- flux-2-klein-9b-fp8.safetensors
├── text_encoders/      <-- qwen_3_8b_fp8mixed.safetensors
└── vae/                <-- flux2-vae.safetensors
4
Настройте запуск с аргументом --listen
Configure Launch with --listen Argument
Настройка BAT-файла для связи с плагином Photoshop.
Edit the run BAT file to establish plugin connectivity.
bat-edit

Откройте файл run_nvidia_gpu.bat в любом текстовом редакторе (например, в Блокноте). Найдите строку запуска Python и добавьте --listen в самый конец строки. Сохраните изменения.

Open the run_nvidia_gpu.bat file in a text editor (like Notepad). Locate the Python launch command and add --listen to the very end of that line. Save the changes.

run_nvidia_gpu.bat (Содержимое)run_nvidia_gpu.bat (Content)
.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build --listen
5
Запустите сервер и загрузите workflow
Launch Server & Load Workflow
Проверка работы и запуск веб-интерфейса.
Start the application and verify layout works.
ready

Дважды кликните по измененному файлу run_nvidia_gpu.bat. Дождитесь открытия окна консоли. Перейдите по адресу http://127.0.0.1:8188 в браузере, перетащите файл workflow JSON в окно и сделайте тестовую генерацию.

Double-click the modified run_nvidia_gpu.bat. Wait for the terminal console to launch. Navigate to http://127.0.0.1:8188 in your web browser, drag & drop the workflow JSON file onto the canvas, and run a test generation.

Где скачать файлы моделей

Model files downloads

Для работы Flux2 Klein в инпейнт-режиме необходима данная связка весов. Не используйте сторонние VAE или текстовые кодировщики.

Flux2 Klein inpainting relies on this precise set of model files. Avoid replacing them with unsupported VAEs or text encoders.

Параметры запуска ComfyUI

ComfyUI launch arguments

Ниже приведена таблица полезных аргументов командной строки, которые можно прописать в файле run_nvidia_gpu.bat для оптимизации памяти и настройки сети.

Below is a quick reference table of useful command-line arguments you can add to your run_nvidia_gpu.bat to optimize performance or configure server access.

ПараметрArgument ОписаниеDescription Когда использоватьWhen to use
--listen Слушать все сетевые интерфейсы. Позволяет подключаться к серверу с других ПК или плагинов. Listen on all network interfaces. Allows connections from other devices or plugins. Обязательно для плагина Photoshop.Mandatory for the Photoshop plugin.
--port [номер] Задать альтернативный порт сервера (по умолчанию: 8188). Set alternative server port (default: 8188). Если порт 8188 занят другим процессом.If port 8188 is already in use by another app.
--lowvram Режим жесткой экономии видеопамяти. Переносит вычисления в ОЗУ. Drastically reduces VRAM usage. Offloads calculations to system RAM. Для видеокарт с объемом VRAM менее 6 ГБ.For cards with less than 6 GB VRAM.
--highvram Кэшировать все модели в видеопамяти без выгрузки на системный диск. Caches all model weights in VRAM without unloading. Для карт с 16 ГБ VRAM и более для максимальной скорости.For GPUs with 16 GB+ VRAM to maximize speed.
--preview-method auto Включает плавную отрисовку шагов генерации на лету. Enables visual preview rendering of generation steps on the fly. Для визуального контроля этапов ретуши.To visually monitor active generation stages.