Skip to content

Commit 696cabb

Browse files
author
Laurent
committed
update comfyui_refiners docs
1 parent 79c9991 commit 696cabb

File tree

4 files changed

+122
-26
lines changed

4 files changed

+122
-26
lines changed
Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
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+
```

docs/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ icon: material/water-outline
1919
[![Discord](https://img.shields.io/discord/1179456777406922913?logo=discord&logoColor=white&color=%235765F2)](https://discord.gg/mCmjNUVV7d)
2020
[![HuggingFace - Refiners](https://img.shields.io/badge/refiners-ffd21e?logo=huggingface&labelColor=555)](https://huggingface.co/refiners)
2121
[![HuggingFace - Finegrain](https://img.shields.io/badge/finegrain-ffd21e?logo=huggingface&labelColor=555)](https://huggingface.co/finegrain)
22+
[![ComfyUI Registry](https://img.shields.io/badge/ComfyUI_Registry-comfyui--refiners-1a56db)](https://registry.comfy.org/publishers/finegrain/nodes/comfyui-refiners)
2223

2324
At the era of foundation models, adaptation is quickly rising at the method of choice for bridging the last mile quality gap.
2425
We couldn't find a framework with first class citizen APIs for foundation model adaptation, so we created one.

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ nav:
6868
- Guides:
6969
- Adapting SDXL: guides/adapting_sdxl/index.md
7070
- Training 101: guides/training_101/index.md
71+
- ComfyUI Refiners: guides/comfyui_refiners/index.md
7172
- API Reference:
7273
- Refiners: reference/
7374
extra:

src/comfyui-refiners/README.md

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -18,32 +18,7 @@
1818

1919
## Installation
2020

21-
1. Navigate to the root of your ComfyUI workspace.
22-
2. Activate your python virtual environment.
23-
3. Install the nodes using one of the following methods.
24-
25-
### Comfy Registry (recommended)
26-
27-
The nodes are published at https://registry.comfy.org/publishers/finegrain/nodes/comfyui-refiners.
28-
29-
See https://docs.comfy.org/comfy-cli/getting-started to install the Comfy CLI.
30-
31-
To automagically install the nodes, run the following command:
32-
```bash
33-
comfy node registry-install comfyui-refiners
34-
```
35-
36-
See https://docs.comfy.org/registry/overview for more information.
37-
38-
### Manual
39-
40-
To manually install the nodes, you may alternatively do the following:
41-
```bash
42-
curl -o comfyui-refiners.zip https://storage.googleapis.com/comfy-registry/finegrain/comfyui-refiners/1.0.3/node.tar.gz
43-
unzip -d custom_nodes/comfyui-refiners comfyui-refiners.zip
44-
pip install -r custom_nodes/comfyui-refiners/requirements.txt
45-
rm comfyui-refiners.zip
46-
```
21+
The nodes are published at https://registry.comfy.org/publishers/finegrain/nodes/comfyui-refiners. See our [installation guide](https://refine.rs/guides/comfyui_refiners/) for more details.
4722

4823
## Example Workflows
4924

0 commit comments

Comments
 (0)