Ir para o conteúdo
Node packVerificadoExterno
Fonte aberta

ComfyUI-N-Nodes

A suite of custom nodes for ConfyUI that includes GPT text-prompt generation, LoadVideo, SaveVideo, LoadFramesFromFolder and FrameInterpolator

Mantenedor@Nuked88A · adoptionnota

Perfil do pacote

Status
Verificado
Publicador
@Nuked88
Fonte
GitHub

README

ko-fi

ComfyUI-N-Suite

A suite of custom nodes for ComfyUI that includes integer, string and float variable nodes, image-captioning nodes and video nodes.

The nodes support ComfyUI's Python environment on Windows and Linux. The current dependencies include MoviePy 2, timm 1.0.22 or newer, accelerate 1.x, and transformers 4.36.2 through 4.x.

Installation

  1. Install ComfyUI-N-Nodes through ComfyUI Manager (recommended). For a manual install, clone https://github.com/Nuked88/ComfyUI-N-Nodes.git into ComfyUI's custom_nodes directory and run python -m pip install -r requirements.txt using the same Python environment that runs ComfyUI.
  2. Ensure ComfyUI/models/GPTcheckpoints is writable by the ComfyUI process so Moondream and JoyTag can download their models.
  3. Restart ComfyUI. The extension clones pinned RIFE code and downloads its pinned model at startup on a fresh install; an internet connection is needed for that first startup.

ComfyUI automatically loads all custom scripts and nodes at startup.

[!IMPORTANT] Breaking change in 1.2.0: llama-cpp-python integration has been removed because its platform-specific installation was the main source of installation and startup failures. GGUF text-generation models and LLaVA nodes are therefore no longer available in N-Suite. Existing workflows using Llava Clip Loader must remove that node; GPT Loader Simple and GPT Sampler now support only Moondream and JoyTag. N-Suite no longer detects, downloads, or installs llama-cpp-python.

[!WARNING] The Llava Clip Loader node and the GGUF text-generation path of GPT Loader Simple / GPT Sampler have been removed. To keep using those legacy nodes, install the last revision that contains them with git checkout ae7cc84. That revision is unsupported and retains the llama-cpp-python installation problems; use it in a separate ComfyUI installation or Python environment.

[!NOTE]
Since 14/02/2024, the node has undergone a massive rewrite, which also led to the change of all node names in order to avoid any conflicts with other extensions in the future (or at least I hope so). Consequently, the old workflows are no longer compatible and will require manual replacement of each node. To avoid this, I have created a tool that allows for automatic replacement. On Windows, simply drag any *.json workflow onto the migrate.bat file located in (custom_nodes/ComfyUI-N-Nodes), and another workflow with the suffix _migrated will be created in the same folder as the current workflow. On Linux, you can use the script in the following way: python libs/migrate.py path/to/original/workflow/. For security reasons, the original workflow will not be deleted." For install the last version of this repository before this changes from the Comfyui-N-Suite execute git checkout 29b2e43baba81ee556b2930b0ca0a9c978c47083

For uninstallation, remove the extension through ComfyUI Manager or delete its folder from custom_nodes, then restart ComfyUI. Model files in models/GPTcheckpoints are user data and can be kept for a later reinstall.

Update

Update through ComfyUI Manager. For a manual install, run git pull in the cloned extension directory, install requirements.txt again in ComfyUI's Python environment, and restart ComfyUI.

Test workflow

examples/N-Suite-all-nodes-test.json connects all 14 N-Suite node types in one workflow. Follow the test instructions to add an image, a short MP4, and numbered PNG frames before running it.

Features

📽️ Video Nodes 📽️

LoadVideo

alt text

The LoadVideoAdvanced node allows loading a video file and extracting frames from it. The name has been changed from LoadVideo to LoadVideoAdvanced in order to avoid conflicts with the LoadVideo animatediff node.

Input Fields

  • `vid

Nós neste pacote

Nós 14
  • CLIPTextEncodeAdvancedNSuite [n-suite]
  • DynamicPrompt [n-suite]
  • Float Variable [n-suite]
  • FrameInterpolator [n-suite]
  • GPT Loader Simple [n-suite]
  • GPT Sampler [n-suite]
  • ImagePadForOutpaintAdvanced [n-suite]
  • Integer Variable [n-suite]
  • LoadFramesFromFolder [n-suite]
  • LoadImageFromFolder [n-suite]
  • LoadVideo [n-suite]
  • SaveVideo [n-suite]
  • SetMetadataForSaveVideo [n-suite]
  • String Variable [n-suite]

Recursos relacionados

2 conexões

Fontes

3 fontes
GitHubFonte
github.com/Nuked88/ComfyUI-N-Nodes

Verificado 4 de nov.

GitHubFonteVersão 76e02e80e3bdbce58ed4ceb330089cfc00d4aefb
github.com/Nuked88/ComfyUI-N-Nodes

Verificado 12 de out.

Trechos de fonte

1 trecho

Source context: Repo Nuked88/ComfyUI-N-Nodes