|
| 1 | +--- |
| 2 | +icon: material/vector-line |
| 3 | +--- |
| 4 | + |
| 5 | +We provide a set of custom nodes for ComfyUI that allow you to easily use some of Refiners' models and utilities in your ComfyUI workflows. |
| 6 | + |
| 7 | +## Installation |
| 8 | + |
| 9 | +The nodes are published at <https://registry.comfy.org/publishers/finegrain/nodes/comfyui-refiners>. |
| 10 | + |
| 11 | +### Requirements |
| 12 | + |
| 13 | +1\. Install python (>=3.10): |
| 14 | +=== "Linux" |
| 15 | + ```bash |
| 16 | + sudo apt install python3 |
| 17 | + ``` |
| 18 | +=== "Windows" |
| 19 | + ```powershell |
| 20 | + winget install -e --id Python.Python.3.11 |
| 21 | + ``` |
| 22 | + |
| 23 | +2\. Install git: |
| 24 | +=== "Linux" |
| 25 | + ```bash |
| 26 | + sudo apt install git |
| 27 | + ``` |
| 28 | +=== "Windows" |
| 29 | + ```powershell |
| 30 | + winget install -e --id Git.Git |
| 31 | + ``` |
| 32 | + |
| 33 | +3\. (Optional) Create a python virtual environment: |
| 34 | +=== "Linux" |
| 35 | + ```bash |
| 36 | + ~/Documents/comfy$ python -m venv .venv |
| 37 | + ~/Documents/comfy$ source .venv/bin/activate |
| 38 | + ``` |
| 39 | +=== "Windows" |
| 40 | + ```powershell |
| 41 | + PS C:\Users\Laurent\Documents\comfy> python -m venv .venv |
| 42 | + PS C:\Users\Laurent\Documents\comfy> .\.venv\Scripts\activate |
| 43 | + ``` |
| 44 | + |
| 45 | +4\. Install [comfy-cli](https://docs.comfy.org/comfy-cli/getting-started): |
| 46 | +=== "Linux" |
| 47 | + ```bash |
| 48 | + (.venv) ~/Documents/comfy$ pip install comfy-cli |
| 49 | + ``` |
| 50 | +=== "Windows" |
| 51 | + ```powershell |
| 52 | + (.venv) PS C:\Users\Laurent\Documents\comfy> pip install comfy-cli |
| 53 | + ``` |
| 54 | + |
| 55 | +5\. Install [ComfyUI](https://github.com/comfyanonymous/ComfyUI): |
| 56 | +=== "Linux" |
| 57 | + ```bash |
| 58 | + (.venv) ~/Documents/comfy$ comfy --here install |
| 59 | + ``` |
| 60 | +=== "Windows" |
| 61 | + ```powershell |
| 62 | + (.venv) PS C:\Users\Laurent\Documents\comfy> comfy --here install |
| 63 | + ``` |
| 64 | + |
| 65 | +### Comfy Registry (recommended) |
| 66 | + |
| 67 | +1\. Install the [comfyui-refiners](https://registry.comfy.org/publishers/finegrain/nodes/comfyui-refiners) custom nodes: |
| 68 | +=== "Linux" |
| 69 | + ```bash |
| 70 | + (.venv) ~/Documents/comfy$ comfy node registry-install comfyui-refiners |
| 71 | + ``` |
| 72 | +=== "Windows" |
| 73 | + ```powershell |
| 74 | + (.venv) PS C:\Users\Laurent\Documents\comfy> comfy node registry-install comfyui-refiners |
| 75 | + ``` |
| 76 | + |
| 77 | +2\. Ensure that comfyui-refiners's dependencies are installed: |
| 78 | +=== "Linux" |
| 79 | + ```bash |
| 80 | + (.venv) ~/Documents/comfy$ pip install -r ./ComfyUI/custom_nodes/comfyui-refiners/requirements.txt |
| 81 | + ``` |
| 82 | +=== "Windows" |
| 83 | + ```powershell |
| 84 | + (.venv) PS C:\Users\Laurent\Documents\comfy> pip install -r .\ComfyUI\custom_nodes\comfyui-refiners\requirements.txt |
| 85 | + ``` |
| 86 | + |
| 87 | +3\. Start ComfyUI: |
| 88 | +=== "Linux" |
| 89 | + ```bash |
| 90 | + (.venv) ~/Documents/comfy$ comfy launch |
| 91 | + ``` |
| 92 | +=== "Windows" |
| 93 | + ```powershell |
| 94 | + (.venv) PS C:\Users\Laurent\Documents\comfy> comfy launch |
| 95 | + ``` |
| 96 | + |
| 97 | +### Manually |
| 98 | + |
| 99 | +To manually install the nodes, you may alternatively do the following: |
| 100 | + |
| 101 | +1. Download an archive of the nodes by cliking the "Download Latest" button at <https://registry.comfy.org/publishers/finegrain/nodes/comfyui-refiners>, or by running the following command: |
| 102 | +```shell |
| 103 | +curl -o comfyui-refiners.zip https://storage.googleapis.com/comfy-registry/finegrain/comfyui-refiners/1.0.4/node.tar.gz |
| 104 | +``` |
| 105 | + |
| 106 | +2. Extract the archive to the `custom_nodes` directory: |
| 107 | +```shell |
| 108 | +unzip -d custom_nodes/comfyui-refiners comfyui-refiners.zip |
| 109 | +``` |
| 110 | + |
| 111 | +3. Install the nodes' dependencies: |
| 112 | +```shell |
| 113 | +pip install -r custom_nodes/comfyui-refiners/requirements.txt |
| 114 | +``` |
| 115 | + |
| 116 | +4. Remove the (now useless) downloaded archive: |
| 117 | +```shell |
| 118 | +rm comfyui-refiners.zip |
| 119 | +``` |
0 commit comments