charrywhite commited on
Commit
b921b5d
·
verified ·
1 Parent(s): e46709d

Upload folder using huggingface_hub

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .editorconfig +21 -0
  2. .gitattributes +56 -0
  3. .github/ISSUE_TEMPLATE.md +15 -0
  4. .github/workflows/build-pipeline.yml +34 -0
  5. .github/workflows/publish_action.yml +24 -0
  6. .github/workflows/publish_node.yml +21 -0
  7. .github/workflows/validate.yml +13 -0
  8. .gitignore +100 -0
  9. .pre-commit-config.yaml +10 -0
  10. .vscode/settings.json +8 -0
  11. Example.JPG +3 -0
  12. LICENSE +674 -0
  13. MANIFEST.in +9 -0
  14. Nodes.JPG +3 -0
  15. README.md +272 -3
  16. __init__.py +16 -0
  17. example_workflows/Masked Qwen Image Edit.json +1367 -0
  18. example_workflows/Qwen Image Inpaint.json +806 -0
  19. example_workflows/Qwen Image Outpaint.json +909 -0
  20. example_workflows/SDXL Inpaint.json +735 -0
  21. example_workflows/SDXL_InPaint.png +3 -0
  22. examples/Example_1/InPainted_Drag_Me_to_ComfyUI.png +3 -0
  23. examples/Example_1/Masked_Load_Me_in_Loader.png +3 -0
  24. examples/Example_1/Original_No_Mask.png +3 -0
  25. examples/Example_10/InPainted_Drag_Me_to_ComfyUI.png +3 -0
  26. examples/Example_10/Masked_Load_Me_in_Loader.png +3 -0
  27. examples/Example_11/InPainted_Drag_Me_to_ComfyUI.png +3 -0
  28. examples/Example_11/Masked_Load_Me_in_Loader.png +3 -0
  29. examples/Example_12/InPainted_Drag_Me_to_ComfyUI.png +3 -0
  30. examples/Example_12/Masked_Load_Me_in_Loader.png +3 -0
  31. examples/Example_13/InPainted_Drag_Me_to_ComfyUI.png +3 -0
  32. examples/Example_13/Masked_Load_Me_in_Loader.png +3 -0
  33. examples/Example_13/Original_No_Mask.png +3 -0
  34. examples/Example_14/InPainted_Drag_Me_to_ComfyUI.png +3 -0
  35. examples/Example_14/Masked_Load_Me_in_Loader.png +3 -0
  36. examples/Example_14/Original_No_Mask.png +3 -0
  37. examples/Example_2/InPainted_Drag_Me_to_ComfyUI.png +3 -0
  38. examples/Example_2/Masked_Load_Me_in_Loader.png +3 -0
  39. examples/Example_2/Original_No_Mask.png +3 -0
  40. examples/Example_3/InPainted_Drag_Me_to_ComfyUI.png +3 -0
  41. examples/Example_3/Masked_Load_Me_in_Loader.png +3 -0
  42. examples/Example_3/Original_No_Mask.png +3 -0
  43. examples/Example_4/InPainted_Drag_Me_to_ComfyUI.png +3 -0
  44. examples/Example_4/Masked_Load_Me_in_Loader.png +3 -0
  45. examples/Example_4/Original_No_Mask.png +3 -0
  46. examples/Example_5/InPainted_Drag_Me_to_ComfyUI.png +3 -0
  47. examples/Example_5/Masked_Load_Me_in_Loader.png +3 -0
  48. examples/Example_5/Original_No_Mask.png +3 -0
  49. examples/Example_6/InPainted_Drag_Me_to_ComfyUI.png +3 -0
  50. examples/Example_6/Masked_Load_Me_in_Loader.png +3 -0
.editorconfig ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # http://editorconfig.org
2
+
3
+ root = true
4
+
5
+ [*]
6
+ indent_style = space
7
+ indent_size = 4
8
+ trim_trailing_whitespace = true
9
+ insert_final_newline = true
10
+ charset = utf-8
11
+ end_of_line = lf
12
+
13
+ [*.bat]
14
+ indent_style = tab
15
+ end_of_line = crlf
16
+
17
+ [LICENSE]
18
+ insert_final_newline = false
19
+
20
+ [Makefile]
21
+ indent_style = tab
.gitattributes CHANGED
@@ -33,3 +33,59 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ Example.JPG filter=lfs diff=lfs merge=lfs -text
37
+ Nodes.JPG filter=lfs diff=lfs merge=lfs -text
38
+ example_workflows/SDXL_InPaint.png filter=lfs diff=lfs merge=lfs -text
39
+ examples/Example_1/InPainted_Drag_Me_to_ComfyUI.png filter=lfs diff=lfs merge=lfs -text
40
+ examples/Example_1/Masked_Load_Me_in_Loader.png filter=lfs diff=lfs merge=lfs -text
41
+ examples/Example_1/Original_No_Mask.png filter=lfs diff=lfs merge=lfs -text
42
+ examples/Example_10/InPainted_Drag_Me_to_ComfyUI.png filter=lfs diff=lfs merge=lfs -text
43
+ examples/Example_10/Masked_Load_Me_in_Loader.png filter=lfs diff=lfs merge=lfs -text
44
+ examples/Example_11/InPainted_Drag_Me_to_ComfyUI.png filter=lfs diff=lfs merge=lfs -text
45
+ examples/Example_11/Masked_Load_Me_in_Loader.png filter=lfs diff=lfs merge=lfs -text
46
+ examples/Example_12/InPainted_Drag_Me_to_ComfyUI.png filter=lfs diff=lfs merge=lfs -text
47
+ examples/Example_12/Masked_Load_Me_in_Loader.png filter=lfs diff=lfs merge=lfs -text
48
+ examples/Example_13/InPainted_Drag_Me_to_ComfyUI.png filter=lfs diff=lfs merge=lfs -text
49
+ examples/Example_13/Masked_Load_Me_in_Loader.png filter=lfs diff=lfs merge=lfs -text
50
+ examples/Example_13/Original_No_Mask.png filter=lfs diff=lfs merge=lfs -text
51
+ examples/Example_14/InPainted_Drag_Me_to_ComfyUI.png filter=lfs diff=lfs merge=lfs -text
52
+ examples/Example_14/Masked_Load_Me_in_Loader.png filter=lfs diff=lfs merge=lfs -text
53
+ examples/Example_14/Original_No_Mask.png filter=lfs diff=lfs merge=lfs -text
54
+ examples/Example_2/InPainted_Drag_Me_to_ComfyUI.png filter=lfs diff=lfs merge=lfs -text
55
+ examples/Example_2/Masked_Load_Me_in_Loader.png filter=lfs diff=lfs merge=lfs -text
56
+ examples/Example_2/Original_No_Mask.png filter=lfs diff=lfs merge=lfs -text
57
+ examples/Example_3/InPainted_Drag_Me_to_ComfyUI.png filter=lfs diff=lfs merge=lfs -text
58
+ examples/Example_3/Masked_Load_Me_in_Loader.png filter=lfs diff=lfs merge=lfs -text
59
+ examples/Example_3/Original_No_Mask.png filter=lfs diff=lfs merge=lfs -text
60
+ examples/Example_4/InPainted_Drag_Me_to_ComfyUI.png filter=lfs diff=lfs merge=lfs -text
61
+ examples/Example_4/Masked_Load_Me_in_Loader.png filter=lfs diff=lfs merge=lfs -text
62
+ examples/Example_4/Original_No_Mask.png filter=lfs diff=lfs merge=lfs -text
63
+ examples/Example_5/InPainted_Drag_Me_to_ComfyUI.png filter=lfs diff=lfs merge=lfs -text
64
+ examples/Example_5/Masked_Load_Me_in_Loader.png filter=lfs diff=lfs merge=lfs -text
65
+ examples/Example_5/Original_No_Mask.png filter=lfs diff=lfs merge=lfs -text
66
+ examples/Example_6/InPainted_Drag_Me_to_ComfyUI.png filter=lfs diff=lfs merge=lfs -text
67
+ examples/Example_6/Masked_Load_Me_in_Loader.png filter=lfs diff=lfs merge=lfs -text
68
+ examples/Example_6/Original_No_Mask.png filter=lfs diff=lfs merge=lfs -text
69
+ examples/Example_7/InPainted_Drag_Me_to_ComfyUI.png filter=lfs diff=lfs merge=lfs -text
70
+ examples/Example_7/Masked_Load_Me_in_Loader.png filter=lfs diff=lfs merge=lfs -text
71
+ examples/Example_7/Original_No_Mask.png filter=lfs diff=lfs merge=lfs -text
72
+ examples/Example_8/InPainted_Drag_Me_to_ComfyUI.png filter=lfs diff=lfs merge=lfs -text
73
+ examples/Example_8/Masked_Load_Me_in_Loader.png filter=lfs diff=lfs merge=lfs -text
74
+ examples/Example_8/Original_No_Mask.png filter=lfs diff=lfs merge=lfs -text
75
+ examples/Example_9/InPainted_Drag_Me_to_ComfyUI.png filter=lfs diff=lfs merge=lfs -text
76
+ examples/Example_9/Masked_Load_Me_in_Loader.png filter=lfs diff=lfs merge=lfs -text
77
+ examples/Example_9/Original_No_Mask.png filter=lfs diff=lfs merge=lfs -text
78
+ examples/InpaintChara_04.jpg filter=lfs diff=lfs merge=lfs -text
79
+ examples/InpaintChara_05.jpg filter=lfs diff=lfs merge=lfs -text
80
+ examples/InpaintChara_06.jpg filter=lfs diff=lfs merge=lfs -text
81
+ examples/InpaintChara_07.jpg filter=lfs diff=lfs merge=lfs -text
82
+ examples/InpaintChara_08.jpg filter=lfs diff=lfs merge=lfs -text
83
+ examples/InpaintChara_09.jpg filter=lfs diff=lfs merge=lfs -text
84
+ examples/InpaintChara_10.jpg filter=lfs diff=lfs merge=lfs -text
85
+ examples/InpaintChara_11.jpg filter=lfs diff=lfs merge=lfs -text
86
+ examples/InpaintChara_12.jpg filter=lfs diff=lfs merge=lfs -text
87
+ examples/InpaintChara_13(1).jpg filter=lfs diff=lfs merge=lfs -text
88
+ examples/InpaintChara_13.jpg filter=lfs diff=lfs merge=lfs -text
89
+ examples/InpaintChara_14.jpg filter=lfs diff=lfs merge=lfs -text
90
+ examples/LanPaintQwen_01.jpg filter=lfs diff=lfs merge=lfs -text
91
+ examples/LanPaintQwen_03.jpg filter=lfs diff=lfs merge=lfs -text
.github/ISSUE_TEMPLATE.md ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ * LanPaint version:
2
+ * Python version:
3
+ * Operating System:
4
+
5
+ ### Description
6
+
7
+ Describe what you were trying to get done.
8
+ Tell us what happened, what went wrong, and what you expected to happen.
9
+
10
+ ### What I Did
11
+
12
+ ```
13
+ Paste the command(s) you ran and the output.
14
+ If there was a crash, please include the traceback here.
15
+ ```
.github/workflows/build-pipeline.yml ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # GitHub CI build pipeline
2
+ name: LanPaint CI build
3
+
4
+ on:
5
+ pull_request:
6
+ branches:
7
+ - master
8
+ - main
9
+ jobs:
10
+ build:
11
+ runs-on: ${{ matrix.os }}
12
+ env:
13
+ PYTHONIOENCODING: "utf8"
14
+ strategy:
15
+ matrix:
16
+ os: [ubuntu-latest]
17
+ python-version: ["3.12"]
18
+
19
+ steps:
20
+ - uses: actions/checkout@v4
21
+ - name: Set up Python
22
+ uses: actions/setup-python@v5
23
+ with:
24
+ python-version: ${{ matrix.python-version }}
25
+ - name: Install dependencies
26
+ run: |
27
+ python -m pip install --upgrade pip
28
+ pip install .[dev]
29
+ - name: Run Linting
30
+ run: |
31
+ ruff check .
32
+ - name: Run Tests
33
+ run: |
34
+ pytest tests/
.github/workflows/publish_action.yml ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Publish to Comfy registry
2
+ on:
3
+ workflow_dispatch:
4
+ push:
5
+ branches:
6
+ - main
7
+ paths:
8
+ - "pyproject.toml"
9
+
10
+ permissions:
11
+ issues: write
12
+
13
+ jobs:
14
+ publish-node:
15
+ name: Publish Custom Node to registry
16
+ runs-on: ubuntu-latest
17
+ if: ${{ github.repository_owner == 'scraed' }}
18
+ steps:
19
+ - name: Check out code
20
+ uses: actions/checkout@v4
21
+ - name: Publish Custom Node
22
+ uses: Comfy-Org/publish-node-action@v1
23
+ with:
24
+ personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }} ## Add your own personal access token to your Github Repository secrets and reference it here.
.github/workflows/publish_node.yml ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: 📦 Publish to Comfy registry
2
+ on:
3
+ workflow_dispatch:
4
+ push:
5
+ tags:
6
+ - '*'
7
+
8
+ permissions:
9
+ issues: write
10
+
11
+ jobs:
12
+ publish-node:
13
+ name: Publish Custom Node to registry
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - name: ♻️ Check out code
17
+ uses: actions/checkout@v4
18
+ - name: 📦 Publish Custom Node
19
+ uses: Comfy-Org/publish-node-action@main
20
+ with:
21
+ personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
.github/workflows/validate.yml ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Validate backwards compatibility
2
+
3
+ on:
4
+ pull_request:
5
+ branches:
6
+ - master
7
+ - main
8
+
9
+ jobs:
10
+ validate:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: comfy-org/node-diff@main
.gitignore ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # OSX useful to ignore
7
+ *.DS_Store
8
+ .AppleDouble
9
+ .LSOverride
10
+
11
+ # Thumbnails
12
+ ._*
13
+
14
+ # Files that might appear in the root of a volume
15
+ .DocumentRevisions-V100
16
+ .fseventsd
17
+ .Spotlight-V100
18
+ .TemporaryItems
19
+ .Trashes
20
+ .VolumeIcon.icns
21
+ .com.apple.timemachine.donotpresent
22
+
23
+ # Directories potentially created on remote AFP share
24
+ .AppleDB
25
+ .AppleDesktop
26
+ Network Trash Folder
27
+ Temporary Items
28
+ .apdisk
29
+
30
+ # C extensions
31
+ *.so
32
+
33
+ # Distribution / packaging
34
+ .Python
35
+ env/
36
+ venv/
37
+ build/
38
+ develop-eggs/
39
+ dist/
40
+ downloads/
41
+ eggs/
42
+ .eggs/
43
+ lib/
44
+ lib64/
45
+ parts/
46
+ sdist/
47
+ var/
48
+ *.egg-info/
49
+ .installed.cfg
50
+ *.egg
51
+
52
+ # PyInstaller
53
+ # Usually these files are written by a python script from a template
54
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
55
+ *.manifest
56
+ *.spec
57
+
58
+ # Installer logs
59
+ pip-log.txt
60
+ pip-delete-this-directory.txt
61
+
62
+ # Unit test / coverage reports
63
+ htmlcov/
64
+ .tox/
65
+ .coverage
66
+ .coverage.*
67
+ .cache
68
+ nosetests.xml
69
+ coverage.xml
70
+ *,cover
71
+ .hypothesis/
72
+ .pytest_cache/
73
+
74
+ # Translations
75
+ *.mo
76
+ *.pot
77
+
78
+ # Django stuff:
79
+ *.log
80
+
81
+ # Sphinx documentation
82
+ docs/_build/
83
+
84
+ # IntelliJ Idea
85
+ .idea
86
+ *.iml
87
+ *.ipr
88
+ *.iws
89
+
90
+ # PyBuilder
91
+ target/
92
+
93
+ # Cookiecutter
94
+ output/
95
+ python_boilerplate/
96
+ cookiecutter-pypackage-env/
97
+
98
+ # vscode settings
99
+ .history/
100
+ *.code-workspace
.pre-commit-config.yaml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ repos:
2
+ - repo: https://github.com/astral-sh/ruff-pre-commit
3
+ # Ruff version.
4
+ rev: v0.4.9
5
+ hooks:
6
+ # Run the linter.
7
+ - id: ruff
8
+ args: [ --fix ]
9
+ # Run the formatter.
10
+ - id: ruff-format
.vscode/settings.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ // Required - change /PATH/TO to the absolute path to ComfyUI. Windows e.g.: D:/My Folder/ComfyUI/
3
+ // This pulls in ComfyUI Python types for the extension.
4
+ "python.analysis.extraPaths": [
5
+ "/PATH/TO/ComfyUI/",
6
+ "/PATH/TO/ComfyUI/custom_nodes/"
7
+ ],
8
+ }
Example.JPG ADDED

Git LFS Details

  • SHA256: b4d1cea87e113c420e58a70bababfb8b0e9f7683d6fcbed9ab3704f851dce816
  • Pointer size: 131 Bytes
  • Size of remote file: 250 kB
LICENSE ADDED
@@ -0,0 +1,674 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ GNU GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+ Preamble
9
+
10
+ The GNU General Public License is a free, copyleft license for
11
+ software and other kinds of works.
12
+
13
+ The licenses for most software and other practical works are designed
14
+ to take away your freedom to share and change the works. By contrast,
15
+ the GNU General Public License is intended to guarantee your freedom to
16
+ share and change all versions of a program--to make sure it remains free
17
+ software for all its users. We, the Free Software Foundation, use the
18
+ GNU General Public License for most of our software; it applies also to
19
+ any other work released this way by its authors. You can apply it to
20
+ your programs, too.
21
+
22
+ When we speak of free software, we are referring to freedom, not
23
+ price. Our General Public Licenses are designed to make sure that you
24
+ have the freedom to distribute copies of free software (and charge for
25
+ them if you wish), that you receive source code or can get it if you
26
+ want it, that you can change the software or use pieces of it in new
27
+ free programs, and that you know you can do these things.
28
+
29
+ To protect your rights, we need to prevent others from denying you
30
+ these rights or asking you to surrender the rights. Therefore, you have
31
+ certain responsibilities if you distribute copies of the software, or if
32
+ you modify it: responsibilities to respect the freedom of others.
33
+
34
+ For example, if you distribute copies of such a program, whether
35
+ gratis or for a fee, you must pass on to the recipients the same
36
+ freedoms that you received. You must make sure that they, too, receive
37
+ or can get the source code. And you must show them these terms so they
38
+ know their rights.
39
+
40
+ Developers that use the GNU GPL protect your rights with two steps:
41
+ (1) assert copyright on the software, and (2) offer you this License
42
+ giving you legal permission to copy, distribute and/or modify it.
43
+
44
+ For the developers' and authors' protection, the GPL clearly explains
45
+ that there is no warranty for this free software. For both users' and
46
+ authors' sake, the GPL requires that modified versions be marked as
47
+ changed, so that their problems will not be attributed erroneously to
48
+ authors of previous versions.
49
+
50
+ Some devices are designed to deny users access to install or run
51
+ modified versions of the software inside them, although the manufacturer
52
+ can do so. This is fundamentally incompatible with the aim of
53
+ protecting users' freedom to change the software. The systematic
54
+ pattern of such abuse occurs in the area of products for individuals to
55
+ use, which is precisely where it is most unacceptable. Therefore, we
56
+ have designed this version of the GPL to prohibit the practice for those
57
+ products. If such problems arise substantially in other domains, we
58
+ stand ready to extend this provision to those domains in future versions
59
+ of the GPL, as needed to protect the freedom of users.
60
+
61
+ Finally, every program is threatened constantly by software patents.
62
+ States should not allow patents to restrict development and use of
63
+ software on general-purpose computers, but in those that do, we wish to
64
+ avoid the special danger that patents applied to a free program could
65
+ make it effectively proprietary. To prevent this, the GPL assures that
66
+ patents cannot be used to render the program non-free.
67
+
68
+ The precise terms and conditions for copying, distribution and
69
+ modification follow.
70
+
71
+ TERMS AND CONDITIONS
72
+
73
+ 0. Definitions.
74
+
75
+ "This License" refers to version 3 of the GNU General Public License.
76
+
77
+ "Copyright" also means copyright-like laws that apply to other kinds of
78
+ works, such as semiconductor masks.
79
+
80
+ "The Program" refers to any copyrightable work licensed under this
81
+ License. Each licensee is addressed as "you". "Licensees" and
82
+ "recipients" may be individuals or organizations.
83
+
84
+ To "modify" a work means to copy from or adapt all or part of the work
85
+ in a fashion requiring copyright permission, other than the making of an
86
+ exact copy. The resulting work is called a "modified version" of the
87
+ earlier work or a work "based on" the earlier work.
88
+
89
+ A "covered work" means either the unmodified Program or a work based
90
+ on the Program.
91
+
92
+ To "propagate" a work means to do anything with it that, without
93
+ permission, would make you directly or secondarily liable for
94
+ infringement under applicable copyright law, except executing it on a
95
+ computer or modifying a private copy. Propagation includes copying,
96
+ distribution (with or without modification), making available to the
97
+ public, and in some countries other activities as well.
98
+
99
+ To "convey" a work means any kind of propagation that enables other
100
+ parties to make or receive copies. Mere interaction with a user through
101
+ a computer network, with no transfer of a copy, is not conveying.
102
+
103
+ An interactive user interface displays "Appropriate Legal Notices"
104
+ to the extent that it includes a convenient and prominently visible
105
+ feature that (1) displays an appropriate copyright notice, and (2)
106
+ tells the user that there is no warranty for the work (except to the
107
+ extent that warranties are provided), that licensees may convey the
108
+ work under this License, and how to view a copy of this License. If
109
+ the interface presents a list of user commands or options, such as a
110
+ menu, a prominent item in the list meets this criterion.
111
+
112
+ 1. Source Code.
113
+
114
+ The "source code" for a work means the preferred form of the work
115
+ for making modifications to it. "Object code" means any non-source
116
+ form of a work.
117
+
118
+ A "Standard Interface" means an interface that either is an official
119
+ standard defined by a recognized standards body, or, in the case of
120
+ interfaces specified for a particular programming language, one that
121
+ is widely used among developers working in that language.
122
+
123
+ The "System Libraries" of an executable work include anything, other
124
+ than the work as a whole, that (a) is included in the normal form of
125
+ packaging a Major Component, but which is not part of that Major
126
+ Component, and (b) serves only to enable use of the work with that
127
+ Major Component, or to implement a Standard Interface for which an
128
+ implementation is available to the public in source code form. A
129
+ "Major Component", in this context, means a major essential component
130
+ (kernel, window system, and so on) of the specific operating system
131
+ (if any) on which the executable work runs, or a compiler used to
132
+ produce the work, or an object code interpreter used to run it.
133
+
134
+ The "Corresponding Source" for a work in object code form means all
135
+ the source code needed to generate, install, and (for an executable
136
+ work) run the object code and to modify the work, including scripts to
137
+ control those activities. However, it does not include the work's
138
+ System Libraries, or general-purpose tools or generally available free
139
+ programs which are used unmodified in performing those activities but
140
+ which are not part of the work. For example, Corresponding Source
141
+ includes interface definition files associated with source files for
142
+ the work, and the source code for shared libraries and dynamically
143
+ linked subprograms that the work is specifically designed to require,
144
+ such as by intimate data communication or control flow between those
145
+ subprograms and other parts of the work.
146
+
147
+ The Corresponding Source need not include anything that users
148
+ can regenerate automatically from other parts of the Corresponding
149
+ Source.
150
+
151
+ The Corresponding Source for a work in source code form is that
152
+ same work.
153
+
154
+ 2. Basic Permissions.
155
+
156
+ All rights granted under this License are granted for the term of
157
+ copyright on the Program, and are irrevocable provided the stated
158
+ conditions are met. This License explicitly affirms your unlimited
159
+ permission to run the unmodified Program. The output from running a
160
+ covered work is covered by this License only if the output, given its
161
+ content, constitutes a covered work. This License acknowledges your
162
+ rights of fair use or other equivalent, as provided by copyright law.
163
+
164
+ You may make, run and propagate covered works that you do not
165
+ convey, without conditions so long as your license otherwise remains
166
+ in force. You may convey covered works to others for the sole purpose
167
+ of having them make modifications exclusively for you, or provide you
168
+ with facilities for running those works, provided that you comply with
169
+ the terms of this License in conveying all material for which you do
170
+ not control copyright. Those thus making or running the covered works
171
+ for you must do so exclusively on your behalf, under your direction
172
+ and control, on terms that prohibit them from making any copies of
173
+ your copyrighted material outside their relationship with you.
174
+
175
+ Conveying under any other circumstances is permitted solely under
176
+ the conditions stated below. Sublicensing is not allowed; section 10
177
+ makes it unnecessary.
178
+
179
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180
+
181
+ No covered work shall be deemed part of an effective technological
182
+ measure under any applicable law fulfilling obligations under article
183
+ 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184
+ similar laws prohibiting or restricting circumvention of such
185
+ measures.
186
+
187
+ When you convey a covered work, you waive any legal power to forbid
188
+ circumvention of technological measures to the extent such circumvention
189
+ is effected by exercising rights under this License with respect to
190
+ the covered work, and you disclaim any intention to limit operation or
191
+ modification of the work as a means of enforcing, against the work's
192
+ users, your or third parties' legal rights to forbid circumvention of
193
+ technological measures.
194
+
195
+ 4. Conveying Verbatim Copies.
196
+
197
+ You may convey verbatim copies of the Program's source code as you
198
+ receive it, in any medium, provided that you conspicuously and
199
+ appropriately publish on each copy an appropriate copyright notice;
200
+ keep intact all notices stating that this License and any
201
+ non-permissive terms added in accord with section 7 apply to the code;
202
+ keep intact all notices of the absence of any warranty; and give all
203
+ recipients a copy of this License along with the Program.
204
+
205
+ You may charge any price or no price for each copy that you convey,
206
+ and you may offer support or warranty protection for a fee.
207
+
208
+ 5. Conveying Modified Source Versions.
209
+
210
+ You may convey a work based on the Program, or the modifications to
211
+ produce it from the Program, in the form of source code under the
212
+ terms of section 4, provided that you also meet all of these conditions:
213
+
214
+ a) The work must carry prominent notices stating that you modified
215
+ it, and giving a relevant date.
216
+
217
+ b) The work must carry prominent notices stating that it is
218
+ released under this License and any conditions added under section
219
+ 7. This requirement modifies the requirement in section 4 to
220
+ "keep intact all notices".
221
+
222
+ c) You must license the entire work, as a whole, under this
223
+ License to anyone who comes into possession of a copy. This
224
+ License will therefore apply, along with any applicable section 7
225
+ additional terms, to the whole of the work, and all its parts,
226
+ regardless of how they are packaged. This License gives no
227
+ permission to license the work in any other way, but it does not
228
+ invalidate such permission if you have separately received it.
229
+
230
+ d) If the work has interactive user interfaces, each must display
231
+ Appropriate Legal Notices; however, if the Program has interactive
232
+ interfaces that do not display Appropriate Legal Notices, your
233
+ work need not make them do so.
234
+
235
+ A compilation of a covered work with other separate and independent
236
+ works, which are not by their nature extensions of the covered work,
237
+ and which are not combined with it such as to form a larger program,
238
+ in or on a volume of a storage or distribution medium, is called an
239
+ "aggregate" if the compilation and its resulting copyright are not
240
+ used to limit the access or legal rights of the compilation's users
241
+ beyond what the individual works permit. Inclusion of a covered work
242
+ in an aggregate does not cause this License to apply to the other
243
+ parts of the aggregate.
244
+
245
+ 6. Conveying Non-Source Forms.
246
+
247
+ You may convey a covered work in object code form under the terms
248
+ of sections 4 and 5, provided that you also convey the
249
+ machine-readable Corresponding Source under the terms of this License,
250
+ in one of these ways:
251
+
252
+ a) Convey the object code in, or embodied in, a physical product
253
+ (including a physical distribution medium), accompanied by the
254
+ Corresponding Source fixed on a durable physical medium
255
+ customarily used for software interchange.
256
+
257
+ b) Convey the object code in, or embodied in, a physical product
258
+ (including a physical distribution medium), accompanied by a
259
+ written offer, valid for at least three years and valid for as
260
+ long as you offer spare parts or customer support for that product
261
+ model, to give anyone who possesses the object code either (1) a
262
+ copy of the Corresponding Source for all the software in the
263
+ product that is covered by this License, on a durable physical
264
+ medium customarily used for software interchange, for a price no
265
+ more than your reasonable cost of physically performing this
266
+ conveying of source, or (2) access to copy the
267
+ Corresponding Source from a network server at no charge.
268
+
269
+ c) Convey individual copies of the object code with a copy of the
270
+ written offer to provide the Corresponding Source. This
271
+ alternative is allowed only occasionally and noncommercially, and
272
+ only if you received the object code with such an offer, in accord
273
+ with subsection 6b.
274
+
275
+ d) Convey the object code by offering access from a designated
276
+ place (gratis or for a charge), and offer equivalent access to the
277
+ Corresponding Source in the same way through the same place at no
278
+ further charge. You need not require recipients to copy the
279
+ Corresponding Source along with the object code. If the place to
280
+ copy the object code is a network server, the Corresponding Source
281
+ may be on a different server (operated by you or a third party)
282
+ that supports equivalent copying facilities, provided you maintain
283
+ clear directions next to the object code saying where to find the
284
+ Corresponding Source. Regardless of what server hosts the
285
+ Corresponding Source, you remain obligated to ensure that it is
286
+ available for as long as needed to satisfy these requirements.
287
+
288
+ e) Convey the object code using peer-to-peer transmission, provided
289
+ you inform other peers where the object code and Corresponding
290
+ Source of the work are being offered to the general public at no
291
+ charge under subsection 6d.
292
+
293
+ A separable portion of the object code, whose source code is excluded
294
+ from the Corresponding Source as a System Library, need not be
295
+ included in conveying the object code work.
296
+
297
+ A "User Product" is either (1) a "consumer product", which means any
298
+ tangible personal property which is normally used for personal, family,
299
+ or household purposes, or (2) anything designed or sold for incorporation
300
+ into a dwelling. In determining whether a product is a consumer product,
301
+ doubtful cases shall be resolved in favor of coverage. For a particular
302
+ product received by a particular user, "normally used" refers to a
303
+ typical or common use of that class of product, regardless of the status
304
+ of the particular user or of the way in which the particular user
305
+ actually uses, or expects or is expected to use, the product. A product
306
+ is a consumer product regardless of whether the product has substantial
307
+ commercial, industrial or non-consumer uses, unless such uses represent
308
+ the only significant mode of use of the product.
309
+
310
+ "Installation Information" for a User Product means any methods,
311
+ procedures, authorization keys, or other information required to install
312
+ and execute modified versions of a covered work in that User Product from
313
+ a modified version of its Corresponding Source. The information must
314
+ suffice to ensure that the continued functioning of the modified object
315
+ code is in no case prevented or interfered with solely because
316
+ modification has been made.
317
+
318
+ If you convey an object code work under this section in, or with, or
319
+ specifically for use in, a User Product, and the conveying occurs as
320
+ part of a transaction in which the right of possession and use of the
321
+ User Product is transferred to the recipient in perpetuity or for a
322
+ fixed term (regardless of how the transaction is characterized), the
323
+ Corresponding Source conveyed under this section must be accompanied
324
+ by the Installation Information. But this requirement does not apply
325
+ if neither you nor any third party retains the ability to install
326
+ modified object code on the User Product (for example, the work has
327
+ been installed in ROM).
328
+
329
+ The requirement to provide Installation Information does not include a
330
+ requirement to continue to provide support service, warranty, or updates
331
+ for a work that has been modified or installed by the recipient, or for
332
+ the User Product in which it has been modified or installed. Access to a
333
+ network may be denied when the modification itself materially and
334
+ adversely affects the operation of the network or violates the rules and
335
+ protocols for communication across the network.
336
+
337
+ Corresponding Source conveyed, and Installation Information provided,
338
+ in accord with this section must be in a format that is publicly
339
+ documented (and with an implementation available to the public in
340
+ source code form), and must require no special password or key for
341
+ unpacking, reading or copying.
342
+
343
+ 7. Additional Terms.
344
+
345
+ "Additional permissions" are terms that supplement the terms of this
346
+ License by making exceptions from one or more of its conditions.
347
+ Additional permissions that are applicable to the entire Program shall
348
+ be treated as though they were included in this License, to the extent
349
+ that they are valid under applicable law. If additional permissions
350
+ apply only to part of the Program, that part may be used separately
351
+ under those permissions, but the entire Program remains governed by
352
+ this License without regard to the additional permissions.
353
+
354
+ When you convey a copy of a covered work, you may at your option
355
+ remove any additional permissions from that copy, or from any part of
356
+ it. (Additional permissions may be written to require their own
357
+ removal in certain cases when you modify the work.) You may place
358
+ additional permissions on material, added by you to a covered work,
359
+ for which you have or can give appropriate copyright permission.
360
+
361
+ Notwithstanding any other provision of this License, for material you
362
+ add to a covered work, you may (if authorized by the copyright holders of
363
+ that material) supplement the terms of this License with terms:
364
+
365
+ a) Disclaiming warranty or limiting liability differently from the
366
+ terms of sections 15 and 16 of this License; or
367
+
368
+ b) Requiring preservation of specified reasonable legal notices or
369
+ author attributions in that material or in the Appropriate Legal
370
+ Notices displayed by works containing it; or
371
+
372
+ c) Prohibiting misrepresentation of the origin of that material, or
373
+ requiring that modified versions of such material be marked in
374
+ reasonable ways as different from the original version; or
375
+
376
+ d) Limiting the use for publicity purposes of names of licensors or
377
+ authors of the material; or
378
+
379
+ e) Declining to grant rights under trademark law for use of some
380
+ trade names, trademarks, or service marks; or
381
+
382
+ f) Requiring indemnification of licensors and authors of that
383
+ material by anyone who conveys the material (or modified versions of
384
+ it) with contractual assumptions of liability to the recipient, for
385
+ any liability that these contractual assumptions directly impose on
386
+ those licensors and authors.
387
+
388
+ All other non-permissive additional terms are considered "further
389
+ restrictions" within the meaning of section 10. If the Program as you
390
+ received it, or any part of it, contains a notice stating that it is
391
+ governed by this License along with a term that is a further
392
+ restriction, you may remove that term. If a license document contains
393
+ a further restriction but permits relicensing or conveying under this
394
+ License, you may add to a covered work material governed by the terms
395
+ of that license document, provided that the further restriction does
396
+ not survive such relicensing or conveying.
397
+
398
+ If you add terms to a covered work in accord with this section, you
399
+ must place, in the relevant source files, a statement of the
400
+ additional terms that apply to those files, or a notice indicating
401
+ where to find the applicable terms.
402
+
403
+ Additional terms, permissive or non-permissive, may be stated in the
404
+ form of a separately written license, or stated as exceptions;
405
+ the above requirements apply either way.
406
+
407
+ 8. Termination.
408
+
409
+ You may not propagate or modify a covered work except as expressly
410
+ provided under this License. Any attempt otherwise to propagate or
411
+ modify it is void, and will automatically terminate your rights under
412
+ this License (including any patent licenses granted under the third
413
+ paragraph of section 11).
414
+
415
+ However, if you cease all violation of this License, then your
416
+ license from a particular copyright holder is reinstated (a)
417
+ provisionally, unless and until the copyright holder explicitly and
418
+ finally terminates your license, and (b) permanently, if the copyright
419
+ holder fails to notify you of the violation by some reasonable means
420
+ prior to 60 days after the cessation.
421
+
422
+ Moreover, your license from a particular copyright holder is
423
+ reinstated permanently if the copyright holder notifies you of the
424
+ violation by some reasonable means, this is the first time you have
425
+ received notice of violation of this License (for any work) from that
426
+ copyright holder, and you cure the violation prior to 30 days after
427
+ your receipt of the notice.
428
+
429
+ Termination of your rights under this section does not terminate the
430
+ licenses of parties who have received copies or rights from you under
431
+ this License. If your rights have been terminated and not permanently
432
+ reinstated, you do not qualify to receive new licenses for the same
433
+ material under section 10.
434
+
435
+ 9. Acceptance Not Required for Having Copies.
436
+
437
+ You are not required to accept this License in order to receive or
438
+ run a copy of the Program. Ancillary propagation of a covered work
439
+ occurring solely as a consequence of using peer-to-peer transmission
440
+ to receive a copy likewise does not require acceptance. However,
441
+ nothing other than this License grants you permission to propagate or
442
+ modify any covered work. These actions infringe copyright if you do
443
+ not accept this License. Therefore, by modifying or propagating a
444
+ covered work, you indicate your acceptance of this License to do so.
445
+
446
+ 10. Automatic Licensing of Downstream Recipients.
447
+
448
+ Each time you convey a covered work, the recipient automatically
449
+ receives a license from the original licensors, to run, modify and
450
+ propagate that work, subject to this License. You are not responsible
451
+ for enforcing compliance by third parties with this License.
452
+
453
+ An "entity transaction" is a transaction transferring control of an
454
+ organization, or substantially all assets of one, or subdividing an
455
+ organization, or merging organizations. If propagation of a covered
456
+ work results from an entity transaction, each party to that
457
+ transaction who receives a copy of the work also receives whatever
458
+ licenses to the work the party's predecessor in interest had or could
459
+ give under the previous paragraph, plus a right to possession of the
460
+ Corresponding Source of the work from the predecessor in interest, if
461
+ the predecessor has it or can get it with reasonable efforts.
462
+
463
+ You may not impose any further restrictions on the exercise of the
464
+ rights granted or affirmed under this License. For example, you may
465
+ not impose a license fee, royalty, or other charge for exercise of
466
+ rights granted under this License, and you may not initiate litigation
467
+ (including a cross-claim or counterclaim in a lawsuit) alleging that
468
+ any patent claim is infringed by making, using, selling, offering for
469
+ sale, or importing the Program or any portion of it.
470
+
471
+ 11. Patents.
472
+
473
+ A "contributor" is a copyright holder who authorizes use under this
474
+ License of the Program or a work on which the Program is based. The
475
+ work thus licensed is called the contributor's "contributor version".
476
+
477
+ A contributor's "essential patent claims" are all patent claims
478
+ owned or controlled by the contributor, whether already acquired or
479
+ hereafter acquired, that would be infringed by some manner, permitted
480
+ by this License, of making, using, or selling its contributor version,
481
+ but do not include claims that would be infringed only as a
482
+ consequence of further modification of the contributor version. For
483
+ purposes of this definition, "control" includes the right to grant
484
+ patent sublicenses in a manner consistent with the requirements of
485
+ this License.
486
+
487
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
488
+ patent license under the contributor's essential patent claims, to
489
+ make, use, sell, offer for sale, import and otherwise run, modify and
490
+ propagate the contents of its contributor version.
491
+
492
+ In the following three paragraphs, a "patent license" is any express
493
+ agreement or commitment, however denominated, not to enforce a patent
494
+ (such as an express permission to practice a patent or covenant not to
495
+ sue for patent infringement). To "grant" such a patent license to a
496
+ party means to make such an agreement or commitment not to enforce a
497
+ patent against the party.
498
+
499
+ If you convey a covered work, knowingly relying on a patent license,
500
+ and the Corresponding Source of the work is not available for anyone
501
+ to copy, free of charge and under the terms of this License, through a
502
+ publicly available network server or other readily accessible means,
503
+ then you must either (1) cause the Corresponding Source to be so
504
+ available, or (2) arrange to deprive yourself of the benefit of the
505
+ patent license for this particular work, or (3) arrange, in a manner
506
+ consistent with the requirements of this License, to extend the patent
507
+ license to downstream recipients. "Knowingly relying" means you have
508
+ actual knowledge that, but for the patent license, your conveying the
509
+ covered work in a country, or your recipient's use of the covered work
510
+ in a country, would infringe one or more identifiable patents in that
511
+ country that you have reason to believe are valid.
512
+
513
+ If, pursuant to or in connection with a single transaction or
514
+ arrangement, you convey, or propagate by procuring conveyance of, a
515
+ covered work, and grant a patent license to some of the parties
516
+ receiving the covered work authorizing them to use, propagate, modify
517
+ or convey a specific copy of the covered work, then the patent license
518
+ you grant is automatically extended to all recipients of the covered
519
+ work and works based on it.
520
+
521
+ A patent license is "discriminatory" if it does not include within
522
+ the scope of its coverage, prohibits the exercise of, or is
523
+ conditioned on the non-exercise of one or more of the rights that are
524
+ specifically granted under this License. You may not convey a covered
525
+ work if you are a party to an arrangement with a third party that is
526
+ in the business of distributing software, under which you make payment
527
+ to the third party based on the extent of your activity of conveying
528
+ the work, and under which the third party grants, to any of the
529
+ parties who would receive the covered work from you, a discriminatory
530
+ patent license (a) in connection with copies of the covered work
531
+ conveyed by you (or copies made from those copies), or (b) primarily
532
+ for and in connection with specific products or compilations that
533
+ contain the covered work, unless you entered into that arrangement,
534
+ or that patent license was granted, prior to 28 March 2007.
535
+
536
+ Nothing in this License shall be construed as excluding or limiting
537
+ any implied license or other defenses to infringement that may
538
+ otherwise be available to you under applicable patent law.
539
+
540
+ 12. No Surrender of Others' Freedom.
541
+
542
+ If conditions are imposed on you (whether by court order, agreement or
543
+ otherwise) that contradict the conditions of this License, they do not
544
+ excuse you from the conditions of this License. If you cannot convey a
545
+ covered work so as to satisfy simultaneously your obligations under this
546
+ License and any other pertinent obligations, then as a consequence you may
547
+ not convey it at all. For example, if you agree to terms that obligate you
548
+ to collect a royalty for further conveying from those to whom you convey
549
+ the Program, the only way you could satisfy both those terms and this
550
+ License would be to refrain entirely from conveying the Program.
551
+
552
+ 13. Use with the GNU Affero General Public License.
553
+
554
+ Notwithstanding any other provision of this License, you have
555
+ permission to link or combine any covered work with a work licensed
556
+ under version 3 of the GNU Affero General Public License into a single
557
+ combined work, and to convey the resulting work. The terms of this
558
+ License will continue to apply to the part which is the covered work,
559
+ but the special requirements of the GNU Affero General Public License,
560
+ section 13, concerning interaction through a network will apply to the
561
+ combination as such.
562
+
563
+ 14. Revised Versions of this License.
564
+
565
+ The Free Software Foundation may publish revised and/or new versions of
566
+ the GNU General Public License from time to time. Such new versions will
567
+ be similar in spirit to the present version, but may differ in detail to
568
+ address new problems or concerns.
569
+
570
+ Each version is given a distinguishing version number. If the
571
+ Program specifies that a certain numbered version of the GNU General
572
+ Public License "or any later version" applies to it, you have the
573
+ option of following the terms and conditions either of that numbered
574
+ version or of any later version published by the Free Software
575
+ Foundation. If the Program does not specify a version number of the
576
+ GNU General Public License, you may choose any version ever published
577
+ by the Free Software Foundation.
578
+
579
+ If the Program specifies that a proxy can decide which future
580
+ versions of the GNU General Public License can be used, that proxy's
581
+ public statement of acceptance of a version permanently authorizes you
582
+ to choose that version for the Program.
583
+
584
+ Later license versions may give you additional or different
585
+ permissions. However, no additional obligations are imposed on any
586
+ author or copyright holder as a result of your choosing to follow a
587
+ later version.
588
+
589
+ 15. Disclaimer of Warranty.
590
+
591
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592
+ APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593
+ HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594
+ OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597
+ IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598
+ ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599
+
600
+ 16. Limitation of Liability.
601
+
602
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604
+ THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605
+ GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606
+ USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607
+ DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608
+ PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609
+ EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610
+ SUCH DAMAGES.
611
+
612
+ 17. Interpretation of Sections 15 and 16.
613
+
614
+ If the disclaimer of warranty and limitation of liability provided
615
+ above cannot be given local legal effect according to their terms,
616
+ reviewing courts shall apply local law that most closely approximates
617
+ an absolute waiver of all civil liability in connection with the
618
+ Program, unless a warranty or assumption of liability accompanies a
619
+ copy of the Program in return for a fee.
620
+
621
+ END OF TERMS AND CONDITIONS
622
+
623
+ How to Apply These Terms to Your New Programs
624
+
625
+ If you develop a new program, and you want it to be of the greatest
626
+ possible use to the public, the best way to achieve this is to make it
627
+ free software which everyone can redistribute and change under these terms.
628
+
629
+ To do so, attach the following notices to the program. It is safest
630
+ to attach them to the start of each source file to most effectively
631
+ state the exclusion of warranty; and each file should have at least
632
+ the "copyright" line and a pointer to where the full notice is found.
633
+
634
+ <one line to give the program's name and a brief idea of what it does.>
635
+ Copyright (C) <year> <name of author>
636
+
637
+ This program is free software: you can redistribute it and/or modify
638
+ it under the terms of the GNU General Public License as published by
639
+ the Free Software Foundation, either version 3 of the License, or
640
+ (at your option) any later version.
641
+
642
+ This program is distributed in the hope that it will be useful,
643
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
644
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645
+ GNU General Public License for more details.
646
+
647
+ You should have received a copy of the GNU General Public License
648
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
649
+
650
+ Also add information on how to contact you by electronic and paper mail.
651
+
652
+ If the program does terminal interaction, make it output a short
653
+ notice like this when it starts in an interactive mode:
654
+
655
+ <program> Copyright (C) <year> <name of author>
656
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657
+ This is free software, and you are welcome to redistribute it
658
+ under certain conditions; type `show c' for details.
659
+
660
+ The hypothetical commands `show w' and `show c' should show the appropriate
661
+ parts of the General Public License. Of course, your program's commands
662
+ might be different; for a GUI interface, you would use an "about box".
663
+
664
+ You should also get your employer (if you work as a programmer) or school,
665
+ if any, to sign a "copyright disclaimer" for the program, if necessary.
666
+ For more information on this, and how to apply and follow the GNU GPL, see
667
+ <https://www.gnu.org/licenses/>.
668
+
669
+ The GNU General Public License does not permit incorporating your program
670
+ into proprietary programs. If your program is a subroutine library, you
671
+ may consider it more useful to permit linking proprietary applications with
672
+ the library. If this is what you want to do, use the GNU Lesser General
673
+ Public License instead of this License. But first, please read
674
+ <https://www.gnu.org/licenses/why-not-lgpl.html>.
MANIFEST.in ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ include LICENSE
2
+ include README.md
3
+
4
+ recursive-exclude * __pycache__
5
+ recursive-exclude * *.py[co]
6
+
7
+ recursive-include docs *.rst conf.py Makefile make.bat *.jpg *.png *.gif
8
+
9
+ graft src/LanPaint/web
Nodes.JPG ADDED

Git LFS Details

  • SHA256: 5371453dbf997f4684a0712e19558c7c1592fc1c7cd57321aba00975689136cb
  • Pointer size: 131 Bytes
  • Size of remote file: 122 kB
README.md CHANGED
@@ -1,3 +1,272 @@
1
- ---
2
- license: gpl-3.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div align="center">
2
+
3
+ # LanPaint: Universal Inpainting Sampler with "Think Mode"
4
+ [![arXiv](https://img.shields.io/badge/Arxiv-2502.03491-b31b1b.svg?logo=arXiv)](https://arxiv.org/abs/2502.03491)
5
+ [![Python Benchmark](https://img.shields.io/badge/🐍-Python_Benchmark-3776AB?logo=python)](https://github.com/scraed/LanPaintBench)
6
+ [![ComfyUI Extension](https://img.shields.io/badge/ComfyUI-Extension-7B5DFF)](https://github.com/comfyanonymous/ComfyUI)
7
+ [![Blog](https://img.shields.io/badge/📝-Blog-9cf)](https://scraed.github.io/scraedBlog/)
8
+ [![GitHub stars](https://img.shields.io/github/stars/scraed/LanPaint)](https://github.com/scraed/LanPaint/stargazers)
9
+ </div>
10
+
11
+ Universally applicable inpainting ability for every model. LanPaint sampler lets the model "think" through multiple iterations before denoising, enabling you to invest more computation time for superior inpainting quality.
12
+
13
+ This is the official implementation of ["Lanpaint: Training-Free Diffusion Inpainting with Exact and Fast Conditional Inference"](https://arxiv.org/abs/2502.03491). The repository is for ComfyUI extension. Local Python benchmark code is published here: [LanPaintBench](https://github.com/scraed/LanPaintBench).
14
+
15
+ ![Qwen Result 2](https://github.com/scraed/LanPaint/blob/master/examples/LanPaintQwen_03.jpg)
16
+ Check [Mased Qwen Edit Workflow](https://github.com/scraed/LanPaint/tree/master/examples/Example_14). You need to follow the ComfyUI version of [Qwen Image Edit workflow](https://docs.comfy.org/tutorials/image/qwen/qwen-image-edit) to download and install the model.
17
+
18
+ ![Qwen Result 1](https://github.com/scraed/LanPaint/blob/master/examples/LanPaintQwen_01.jpg)
19
+
20
+ Also check [Qwen Inpaint Workflow](https://github.com/scraed/LanPaint/tree/master/examples/Example_13) and [Qwen Outpaint Workflow](https://github.com/scraed/LanPaint/tree/master/examples/Example_12). You need to follow the ComfyUI version of [Qwen Image workflow](https://docs.comfy.org/tutorials/image/qwen/qwen-image) to download and install the model.
21
+
22
+ ## Table of Contents
23
+ - [Features](#features)
24
+ - [Quickstart](#quickstart)
25
+ - [How to Use Examples](#how-to-use-examples)
26
+ - [Examples](#examples)
27
+ - [Qwen Image](#example-qwen-image-inpaintlanpaint-k-sampler-5-steps-of-thinking)
28
+ - [HiDream](#example-hidream-inpaint-lanpaint-k-sampler-5-steps-of-thinking)
29
+ - [SD 3.5](#example-sd-35-inpaintlanpaint-k-sampler-5-steps-of-thinking)
30
+ - [Flux](#example-flux-inpaintlanpaint-k-sampler-5-steps-of-thinking)
31
+ - [SDXL Examples](#example-sdxl-0-character-consistency-side-view-generation-lanpaint-k-sampler-5-steps-of-thinking)
32
+ - [Usage](#usage)
33
+ - [Basic Sampler](#basic-sampler)
34
+ - [Advanced Sampler](#lanpaint-ksampler-advanced)
35
+ - [Tuning Guide](#lanpaint-ksampler-advanced-tuning-guide)
36
+ - [Community Showcase](#community-showcase-)
37
+ - [Updates](#updates)
38
+ - [ToDo](#todo)
39
+ - [Citation](#citation)
40
+
41
+ ## Features
42
+
43
+ - **Universal Compatibility** – Works instantly with almost any model (**SD 1.5, XL, 3.5, Flux, HiDream, Qwen-Image or custom LoRAs**) and ControlNet.
44
+ ![Inpainting Result 13](https://github.com/scraed/LanPaint/blob/master/examples/InpaintChara_13.jpg)
45
+ - **No Training Needed** – Works out of the box with your existing model.
46
+ - **Easy to Use** – Same workflow as standard ComfyUI KSampler.
47
+ - **Flexible Masking** – Supports any mask shape, size, or position for inpainting/outpainting.
48
+ - **No Workarounds** – Generates 100% new content (no blending or smoothing) without relying on partial denoising.
49
+ - **Beyond Inpainting** – You can even use it as a simple way to generate consistent characters.
50
+
51
+ **Warning**: LanPaint has degraded performance on distillation models, such as Flux.dev, due to a similar [issue with LORA training](https://medium.com/@zhiwangshi28/why-flux-lora-so-hard-to-train-and-how-to-overcome-it-a0c70bc59eaf). Please use low flux guidance (1.0-2.0) to mitigate this [issue](https://github.com/scraed/LanPaint/issues/30).
52
+
53
+ ## Quickstart
54
+
55
+ 1. **Install ComfyUI**: Follow the official [ComfyUI installation guide](https://docs.comfy.org/get_started) to set up ComfyUI on your system. Or ensure your ComfyUI version > 0.3.11.
56
+ 2. **Install ComfyUI-Manager**: Add the [ComfyUI-Manager](https://github.com/ltdrdata/ComfyUI-Manager) for easy extension management.
57
+ 3. **Install LanPaint Nodes**:
58
+ - **Via ComfyUI-Manager**: Search for "[LanPaint](https://registry.comfy.org/publishers/scraed/nodes/LanPaint)" in the manager and install it directly.
59
+ - **Manually**: Click "Install via Git URL" in ComfyUI-Manager and input the GitHub repository link:
60
+ ```
61
+ https://github.com/scraed/LanPaint.git
62
+ ```
63
+ Alternatively, clone this repository into the `ComfyUI/custom_nodes` folder.
64
+ 4. **Restart ComfyUI**: Restart ComfyUI to load the LanPaint nodes.
65
+
66
+ Once installed, you'll find the LanPaint nodes under the "sampling" category in ComfyUI. Use them just like the default KSampler for high-quality inpainting!
67
+
68
+
69
+ ## **How to Use Examples:**
70
+ 1. Navigate to the **example** folder (i.e example_1), download all pictures.
71
+ 2. Drag **InPainted_Drag_Me_to_ComfyUI.png** into ComfyUI to load the workflow.
72
+ 3. Download the required model (i.e clicking **Model Used in This Example**).
73
+ 4. Load the model in ComfyUI.
74
+ 5. Upload **Masked_Load_Me_in_Loader.png** to the **"Load image"** node in the **"Mask image for inpainting"** group (second from left), or the **Prepare Image** node.
75
+ 7. Queue the task, you will get inpainted results from LanPaint. Some example also gives you inpainted results from the following methods for comparison:
76
+ - **[VAE Encode for Inpainting](https://comfyanonymous.github.io/ComfyUI_examples/inpaint/)**
77
+ - **[Set Latent Noise Mask](https://comfyui-wiki.com/en/tutorial/basic/how-to-inpaint-an-image-in-comfyui)**
78
+
79
+ ## Examples
80
+
81
+ ### Example Qwen Image: InPaint(LanPaint K Sampler, 5 steps of thinking)
82
+ We are excited to announce that LanPaint now supports Qwen Image, providing powerful inpainting capabilities for image editing.
83
+
84
+ ![Inpainting Result 14](https://github.com/scraed/LanPaint/blob/master/examples/InpaintChara_14.jpg)
85
+ [View Workflow & Masks](https://github.com/scraed/LanPaint/tree/master/examples/Example_11)
86
+
87
+
88
+ You need to follow the ComfyUI version of [Qwen Image workflow](https://docs.comfy.org/tutorials/image/qwen/qwen-image) to download and install the model.
89
+
90
+ The following examples utilize a random seed of 0 to generate a batch of 4 images for variance demonstration and fair comparison. (Note: Generating 4 images may exceed your GPU memory; please adjust the batch size as necessary.)
91
+
92
+ ### Example HiDream: InPaint (LanPaint K Sampler, 5 steps of thinking)
93
+ ![Inpainting Result 8](https://github.com/scraed/LanPaint/blob/master/examples/InpaintChara_11.jpg)
94
+ [View Workflow & Masks](https://github.com/scraed/LanPaint/tree/master/examples/Example_8)
95
+
96
+ You need to follow the ComfyUI version of [HiDream workflow](https://docs.comfy.org/tutorials/image/hidream/hidream-i1) to download and install the model.
97
+
98
+ ### Example HiDream: OutPaint(LanPaint K Sampler, 5 steps of thinking)
99
+ ![Inpainting Result 8](https://github.com/scraed/LanPaint/blob/master/examples/InpaintChara_13(1).jpg)
100
+ [View Workflow & Masks](https://github.com/scraed/LanPaint/tree/master/examples/Example_10)
101
+
102
+ You need to follow the ComfyUI version of [HiDream workflow](https://docs.comfy.org/tutorials/image/hidream/hidream-i1) to download and install the model. Thanks [Amazon90](https://github.com/Amazon90) for providing this example.
103
+
104
+ ### Example SD 3.5: InPaint(LanPaint K Sampler, 5 steps of thinking)
105
+ ![Inpainting Result 8](https://github.com/scraed/LanPaint/blob/master/examples/InpaintChara_12.jpg)
106
+ [View Workflow & Masks](https://github.com/scraed/LanPaint/tree/master/examples/Example_9)
107
+
108
+ You need to follow the ComfyUI version of [SD 3.5 workflow](https://comfyui-wiki.com/en/tutorial/advanced/stable-diffusion-3-5-comfyui-workflow) to download and install the model.
109
+
110
+ ### Example Flux: InPaint(LanPaint K Sampler, 5 steps of thinking)
111
+ ![Inpainting Result 7](https://github.com/scraed/LanPaint/blob/master/examples/InpaintChara_10.jpg)
112
+ [View Workflow & Masks](https://github.com/scraed/LanPaint/tree/master/examples/Example_7)
113
+ [Model Used in This Example](https://huggingface.co/Comfy-Org/flux1-dev/blob/main/flux1-dev-fp8.safetensors)
114
+ (Note: Prompt First mode is disabled on Flux. As it does not use CFG guidance.)
115
+
116
+ ### Example SDXL 0: Character Consistency (Side View Generation) (LanPaint K Sampler, 5 steps of thinking)
117
+ ![Inpainting Result 6](https://github.com/scraed/LanPaint/blob/master/examples/InpaintChara_09.jpg)
118
+ [View Workflow & Masks](https://github.com/scraed/LanPaint/tree/master/examples/Example_6)
119
+ [Model Used in This Example](https://civitai.com/models/1188071?modelVersionId=1408658)
120
+
121
+ (Tricks 1: You can emphasize the character by copy it's image multiple times with Photoshop. Here I have made one extra copy.)
122
+
123
+ (Tricks 2: Use prompts like multiple views, multiple angles, clone, turnaround. Use LanPaint's Prompt first mode (does not support Flux))
124
+
125
+ (Tricks 3: Remeber LanPaint can in-paint: Mask non-consistent regions and try again!)
126
+
127
+
128
+ ### Example SDXL 1: Basket to Basket Ball (LanPaint K Sampler, 2 steps of thinking).
129
+ ![Inpainting Result 1](https://github.com/scraed/LanPaint/blob/master/examples/InpaintChara_04.jpg)
130
+ [View Workflow & Masks](https://github.com/scraed/LanPaint/tree/master/examples/Example_1)
131
+ [Model Used in This Example](https://civitai.com/models/1188071?modelVersionId=1408658)
132
+ ### Example SDXL 2: White Shirt to Blue Shirt (LanPaint K Sampler, 5 steps of thinking)
133
+ ![Inpainting Result 2](https://github.com/scraed/LanPaint/blob/master/examples/InpaintChara_05.jpg)
134
+ [View Workflow & Masks](https://github.com/scraed/LanPaint/tree/master/examples/Example_2)
135
+ [Model Used in This Example](https://civitai.com/models/1188071?modelVersionId=1408658)
136
+ ### Example SDXL 3: Smile to Sad (LanPaint K Sampler, 5 steps of thinking)
137
+ ![Inpainting Result 3](https://github.com/scraed/LanPaint/blob/master/examples/InpaintChara_06.jpg)
138
+ [View Workflow & Masks](https://github.com/scraed/LanPaint/tree/master/examples/Example_3)
139
+ [Model Used in This Example](https://civitai.com/models/133005/juggernaut-xl)
140
+ ### Example SDXL 4: Damage Restoration (LanPaint K Sampler, 5 steps of thinking)
141
+ ![Inpainting Result 4](https://github.com/scraed/LanPaint/blob/master/examples/InpaintChara_07.jpg)
142
+ [View Workflow & Masks](https://github.com/scraed/LanPaint/tree/master/examples/Example_4)
143
+ [Model Used in This Example](https://civitai.com/models/133005/juggernaut-xl)
144
+ ### Example SDXL 5: Huge Damage Restoration (LanPaint K Sampler, 20 steps of thinking)
145
+ ![Inpainting Result 5](https://github.com/scraed/LanPaint/blob/master/examples/InpaintChara_08.jpg)
146
+ [View Workflow & Masks](https://github.com/scraed/LanPaint/tree/master/examples/Example_5)
147
+ [Model Used in This Example](https://civitai.com/models/133005/juggernaut-xl)
148
+
149
+ Check more for use cases like inpaint on [fine tuned models](https://github.com/scraed/LanPaint/issues/12#issuecomment-2938662021) and [face swapping](https://github.com/scraed/LanPaint/issues/12#issuecomment-2938723501), thanks to [Amazon90](https://github.com/Amazon90).
150
+
151
+
152
+ ## Usage
153
+
154
+ **Workflow Setup**
155
+ Same as default ComfyUI KSampler - simply replace with LanPaint KSampler nodes. The inpainting workflow is the same as the [SetLatentNoiseMask](https://comfyui-wiki.com/zh/comfyui-nodes/latent/inpaint/set-latent-noise-mask) inpainting workflow.
156
+
157
+ **Note**
158
+ - LanPaint requires binary masks (values of 0 or 1) without opacity or smoothing. To ensure compatibility, set the mask's **opacity and hardness to maximum** in your mask editor. During inpainting, any mask with smoothing or gradients will automatically be converted to a binary mask.
159
+ - LanPaint relies heavily on your text prompts to guide inpainting - explicitly describe the content you want generated in the masked area. If results show artifacts or mismatched elements, counteract them with targeted negative prompts.
160
+
161
+ ## Basic Sampler
162
+ ![Samplers](https://github.com/scraed/LanPaint/blob/master/Nodes.JPG)
163
+
164
+ - LanPaint KSampler: The most basic and easy to use sampler for inpainting.
165
+ - LanPaint KSampler (Advanced): Full control of all parameters.
166
+
167
+ ### LanPaint KSampler
168
+ Simplified interface with recommended defaults:
169
+
170
+ - Steps: 20 - 50. More steps will give more "thinking" and better results.
171
+ - LanPaint NumSteps: The turns of thinking before denoising. Recommend 5 for most of tasks ( which means 5 times slower than sampling without thinking). Use 10 for more challenging tasks.
172
+ - LanPaint Prompt mode: Image First mode and Prompt First mode. Image First mode focuses on the image, inpaint based on image context (maybe ignore prompt), while Prompt First mode focuses more on the prompt. Use Prompt First mode for tasks like character consistency. (Technically, it Prompt First mode change CFG scale to negative value in the BIG score to emphasis prompt, which will costs image quality.)
173
+
174
+ ### LanPaint KSampler (Advanced)
175
+ Full parameter control:
176
+ **Key Parameters**
177
+
178
+ | Parameter | Range | Description |
179
+ |-----------|-------|-------------|
180
+ | `Steps` | 0-100 | Total steps of diffusion sampling. Higher means better inpainting. Recommend 20-50. |
181
+ | `LanPaint_NumSteps` | 0-20 | Reasoning iterations per denoising step ("thinking depth"). Easy task: 2-5. Hard task: 5-10 |
182
+ | `LanPaint_Lambda` | 0.1-50 | Content alignment strength (higher = stricter). Recommend 4.0 - 10.0 |
183
+ | `LanPaint_StepSize` | 0.1-1.0 | The StepSize of each thinking step. Recommend 0.1-0.5. |
184
+ | `LanPaint_Beta` | 0.1-2.0 | The StepSize ratio between masked / unmasked region. Small value can compensate high lambda values. Recommend 1.0 |
185
+ | `LanPaint_Friction` | 0.0-100.0 | The friction of Langevin dynamics. Higher means more slow but stable, lower means fast but unstable. Recommend 10.0 - 20.0|
186
+ | `LanPaint_EarlyStop` | 0-10 | Stop LanPaint iteration before the final sampling step. Helps to remove artifacts in some cases. Recommend 1-5|
187
+ | `LanPaint_PromptMode` | Image First / Prompt First | Image First mode focuses on the image context, maybe ignore prompt. Prompt First mode focuses more on the prompt. |
188
+
189
+ For detailed descriptions of each parameter, simply hover your mouse over the corresponding input field to view tooltips with additional information.
190
+
191
+ ### LanPaint Mask Blend
192
+ This node blends the original image with the inpainted image based on the mask. It is useful if you want the unmasked region to match the original image pixel perfectly.
193
+
194
+ ## LanPaint KSampler (Advanced) Tuning Guide
195
+ For challenging inpainting tasks:
196
+
197
+ 1️⃣ **Boost Quality**
198
+ Increase **total number of sampling steps** (very important!), **LanPaint_NumSteps** (thinking iterations) or **LanPaint_Lambda** if the inpainted result does not meet your expectations.
199
+
200
+ 2️⃣ **Boost Speed**
201
+ Decrease **LanPaint_NumSteps** to accelerate generation! If you want better results but still need fewer steps, consider:
202
+ - **Increasing LanPaint_StepSize** to speed up the thinking process.
203
+ - **Decreasing LanPaint_Friction** to make the Langevin dynamics converges more faster.
204
+
205
+ 3️⃣ **Fix Unstability**:
206
+ If you find the results have wired texture, try
207
+ - Reduce **LanPaint_Friction** to make the Langevin dynamics more stable.
208
+ - Reduce **LanPaint_StepSize** to use smaller step size.
209
+ - Reduce **LanPaint_Beta** if you are using a high lambda value.
210
+
211
+ ⚠️ **Notes**:
212
+ - For effective tuning, **fix the seed** and adjust parameters incrementally while observing the results. This helps isolate the impact of each setting. Better to do it with a batche of images to avoid overfitting on a single image.
213
+
214
+ ## Community Showcase [](#community-showcase-)
215
+
216
+ Discover how the community is using LanPaint! Here are some user-created tutorials:
217
+
218
+ - [Ai绘画进阶148-三大王炸!庆祝高允贞出道6周年!T8即将直播?当AI绘画学会深度思考?!万能修复神器LanPaint,万物皆可修!-T8 Comfyui教程](https://www.youtube.com/watch?v=Z4DSTv3UPJo)
219
+ - [Ai绘画进阶151-真相了!T8竟是个AI?!LanPaint进阶(二),人物一致性,多视角实验性测试,新参数讲解,工作流分享-T8 Comfyui教程](https://www.youtube.com/watch?v=landiRhvF3k)
220
+ - [重绘和三视图角色一致性解决新方案!LanPaint节点尝试](https://www.youtube.com/watch?v=X0WbXdm6FA0)
221
+ - [ComfyUI: HiDream with Perturbation Upscale, LanPaint Inpainting (Workflow Tutorial)](https://www.youtube.com/watch?v=2-mGe4QVIIw&t=2785s)
222
+ - [ComfyUI必备LanPaint插件超详细使用教程](https://plugin.aix.ink/archives/lanpaint)
223
+
224
+ Submit a PR to add your tutorial/video here, or open an [Issue](https://github.com/scraed/LanPaint/issues) with details!
225
+
226
+ ## Updates
227
+ - 2025/08/08
228
+ - Add Qwen image support
229
+ - 2025/06/21
230
+ - Update the algorithm with enhanced stability and outpaint performance.
231
+ - Add outpaint example
232
+ - Supports Sampler Custom (Thanks to [MINENEMA](https://github.com/MINENEMA))
233
+ - 2025/06/04
234
+ - Add more sampler support.
235
+ - Add early stopping to advanced sampler.
236
+ - 2025/05/28
237
+ - Major update on the Langevin solver. It is now much faster and more stable.
238
+ - Greatly simplified the parameters for advanced sampler.
239
+ - Fix performance issue on Flux and SD 3.5
240
+ - 2025/04/16
241
+ - Added Primary HiDream support
242
+ - 2025/03/22
243
+ - Added Primary Flux support
244
+ - Added Tease Mode
245
+ - 2025/03/10
246
+ - LanPaint has received a major update! All examples now use the LanPaint K Sampler, offering a simplified interface with enhanced performance and stability.
247
+ - 2025/03/06:
248
+ - Bug Fix for str not callable error and unpack error. Big thanks to [jamesWalker55](https://github.com/jamesWalker55) and [EricBCoding](https://github.com/EricBCoding).
249
+
250
+ ## ToDo
251
+ - Try Implement Detailer
252
+ - ~~Provide inference code on without GUI.~~ Check our local Python benchmark code [LanPaintBench](https://github.com/scraed/LanPaintBench).
253
+
254
+ ## Citation
255
+
256
+ ```
257
+ @misc{zheng2025lanpainttrainingfreediffusioninpainting,
258
+ title={Lanpaint: Training-Free Diffusion Inpainting with Exact and Fast Conditional Inference},
259
+ author={Candi Zheng and Yuan Lan and Yang Wang},
260
+ year={2025},
261
+ eprint={2502.03491},
262
+ archivePrefix={arXiv},
263
+ primaryClass={eess.IV},
264
+ url={https://arxiv.org/abs/2502.03491},
265
+ }
266
+ ```
267
+
268
+
269
+
270
+
271
+
272
+
__init__.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Top-level package for LanPaint."""
2
+
3
+ __all__ = [
4
+ "NODE_CLASS_MAPPINGS",
5
+ "NODE_DISPLAY_NAME_MAPPINGS",
6
+ "WEB_DIRECTORY",
7
+ ]
8
+
9
+ __author__ = """LanPaint"""
10
+ __email__ = "czhengac@connect.ust.hk"
11
+ __version__ = "0.0.1"
12
+
13
+ from .src.LanPaint.nodes import NODE_CLASS_MAPPINGS
14
+ from .src.LanPaint.nodes import NODE_DISPLAY_NAME_MAPPINGS
15
+
16
+ WEB_DIRECTORY = "./web"
example_workflows/Masked Qwen Image Edit.json ADDED
@@ -0,0 +1,1367 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "id": "91f6bbe2-ed41-4fd6-bac7-71d5b5864ecb",
3
+ "revision": 0,
4
+ "last_node_id": 141,
5
+ "last_link_id": 293,
6
+ "nodes": [
7
+ {
8
+ "id": 99,
9
+ "type": "MarkdownNote",
10
+ "pos": [
11
+ -830,
12
+ -10
13
+ ],
14
+ "size": [
15
+ 540,
16
+ 550
17
+ ],
18
+ "flags": {},
19
+ "order": 0,
20
+ "mode": 0,
21
+ "inputs": [],
22
+ "outputs": [],
23
+ "title": "Model links",
24
+ "properties": {
25
+ "widget_ue_connectable": {}
26
+ },
27
+ "widgets_values": [
28
+ "[Tutorial](https://docs.comfy.org/tutorials/image/qwen/qwen-image-edit) | [教程](https://docs.comfy.org/zh-CN/tutorials/image/qwen/qwen-image-edit)\n\n\n## Model links\n\nYou can find all the models on [Comfy-Org/Qwen-Image_ComfyUI](https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/tree/main) and [Comfy-Org/Qwen-Image-Edit_ComfyUI](https://huggingface.co/Comfy-Org/Qwen-Image-Edit_ComfyUI) \n\n**Diffusion model**\n\n- [qwen_image_edit_fp8_e4m3fn.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-Edit_ComfyUI/resolve/main/split_files/diffusion_models/qwen_image_edit_fp8_e4m3fn.safetensors)\n\n**LoRA**\n\n- [Qwen-Image-Lightning-4steps-V1.0.safetensors](https://huggingface.co/lightx2v/Qwen-Image-Lightning/resolve/main/Qwen-Image-Lightning-4steps-V1.0.safetensors)\n\n**Text encoder**\n\n- [qwen_2.5_vl_7b_fp8_scaled.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors)\n\n**VAE**\n\n- [qwen_image_vae.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/vae/qwen_image_vae.safetensors)\n\nModel Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│ ├── 📂 diffusion_models/\n│ │ └── qwen_image_edit_fp8_e4m3fn.safetensors\n│ ├── 📂 loras/\n│ │ └── Qwen-Image-Lightning-4steps-V1.0.safetensors\n│ ├── 📂 vae/\n│ │ └── qwen_image_vae.safetensors\n│ └── 📂 text_encoders/\n│ └── qwen_2.5_vl_7b_fp8_scaled.safetensors\n```\n"
29
+ ],
30
+ "color": "#432",
31
+ "bgcolor": "#653"
32
+ },
33
+ {
34
+ "id": 126,
35
+ "type": "VAELoader",
36
+ "pos": [
37
+ -249.80447387695312,
38
+ 337.1279296875
39
+ ],
40
+ "size": [
41
+ 330,
42
+ 60
43
+ ],
44
+ "flags": {},
45
+ "order": 1,
46
+ "mode": 0,
47
+ "inputs": [],
48
+ "outputs": [
49
+ {
50
+ "name": "VAE",
51
+ "type": "VAE",
52
+ "slot_index": 0,
53
+ "links": [
54
+ 256,
55
+ 258,
56
+ 276,
57
+ 288
58
+ ]
59
+ }
60
+ ],
61
+ "properties": {
62
+ "cnr_id": "comfy-core",
63
+ "ver": "0.3.48",
64
+ "Node name for S&R": "VAELoader",
65
+ "models": [
66
+ {
67
+ "name": "qwen_image_vae.safetensors",
68
+ "url": "https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/vae/qwen_image_vae.safetensors",
69
+ "directory": "vae"
70
+ }
71
+ ],
72
+ "enableTabs": false,
73
+ "tabWidth": 65,
74
+ "tabXOffset": 10,
75
+ "hasSecondTab": false,
76
+ "secondTabText": "Send Back",
77
+ "secondTabOffset": 80,
78
+ "secondTabWidth": 65,
79
+ "widget_ue_connectable": {}
80
+ },
81
+ "widgets_values": [
82
+ "qwen_image_vae.safetensors"
83
+ ]
84
+ },
85
+ {
86
+ "id": 128,
87
+ "type": "TextEncodeQwenImageEdit",
88
+ "pos": [
89
+ 137.7421112060547,
90
+ 395.8420104980469
91
+ ],
92
+ "size": [
93
+ 360,
94
+ 150
95
+ ],
96
+ "flags": {},
97
+ "order": 14,
98
+ "mode": 0,
99
+ "inputs": [
100
+ {
101
+ "name": "clip",
102
+ "type": "CLIP",
103
+ "link": 257
104
+ },
105
+ {
106
+ "name": "vae",
107
+ "shape": 7,
108
+ "type": "VAE",
109
+ "link": 258
110
+ },
111
+ {
112
+ "name": "image",
113
+ "shape": 7,
114
+ "type": "IMAGE",
115
+ "link": 283
116
+ }
117
+ ],
118
+ "outputs": [
119
+ {
120
+ "name": "CONDITIONING",
121
+ "type": "CONDITIONING",
122
+ "links": [
123
+ 268
124
+ ]
125
+ }
126
+ ],
127
+ "properties": {
128
+ "cnr_id": "comfy-core",
129
+ "ver": "0.3.50",
130
+ "Node name for S&R": "TextEncodeQwenImageEdit",
131
+ "enableTabs": false,
132
+ "tabWidth": 65,
133
+ "tabXOffset": 10,
134
+ "hasSecondTab": false,
135
+ "secondTabText": "Send Back",
136
+ "secondTabOffset": 80,
137
+ "secondTabWidth": 65,
138
+ "ue_properties": {
139
+ "widget_ue_connectable": {
140
+ "prompt": true
141
+ }
142
+ }
143
+ },
144
+ "widgets_values": [
145
+ ""
146
+ ],
147
+ "color": "#223",
148
+ "bgcolor": "#335"
149
+ },
150
+ {
151
+ "id": 129,
152
+ "type": "ModelSamplingAuraFlow",
153
+ "pos": [
154
+ 550.1956176757812,
155
+ 27.127967834472656
156
+ ],
157
+ "size": [
158
+ 290,
159
+ 60
160
+ ],
161
+ "flags": {},
162
+ "order": 16,
163
+ "mode": 0,
164
+ "inputs": [
165
+ {
166
+ "name": "model",
167
+ "type": "MODEL",
168
+ "link": 293
169
+ }
170
+ ],
171
+ "outputs": [
172
+ {
173
+ "name": "MODEL",
174
+ "type": "MODEL",
175
+ "links": [
176
+ 260
177
+ ]
178
+ }
179
+ ],
180
+ "properties": {
181
+ "cnr_id": "comfy-core",
182
+ "ver": "0.3.48",
183
+ "Node name for S&R": "ModelSamplingAuraFlow",
184
+ "enableTabs": false,
185
+ "tabWidth": 65,
186
+ "tabXOffset": 10,
187
+ "hasSecondTab": false,
188
+ "secondTabText": "Send Back",
189
+ "secondTabOffset": 80,
190
+ "secondTabWidth": 65,
191
+ "widget_ue_connectable": {}
192
+ },
193
+ "widgets_values": [
194
+ 3
195
+ ]
196
+ },
197
+ {
198
+ "id": 130,
199
+ "type": "CFGNorm",
200
+ "pos": [
201
+ 550.1956176757812,
202
+ 137.1279754638672
203
+ ],
204
+ "size": [
205
+ 290,
206
+ 60
207
+ ],
208
+ "flags": {},
209
+ "order": 18,
210
+ "mode": 0,
211
+ "inputs": [
212
+ {
213
+ "name": "model",
214
+ "type": "MODEL",
215
+ "link": 260
216
+ }
217
+ ],
218
+ "outputs": [
219
+ {
220
+ "name": "patched_model",
221
+ "type": "MODEL",
222
+ "links": [
223
+ 269
224
+ ]
225
+ }
226
+ ],
227
+ "properties": {
228
+ "cnr_id": "comfy-core",
229
+ "ver": "0.3.50",
230
+ "Node name for S&R": "CFGNorm",
231
+ "enableTabs": false,
232
+ "tabWidth": 65,
233
+ "tabXOffset": 10,
234
+ "hasSecondTab": false,
235
+ "secondTabText": "Send Back",
236
+ "secondTabOffset": 80,
237
+ "secondTabWidth": 65,
238
+ "ue_properties": {
239
+ "widget_ue_connectable": {
240
+ "strength": true
241
+ }
242
+ }
243
+ },
244
+ "widgets_values": [
245
+ 1
246
+ ]
247
+ },
248
+ {
249
+ "id": 135,
250
+ "type": "VAEEncode",
251
+ "pos": [
252
+ 248.32186889648438,
253
+ 647.2574462890625
254
+ ],
255
+ "size": [
256
+ 140,
257
+ 46
258
+ ],
259
+ "flags": {},
260
+ "order": 12,
261
+ "mode": 0,
262
+ "inputs": [
263
+ {
264
+ "name": "pixels",
265
+ "type": "IMAGE",
266
+ "link": 274
267
+ },
268
+ {
269
+ "name": "vae",
270
+ "type": "VAE",
271
+ "link": 276
272
+ }
273
+ ],
274
+ "outputs": [
275
+ {
276
+ "name": "LATENT",
277
+ "type": "LATENT",
278
+ "links": [
279
+ 272
280
+ ]
281
+ }
282
+ ],
283
+ "properties": {
284
+ "cnr_id": "comfy-core",
285
+ "ver": "0.3.50",
286
+ "Node name for S&R": "VAEEncode",
287
+ "enableTabs": false,
288
+ "tabWidth": 65,
289
+ "tabXOffset": 10,
290
+ "hasSecondTab": false,
291
+ "secondTabText": "Send Back",
292
+ "secondTabOffset": 80,
293
+ "secondTabWidth": 65,
294
+ "ue_properties": {
295
+ "widget_ue_connectable": {}
296
+ }
297
+ },
298
+ "widgets_values": []
299
+ },
300
+ {
301
+ "id": 131,
302
+ "type": "ImageScaleToTotalPixels",
303
+ "pos": [
304
+ -198.91114807128906,
305
+ 893.8960571289062
306
+ ],
307
+ "size": [
308
+ 270,
309
+ 82
310
+ ],
311
+ "flags": {},
312
+ "order": 9,
313
+ "mode": 0,
314
+ "inputs": [
315
+ {
316
+ "name": "image",
317
+ "type": "IMAGE",
318
+ "link": 275
319
+ }
320
+ ],
321
+ "outputs": [
322
+ {
323
+ "name": "IMAGE",
324
+ "type": "IMAGE",
325
+ "links": [
326
+ 274,
327
+ 282,
328
+ 283,
329
+ 289
330
+ ]
331
+ }
332
+ ],
333
+ "properties": {
334
+ "cnr_id": "comfy-core",
335
+ "ver": "0.3.50",
336
+ "Node name for S&R": "ImageScaleToTotalPixels",
337
+ "enableTabs": false,
338
+ "tabWidth": 65,
339
+ "tabXOffset": 10,
340
+ "hasSecondTab": false,
341
+ "secondTabText": "Send Back",
342
+ "secondTabOffset": 80,
343
+ "secondTabWidth": 65,
344
+ "ue_properties": {
345
+ "widget_ue_connectable": {
346
+ "upscale_method": true,
347
+ "megapixels": true
348
+ }
349
+ }
350
+ },
351
+ "widgets_values": [
352
+ "nearest-exact",
353
+ 1
354
+ ]
355
+ },
356
+ {
357
+ "id": 102,
358
+ "type": "LanPaint_KSampler",
359
+ "pos": [
360
+ 916.4383544921875,
361
+ 29.786056518554688
362
+ ],
363
+ "size": [
364
+ 400,
365
+ 572
366
+ ],
367
+ "flags": {},
368
+ "order": 20,
369
+ "mode": 0,
370
+ "inputs": [
371
+ {
372
+ "name": "model",
373
+ "type": "MODEL",
374
+ "link": 269
375
+ },
376
+ {
377
+ "name": "positive",
378
+ "type": "CONDITIONING",
379
+ "link": 267
380
+ },
381
+ {
382
+ "name": "negative",
383
+ "type": "CONDITIONING",
384
+ "link": 268
385
+ },
386
+ {
387
+ "name": "latent_image",
388
+ "type": "LATENT",
389
+ "link": 284
390
+ }
391
+ ],
392
+ "outputs": [
393
+ {
394
+ "name": "LATENT",
395
+ "type": "LATENT",
396
+ "links": [
397
+ 287
398
+ ]
399
+ }
400
+ ],
401
+ "properties": {
402
+ "cnr_id": "LanPaint",
403
+ "ver": "453b6c090e400123bb82f5bc0c97854031b09274",
404
+ "Node name for S&R": "LanPaint_KSampler"
405
+ },
406
+ "widgets_values": [
407
+ 0,
408
+ "fixed",
409
+ 20,
410
+ 2.5,
411
+ "euler",
412
+ "simple",
413
+ 1,
414
+ 5,
415
+ "Image First",
416
+ "LanPaint KSampler. For more info, visit https://github.com/scraed/LanPaint. If you find it useful, please give a star ⭐️!"
417
+ ]
418
+ },
419
+ {
420
+ "id": 110,
421
+ "type": "LoadImage",
422
+ "pos": [
423
+ -207.1995086669922,
424
+ 499.05206298828125
425
+ ],
426
+ "size": [
427
+ 274.080078125,
428
+ 314.0000305175781
429
+ ],
430
+ "flags": {},
431
+ "order": 2,
432
+ "mode": 0,
433
+ "inputs": [],
434
+ "outputs": [
435
+ {
436
+ "name": "IMAGE",
437
+ "type": "IMAGE",
438
+ "links": [
439
+ 275
440
+ ]
441
+ },
442
+ {
443
+ "name": "MASK",
444
+ "type": "MASK",
445
+ "links": [
446
+ 277
447
+ ]
448
+ }
449
+ ],
450
+ "properties": {
451
+ "cnr_id": "comfy-core",
452
+ "ver": "0.3.50",
453
+ "Node name for S&R": "LoadImage",
454
+ "enableTabs": false,
455
+ "tabWidth": 65,
456
+ "tabXOffset": 10,
457
+ "hasSecondTab": false,
458
+ "secondTabText": "Send Back",
459
+ "secondTabOffset": 80,
460
+ "secondTabWidth": 65,
461
+ "ue_properties": {
462
+ "widget_ue_connectable": {
463
+ "image": true,
464
+ "upload": true
465
+ }
466
+ }
467
+ },
468
+ "widgets_values": [
469
+ "clipspace/clipspace-painted-masked-23308506.png [input]",
470
+ "image"
471
+ ]
472
+ },
473
+ {
474
+ "id": 127,
475
+ "type": "TextEncodeQwenImageEdit",
476
+ "pos": [
477
+ 140.195556640625,
478
+ 207.12796020507812
479
+ ],
480
+ "size": [
481
+ 360,
482
+ 150
483
+ ],
484
+ "flags": {},
485
+ "order": 13,
486
+ "mode": 0,
487
+ "inputs": [
488
+ {
489
+ "name": "clip",
490
+ "type": "CLIP",
491
+ "link": 255
492
+ },
493
+ {
494
+ "name": "vae",
495
+ "shape": 7,
496
+ "type": "VAE",
497
+ "link": 256
498
+ },
499
+ {
500
+ "name": "image",
501
+ "shape": 7,
502
+ "type": "IMAGE",
503
+ "link": 282
504
+ }
505
+ ],
506
+ "outputs": [
507
+ {
508
+ "name": "CONDITIONING",
509
+ "type": "CONDITIONING",
510
+ "links": [
511
+ 267
512
+ ]
513
+ }
514
+ ],
515
+ "properties": {
516
+ "cnr_id": "comfy-core",
517
+ "ver": "0.3.50",
518
+ "Node name for S&R": "TextEncodeQwenImageEdit",
519
+ "enableTabs": false,
520
+ "tabWidth": 65,
521
+ "tabXOffset": 10,
522
+ "hasSecondTab": false,
523
+ "secondTabText": "Send Back",
524
+ "secondTabOffset": 80,
525
+ "secondTabWidth": 65,
526
+ "ue_properties": {
527
+ "widget_ue_connectable": {
528
+ "prompt": true
529
+ }
530
+ }
531
+ },
532
+ "widgets_values": [
533
+ "change the girl's cloth to red evening gown "
534
+ ],
535
+ "color": "#232",
536
+ "bgcolor": "#353"
537
+ },
538
+ {
539
+ "id": 138,
540
+ "type": "LanPaint_MaskBlend",
541
+ "pos": [
542
+ 1746.5638427734375,
543
+ 60.70713806152344
544
+ ],
545
+ "size": [
546
+ 210,
547
+ 98
548
+ ],
549
+ "flags": {},
550
+ "order": 22,
551
+ "mode": 0,
552
+ "inputs": [
553
+ {
554
+ "name": "image1",
555
+ "type": "IMAGE",
556
+ "link": 289
557
+ },
558
+ {
559
+ "name": "image2",
560
+ "type": "IMAGE",
561
+ "link": 286
562
+ },
563
+ {
564
+ "name": "mask",
565
+ "type": "MASK",
566
+ "link": 290
567
+ }
568
+ ],
569
+ "outputs": [
570
+ {
571
+ "name": "IMAGE",
572
+ "type": "IMAGE",
573
+ "links": [
574
+ 291
575
+ ]
576
+ }
577
+ ],
578
+ "properties": {
579
+ "cnr_id": "LanPaint",
580
+ "ver": "4d3d5d17f0105b673df92da5b084cce567c9c712",
581
+ "Node name for S&R": "LanPaint_MaskBlend"
582
+ },
583
+ "widgets_values": [
584
+ 9
585
+ ]
586
+ },
587
+ {
588
+ "id": 137,
589
+ "type": "VAEDecode",
590
+ "pos": [
591
+ 1456.255615234375,
592
+ 0.358134925365448
593
+ ],
594
+ "size": [
595
+ 210,
596
+ 46
597
+ ],
598
+ "flags": {},
599
+ "order": 21,
600
+ "mode": 0,
601
+ "inputs": [
602
+ {
603
+ "name": "samples",
604
+ "type": "LATENT",
605
+ "link": 287
606
+ },
607
+ {
608
+ "name": "vae",
609
+ "type": "VAE",
610
+ "link": 288
611
+ }
612
+ ],
613
+ "outputs": [
614
+ {
615
+ "name": "IMAGE",
616
+ "type": "IMAGE",
617
+ "slot_index": 0,
618
+ "links": [
619
+ 286
620
+ ]
621
+ }
622
+ ],
623
+ "properties": {
624
+ "cnr_id": "comfy-core",
625
+ "ver": "0.3.23",
626
+ "Node name for S&R": "VAEDecode"
627
+ },
628
+ "widgets_values": []
629
+ },
630
+ {
631
+ "id": 104,
632
+ "type": "SaveImage",
633
+ "pos": [
634
+ 2063.178955078125,
635
+ 10.873106002807617
636
+ ],
637
+ "size": [
638
+ 311.2532653808594,
639
+ 484.7096252441406
640
+ ],
641
+ "flags": {},
642
+ "order": 23,
643
+ "mode": 0,
644
+ "inputs": [
645
+ {
646
+ "name": "images",
647
+ "type": "IMAGE",
648
+ "link": 291
649
+ }
650
+ ],
651
+ "outputs": [],
652
+ "properties": {
653
+ "cnr_id": "comfy-core",
654
+ "ver": "0.3.23"
655
+ },
656
+ "widgets_values": [
657
+ "ComfyUI"
658
+ ]
659
+ },
660
+ {
661
+ "id": 136,
662
+ "type": "MaskToImage",
663
+ "pos": [
664
+ -125.77210235595703,
665
+ 1047.446533203125
666
+ ],
667
+ "size": [
668
+ 184.62362670898438,
669
+ 26
670
+ ],
671
+ "flags": {},
672
+ "order": 10,
673
+ "mode": 0,
674
+ "inputs": [
675
+ {
676
+ "name": "mask",
677
+ "type": "MASK",
678
+ "link": 277
679
+ }
680
+ ],
681
+ "outputs": [
682
+ {
683
+ "name": "IMAGE",
684
+ "type": "IMAGE",
685
+ "links": [
686
+ 270
687
+ ]
688
+ }
689
+ ],
690
+ "properties": {
691
+ "cnr_id": "comfy-core",
692
+ "ver": "0.3.51",
693
+ "Node name for S&R": "MaskToImage"
694
+ },
695
+ "widgets_values": []
696
+ },
697
+ {
698
+ "id": 133,
699
+ "type": "ImageToMask",
700
+ "pos": [
701
+ -196.46453857421875,
702
+ 1267.0250244140625
703
+ ],
704
+ "size": [
705
+ 270,
706
+ 58
707
+ ],
708
+ "flags": {},
709
+ "order": 17,
710
+ "mode": 0,
711
+ "inputs": [
712
+ {
713
+ "name": "image",
714
+ "type": "IMAGE",
715
+ "link": 271
716
+ }
717
+ ],
718
+ "outputs": [
719
+ {
720
+ "name": "MASK",
721
+ "type": "MASK",
722
+ "links": [
723
+ 273,
724
+ 290
725
+ ]
726
+ }
727
+ ],
728
+ "properties": {
729
+ "cnr_id": "comfy-core",
730
+ "ver": "0.3.51",
731
+ "Node name for S&R": "ImageToMask"
732
+ },
733
+ "widgets_values": [
734
+ "red"
735
+ ]
736
+ },
737
+ {
738
+ "id": 132,
739
+ "type": "ImageScaleToTotalPixels",
740
+ "pos": [
741
+ -191.1123046875,
742
+ 1125.3765869140625
743
+ ],
744
+ "size": [
745
+ 270,
746
+ 82
747
+ ],
748
+ "flags": {},
749
+ "order": 15,
750
+ "mode": 0,
751
+ "inputs": [
752
+ {
753
+ "name": "image",
754
+ "type": "IMAGE",
755
+ "link": 270
756
+ }
757
+ ],
758
+ "outputs": [
759
+ {
760
+ "name": "IMAGE",
761
+ "type": "IMAGE",
762
+ "links": [
763
+ 271
764
+ ]
765
+ }
766
+ ],
767
+ "properties": {
768
+ "cnr_id": "comfy-core",
769
+ "ver": "0.3.50",
770
+ "Node name for S&R": "ImageScaleToTotalPixels",
771
+ "enableTabs": false,
772
+ "tabWidth": 65,
773
+ "tabXOffset": 10,
774
+ "hasSecondTab": false,
775
+ "secondTabText": "Send Back",
776
+ "secondTabOffset": 80,
777
+ "secondTabWidth": 65,
778
+ "ue_properties": {
779
+ "widget_ue_connectable": {
780
+ "upscale_method": true,
781
+ "megapixels": true
782
+ }
783
+ }
784
+ },
785
+ "widgets_values": [
786
+ "nearest-exact",
787
+ 1
788
+ ]
789
+ },
790
+ {
791
+ "id": 134,
792
+ "type": "SetLatentNoiseMask",
793
+ "pos": [
794
+ 425.3291931152344,
795
+ 644.5993041992188
796
+ ],
797
+ "size": [
798
+ 180.74765014648438,
799
+ 46
800
+ ],
801
+ "flags": {},
802
+ "order": 19,
803
+ "mode": 0,
804
+ "inputs": [
805
+ {
806
+ "name": "samples",
807
+ "type": "LATENT",
808
+ "link": 272
809
+ },
810
+ {
811
+ "name": "mask",
812
+ "type": "MASK",
813
+ "link": 273
814
+ }
815
+ ],
816
+ "outputs": [
817
+ {
818
+ "name": "LATENT",
819
+ "type": "LATENT",
820
+ "links": [
821
+ 284
822
+ ]
823
+ }
824
+ ],
825
+ "properties": {
826
+ "cnr_id": "comfy-core",
827
+ "ver": "0.3.51",
828
+ "Node name for S&R": "SetLatentNoiseMask"
829
+ },
830
+ "widgets_values": []
831
+ },
832
+ {
833
+ "id": 96,
834
+ "type": "MarkdownNote",
835
+ "pos": [
836
+ -205.49290466308594,
837
+ 1360.4835205078125
838
+ ],
839
+ "size": [
840
+ 280,
841
+ 88
842
+ ],
843
+ "flags": {},
844
+ "order": 3,
845
+ "mode": 0,
846
+ "inputs": [],
847
+ "outputs": [],
848
+ "properties": {},
849
+ "widgets_values": [
850
+ "This node is to avoid poor output results caused by excessively large input image sizes."
851
+ ],
852
+ "color": "#432",
853
+ "bgcolor": "#653"
854
+ },
855
+ {
856
+ "id": 139,
857
+ "type": "MarkdownNote",
858
+ "pos": [
859
+ -544.4594116210938,
860
+ 908.2171630859375
861
+ ],
862
+ "size": [
863
+ 280,
864
+ 88
865
+ ],
866
+ "flags": {},
867
+ "order": 4,
868
+ "mode": 0,
869
+ "inputs": [],
870
+ "outputs": [],
871
+ "properties": {},
872
+ "widgets_values": [
873
+ "If you have multiple of 8 issue, replace Scale Image to total pixels with Upscale Image and manually set the size."
874
+ ],
875
+ "color": "#432",
876
+ "bgcolor": "#653"
877
+ },
878
+ {
879
+ "id": 97,
880
+ "type": "MarkdownNote",
881
+ "pos": [
882
+ 960.13525390625,
883
+ 776.3380737304688
884
+ ],
885
+ "size": [
886
+ 300,
887
+ 190
888
+ ],
889
+ "flags": {},
890
+ "order": 5,
891
+ "mode": 0,
892
+ "inputs": [],
893
+ "outputs": [],
894
+ "title": "KSampler settings",
895
+ "properties": {},
896
+ "widgets_values": [
897
+ "You can test and find the best setting by yourself. The following table is for reference.\n\n| Model | Steps | CFG |\n|---------------------|---------------|---------------|\n| Offical | 50 | 4.0 \n| fp8_e4m3fn | 20 | 2.5 |\n| fp8_e4m3fn + 4steps LoRA | 4 | 1.0 |\n"
898
+ ],
899
+ "color": "#432",
900
+ "bgcolor": "#653"
901
+ },
902
+ {
903
+ "id": 124,
904
+ "type": "UNETLoader",
905
+ "pos": [
906
+ -249.80447387695312,
907
+ 37.12797164916992
908
+ ],
909
+ "size": [
910
+ 330,
911
+ 90
912
+ ],
913
+ "flags": {},
914
+ "order": 6,
915
+ "mode": 0,
916
+ "inputs": [],
917
+ "outputs": [
918
+ {
919
+ "name": "MODEL",
920
+ "type": "MODEL",
921
+ "slot_index": 0,
922
+ "links": [
923
+ 292
924
+ ]
925
+ }
926
+ ],
927
+ "properties": {
928
+ "cnr_id": "comfy-core",
929
+ "ver": "0.3.48",
930
+ "Node name for S&R": "UNETLoader",
931
+ "models": [
932
+ {
933
+ "name": "qwen_image_edit_fp8_e4m3fn.safetensors",
934
+ "url": "https://huggingface.co/Comfy-Org/Qwen-Image-Edit_ComfyUI/resolve/main/split_files/diffusion_models/qwen_image_edit_fp8_e4m3fn.safetensors",
935
+ "directory": "diffusion_models"
936
+ }
937
+ ],
938
+ "enableTabs": false,
939
+ "tabWidth": 65,
940
+ "tabXOffset": 10,
941
+ "hasSecondTab": false,
942
+ "secondTabText": "Send Back",
943
+ "secondTabOffset": 80,
944
+ "secondTabWidth": 65,
945
+ "widget_ue_connectable": {}
946
+ },
947
+ "widgets_values": [
948
+ "qwen_image_edit_fp8_e4m3fn.safetensors",
949
+ "default"
950
+ ]
951
+ },
952
+ {
953
+ "id": 141,
954
+ "type": "LoraLoaderModelOnly",
955
+ "pos": [
956
+ 199.41346740722656,
957
+ 19.401098251342773
958
+ ],
959
+ "size": [
960
+ 270,
961
+ 82
962
+ ],
963
+ "flags": {},
964
+ "order": 11,
965
+ "mode": 4,
966
+ "inputs": [
967
+ {
968
+ "name": "model",
969
+ "type": "MODEL",
970
+ "link": 292
971
+ }
972
+ ],
973
+ "outputs": [
974
+ {
975
+ "name": "MODEL",
976
+ "type": "MODEL",
977
+ "links": [
978
+ 293
979
+ ]
980
+ }
981
+ ],
982
+ "properties": {
983
+ "cnr_id": "comfy-core",
984
+ "ver": "0.3.50",
985
+ "Node name for S&R": "LoraLoaderModelOnly",
986
+ "models": [
987
+ {
988
+ "name": "Qwen-Image-Lightning-4steps-V1.0.safetensors",
989
+ "url": "https://huggingface.co/lightx2v/Qwen-Image-Lightning/resolve/main/Qwen-Image-Lightning-4steps-V1.0.safetensors",
990
+ "directory": "loras"
991
+ }
992
+ ],
993
+ "enableTabs": false,
994
+ "tabWidth": 65,
995
+ "tabXOffset": 10,
996
+ "hasSecondTab": false,
997
+ "secondTabText": "Send Back",
998
+ "secondTabOffset": 80,
999
+ "secondTabWidth": 65,
1000
+ "ue_properties": {
1001
+ "widget_ue_connectable": {
1002
+ "lora_name": true,
1003
+ "strength_model": true
1004
+ }
1005
+ }
1006
+ },
1007
+ "widgets_values": [
1008
+ "Qwen-Image-Lightning-4steps-V1.0.safetensors",
1009
+ 1
1010
+ ]
1011
+ },
1012
+ {
1013
+ "id": 125,
1014
+ "type": "CLIPLoader",
1015
+ "pos": [
1016
+ -249.80447387695312,
1017
+ 177.12796020507812
1018
+ ],
1019
+ "size": [
1020
+ 330,
1021
+ 110
1022
+ ],
1023
+ "flags": {},
1024
+ "order": 7,
1025
+ "mode": 0,
1026
+ "inputs": [],
1027
+ "outputs": [
1028
+ {
1029
+ "name": "CLIP",
1030
+ "type": "CLIP",
1031
+ "slot_index": 0,
1032
+ "links": [
1033
+ 255,
1034
+ 257
1035
+ ]
1036
+ }
1037
+ ],
1038
+ "properties": {
1039
+ "cnr_id": "comfy-core",
1040
+ "ver": "0.3.48",
1041
+ "Node name for S&R": "CLIPLoader",
1042
+ "models": [
1043
+ {
1044
+ "name": "qwen_2.5_vl_7b_fp8_scaled.safetensors",
1045
+ "url": "https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors",
1046
+ "directory": "text_encoders"
1047
+ }
1048
+ ],
1049
+ "enableTabs": false,
1050
+ "tabWidth": 65,
1051
+ "tabXOffset": 10,
1052
+ "hasSecondTab": false,
1053
+ "secondTabText": "Send Back",
1054
+ "secondTabOffset": 80,
1055
+ "secondTabWidth": 65,
1056
+ "widget_ue_connectable": {}
1057
+ },
1058
+ "widgets_values": [
1059
+ "qwen_2.5_vl_7b_fp8_scaled.safetensors",
1060
+ "qwen_image",
1061
+ "default"
1062
+ ]
1063
+ },
1064
+ {
1065
+ "id": 140,
1066
+ "type": "MarkdownNote",
1067
+ "pos": [
1068
+ 1334.337646484375,
1069
+ 368.5771484375
1070
+ ],
1071
+ "size": [
1072
+ 300,
1073
+ 190
1074
+ ],
1075
+ "flags": {},
1076
+ "order": 8,
1077
+ "mode": 0,
1078
+ "inputs": [],
1079
+ "outputs": [],
1080
+ "title": "KSampler settings",
1081
+ "properties": {},
1082
+ "widgets_values": [
1083
+ "Decrease **LanPaint_NumSteps** for faster generation. \n"
1084
+ ],
1085
+ "color": "#432",
1086
+ "bgcolor": "#653"
1087
+ }
1088
+ ],
1089
+ "links": [
1090
+ [
1091
+ 255,
1092
+ 125,
1093
+ 0,
1094
+ 127,
1095
+ 0,
1096
+ "CLIP"
1097
+ ],
1098
+ [
1099
+ 256,
1100
+ 126,
1101
+ 0,
1102
+ 127,
1103
+ 1,
1104
+ "VAE"
1105
+ ],
1106
+ [
1107
+ 257,
1108
+ 125,
1109
+ 0,
1110
+ 128,
1111
+ 0,
1112
+ "CLIP"
1113
+ ],
1114
+ [
1115
+ 258,
1116
+ 126,
1117
+ 0,
1118
+ 128,
1119
+ 1,
1120
+ "VAE"
1121
+ ],
1122
+ [
1123
+ 260,
1124
+ 129,
1125
+ 0,
1126
+ 130,
1127
+ 0,
1128
+ "MODEL"
1129
+ ],
1130
+ [
1131
+ 267,
1132
+ 127,
1133
+ 0,
1134
+ 102,
1135
+ 1,
1136
+ "CONDITIONING"
1137
+ ],
1138
+ [
1139
+ 268,
1140
+ 128,
1141
+ 0,
1142
+ 102,
1143
+ 2,
1144
+ "CONDITIONING"
1145
+ ],
1146
+ [
1147
+ 269,
1148
+ 130,
1149
+ 0,
1150
+ 102,
1151
+ 0,
1152
+ "MODEL"
1153
+ ],
1154
+ [
1155
+ 270,
1156
+ 136,
1157
+ 0,
1158
+ 132,
1159
+ 0,
1160
+ "IMAGE"
1161
+ ],
1162
+ [
1163
+ 271,
1164
+ 132,
1165
+ 0,
1166
+ 133,
1167
+ 0,
1168
+ "IMAGE"
1169
+ ],
1170
+ [
1171
+ 272,
1172
+ 135,
1173
+ 0,
1174
+ 134,
1175
+ 0,
1176
+ "LATENT"
1177
+ ],
1178
+ [
1179
+ 273,
1180
+ 133,
1181
+ 0,
1182
+ 134,
1183
+ 1,
1184
+ "MASK"
1185
+ ],
1186
+ [
1187
+ 274,
1188
+ 131,
1189
+ 0,
1190
+ 135,
1191
+ 0,
1192
+ "IMAGE"
1193
+ ],
1194
+ [
1195
+ 275,
1196
+ 110,
1197
+ 0,
1198
+ 131,
1199
+ 0,
1200
+ "IMAGE"
1201
+ ],
1202
+ [
1203
+ 276,
1204
+ 126,
1205
+ 0,
1206
+ 135,
1207
+ 1,
1208
+ "VAE"
1209
+ ],
1210
+ [
1211
+ 277,
1212
+ 110,
1213
+ 1,
1214
+ 136,
1215
+ 0,
1216
+ "MASK"
1217
+ ],
1218
+ [
1219
+ 282,
1220
+ 131,
1221
+ 0,
1222
+ 127,
1223
+ 2,
1224
+ "IMAGE"
1225
+ ],
1226
+ [
1227
+ 283,
1228
+ 131,
1229
+ 0,
1230
+ 128,
1231
+ 2,
1232
+ "IMAGE"
1233
+ ],
1234
+ [
1235
+ 284,
1236
+ 134,
1237
+ 0,
1238
+ 102,
1239
+ 3,
1240
+ "LATENT"
1241
+ ],
1242
+ [
1243
+ 286,
1244
+ 137,
1245
+ 0,
1246
+ 138,
1247
+ 1,
1248
+ "IMAGE"
1249
+ ],
1250
+ [
1251
+ 287,
1252
+ 102,
1253
+ 0,
1254
+ 137,
1255
+ 0,
1256
+ "LATENT"
1257
+ ],
1258
+ [
1259
+ 288,
1260
+ 126,
1261
+ 0,
1262
+ 137,
1263
+ 1,
1264
+ "VAE"
1265
+ ],
1266
+ [
1267
+ 289,
1268
+ 131,
1269
+ 0,
1270
+ 138,
1271
+ 0,
1272
+ "IMAGE"
1273
+ ],
1274
+ [
1275
+ 290,
1276
+ 133,
1277
+ 0,
1278
+ 138,
1279
+ 2,
1280
+ "MASK"
1281
+ ],
1282
+ [
1283
+ 291,
1284
+ 138,
1285
+ 0,
1286
+ 104,
1287
+ 0,
1288
+ "IMAGE"
1289
+ ],
1290
+ [
1291
+ 292,
1292
+ 124,
1293
+ 0,
1294
+ 141,
1295
+ 0,
1296
+ "MODEL"
1297
+ ],
1298
+ [
1299
+ 293,
1300
+ 141,
1301
+ 0,
1302
+ 129,
1303
+ 0,
1304
+ "MODEL"
1305
+ ]
1306
+ ],
1307
+ "groups": [
1308
+ {
1309
+ "id": 1,
1310
+ "title": "Step1 - Load models",
1311
+ "bounding": [
1312
+ -270,
1313
+ -40,
1314
+ 370,
1315
+ 450
1316
+ ],
1317
+ "color": "#3f789e",
1318
+ "font_size": 24,
1319
+ "flags": {}
1320
+ },
1321
+ {
1322
+ "id": 2,
1323
+ "title": "Step 2 - Upload image for editing",
1324
+ "bounding": [
1325
+ -270,
1326
+ 430,
1327
+ 370,
1328
+ 400
1329
+ ],
1330
+ "color": "#3f789e",
1331
+ "font_size": 24,
1332
+ "flags": {}
1333
+ },
1334
+ {
1335
+ "id": 3,
1336
+ "title": "Step 3 - Prompt",
1337
+ "bounding": [
1338
+ 130,
1339
+ 130,
1340
+ 380,
1341
+ 433.6000061035156
1342
+ ],
1343
+ "color": "#3f789e",
1344
+ "font_size": 24,
1345
+ "flags": {}
1346
+ }
1347
+ ],
1348
+ "config": {},
1349
+ "extra": {
1350
+ "ds": {
1351
+ "scale": 0.40914901834711453,
1352
+ "offset": [
1353
+ 1600.1095769779836,
1354
+ 518.9695463016635
1355
+ ]
1356
+ },
1357
+ "frontendVersion": "1.25.9",
1358
+ "ue_links": [],
1359
+ "links_added_by_ue": [],
1360
+ "VHS_latentpreview": false,
1361
+ "VHS_latentpreviewrate": 0,
1362
+ "VHS_MetadataImage": true,
1363
+ "VHS_KeepIntermediate": true,
1364
+ "groupNodes": {}
1365
+ },
1366
+ "version": 0.4
1367
+ }
example_workflows/Qwen Image Inpaint.json ADDED
@@ -0,0 +1,806 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "id": "11cce4ab-536b-4f42-a95c-0be437d04ace",
3
+ "revision": 0,
4
+ "last_node_id": 128,
5
+ "last_link_id": 338,
6
+ "nodes": [
7
+ {
8
+ "id": 74,
9
+ "type": "LanPaint_KSampler",
10
+ "pos": [
11
+ 276.219970703125,
12
+ 179.55892944335938
13
+ ],
14
+ "size": [
15
+ 388.97625732421875,
16
+ 572
17
+ ],
18
+ "flags": {},
19
+ "order": 10,
20
+ "mode": 0,
21
+ "inputs": [
22
+ {
23
+ "name": "model",
24
+ "type": "MODEL",
25
+ "link": 325
26
+ },
27
+ {
28
+ "name": "positive",
29
+ "type": "CONDITIONING",
30
+ "link": 323
31
+ },
32
+ {
33
+ "name": "negative",
34
+ "type": "CONDITIONING",
35
+ "link": 324
36
+ },
37
+ {
38
+ "name": "latent_image",
39
+ "type": "LATENT",
40
+ "link": 332
41
+ }
42
+ ],
43
+ "outputs": [
44
+ {
45
+ "name": "LATENT",
46
+ "type": "LATENT",
47
+ "slot_index": 0,
48
+ "links": [
49
+ 334
50
+ ]
51
+ }
52
+ ],
53
+ "properties": {
54
+ "cnr_id": "LanPaint",
55
+ "ver": "56bd6c04e89124cd06682b304245d6ddf8b20522",
56
+ "Node name for S&R": "LanPaint_KSampler"
57
+ },
58
+ "widgets_values": [
59
+ 0,
60
+ "fixed",
61
+ 20,
62
+ 4,
63
+ "euler",
64
+ "simple",
65
+ 1,
66
+ 5,
67
+ "Image First",
68
+ "LanPaint KSampler. For more info, visit https://github.com/scraed/LanPaint. If you find it useful, please give a star ⭐️!"
69
+ ]
70
+ },
71
+ {
72
+ "id": 113,
73
+ "type": "SaveImage",
74
+ "pos": [
75
+ 807.1268310546875,
76
+ 868.395263671875
77
+ ],
78
+ "size": [
79
+ 311.2532653808594,
80
+ 484.7096252441406
81
+ ],
82
+ "flags": {},
83
+ "order": 13,
84
+ "mode": 0,
85
+ "inputs": [
86
+ {
87
+ "name": "images",
88
+ "type": "IMAGE",
89
+ "link": 338
90
+ }
91
+ ],
92
+ "outputs": [],
93
+ "properties": {
94
+ "cnr_id": "comfy-core",
95
+ "ver": "0.3.23"
96
+ },
97
+ "widgets_values": [
98
+ "ComfyUI"
99
+ ]
100
+ },
101
+ {
102
+ "id": 117,
103
+ "type": "CLIPLoader",
104
+ "pos": [
105
+ -824.4296875,
106
+ 177.9814910888672
107
+ ],
108
+ "size": [
109
+ 330,
110
+ 110
111
+ ],
112
+ "flags": {},
113
+ "order": 0,
114
+ "mode": 0,
115
+ "inputs": [],
116
+ "outputs": [
117
+ {
118
+ "name": "CLIP",
119
+ "type": "CLIP",
120
+ "slot_index": 0,
121
+ "links": [
122
+ 318,
123
+ 319
124
+ ]
125
+ }
126
+ ],
127
+ "properties": {
128
+ "cnr_id": "comfy-core",
129
+ "ver": "0.3.48",
130
+ "Node name for S&R": "CLIPLoader",
131
+ "models": [
132
+ {
133
+ "name": "qwen_2.5_vl_7b_fp8_scaled.safetensors",
134
+ "url": "https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors",
135
+ "directory": "text_encoders"
136
+ }
137
+ ],
138
+ "enableTabs": false,
139
+ "tabWidth": 65,
140
+ "tabXOffset": 10,
141
+ "hasSecondTab": false,
142
+ "secondTabText": "Send Back",
143
+ "secondTabOffset": 80,
144
+ "secondTabWidth": 65,
145
+ "widget_ue_connectable": {}
146
+ },
147
+ "widgets_values": [
148
+ "qwen_2.5_vl_7b_fp8_scaled.safetensors",
149
+ "qwen_image",
150
+ "default"
151
+ ]
152
+ },
153
+ {
154
+ "id": 118,
155
+ "type": "VAELoader",
156
+ "pos": [
157
+ -824.4296875,
158
+ 327.9817199707031
159
+ ],
160
+ "size": [
161
+ 330,
162
+ 60
163
+ ],
164
+ "flags": {},
165
+ "order": 1,
166
+ "mode": 0,
167
+ "inputs": [],
168
+ "outputs": [
169
+ {
170
+ "name": "VAE",
171
+ "type": "VAE",
172
+ "slot_index": 0,
173
+ "links": [
174
+ 329,
175
+ 335
176
+ ]
177
+ }
178
+ ],
179
+ "properties": {
180
+ "cnr_id": "comfy-core",
181
+ "ver": "0.3.48",
182
+ "Node name for S&R": "VAELoader",
183
+ "models": [
184
+ {
185
+ "name": "qwen_image_vae.safetensors",
186
+ "url": "https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/vae/qwen_image_vae.safetensors",
187
+ "directory": "vae"
188
+ }
189
+ ],
190
+ "enableTabs": false,
191
+ "tabWidth": 65,
192
+ "tabXOffset": 10,
193
+ "hasSecondTab": false,
194
+ "secondTabText": "Send Back",
195
+ "secondTabOffset": 80,
196
+ "secondTabWidth": 65,
197
+ "widget_ue_connectable": {}
198
+ },
199
+ "widgets_values": [
200
+ "qwen_image_vae.safetensors"
201
+ ]
202
+ },
203
+ {
204
+ "id": 121,
205
+ "type": "CLIPTextEncode",
206
+ "pos": [
207
+ -454.4298095703125,
208
+ 247.9816436767578
209
+ ],
210
+ "size": [
211
+ 425.27801513671875,
212
+ 180.6060791015625
213
+ ],
214
+ "flags": {},
215
+ "order": 6,
216
+ "mode": 0,
217
+ "inputs": [
218
+ {
219
+ "name": "clip",
220
+ "type": "CLIP",
221
+ "link": 319
222
+ }
223
+ ],
224
+ "outputs": [
225
+ {
226
+ "name": "CONDITIONING",
227
+ "type": "CONDITIONING",
228
+ "slot_index": 0,
229
+ "links": [
230
+ 324
231
+ ]
232
+ }
233
+ ],
234
+ "title": "CLIP Text Encode (Negative Prompt)",
235
+ "properties": {
236
+ "cnr_id": "comfy-core",
237
+ "ver": "0.3.48",
238
+ "Node name for S&R": "CLIPTextEncode",
239
+ "enableTabs": false,
240
+ "tabWidth": 65,
241
+ "tabXOffset": 10,
242
+ "hasSecondTab": false,
243
+ "secondTabText": "Send Back",
244
+ "secondTabOffset": 80,
245
+ "secondTabWidth": 65,
246
+ "widget_ue_connectable": {}
247
+ },
248
+ "widgets_values": [
249
+ " low quality, bad anatomy, extra digits, missing digits, extra limbs, missing limbs"
250
+ ],
251
+ "color": "#322",
252
+ "bgcolor": "#533"
253
+ },
254
+ {
255
+ "id": 122,
256
+ "type": "ModelSamplingAuraFlow",
257
+ "pos": [
258
+ -34.14249038696289,
259
+ -43.64523696899414
260
+ ],
261
+ "size": [
262
+ 300,
263
+ 58
264
+ ],
265
+ "flags": {},
266
+ "order": 7,
267
+ "mode": 0,
268
+ "inputs": [
269
+ {
270
+ "name": "model",
271
+ "type": "MODEL",
272
+ "link": 320
273
+ }
274
+ ],
275
+ "outputs": [
276
+ {
277
+ "name": "MODEL",
278
+ "type": "MODEL",
279
+ "links": [
280
+ 325
281
+ ]
282
+ }
283
+ ],
284
+ "properties": {
285
+ "cnr_id": "comfy-core",
286
+ "ver": "0.3.48",
287
+ "Node name for S&R": "ModelSamplingAuraFlow",
288
+ "enableTabs": false,
289
+ "tabWidth": 65,
290
+ "tabXOffset": 10,
291
+ "hasSecondTab": false,
292
+ "secondTabText": "Send Back",
293
+ "secondTabOffset": 80,
294
+ "secondTabWidth": 65,
295
+ "widget_ue_connectable": {}
296
+ },
297
+ "widgets_values": [
298
+ 3.5
299
+ ]
300
+ },
301
+ {
302
+ "id": 119,
303
+ "type": "UNETLoader",
304
+ "pos": [
305
+ -824.4296875,
306
+ 37.98154830932617
307
+ ],
308
+ "size": [
309
+ 330,
310
+ 90
311
+ ],
312
+ "flags": {},
313
+ "order": 2,
314
+ "mode": 0,
315
+ "inputs": [],
316
+ "outputs": [
317
+ {
318
+ "name": "MODEL",
319
+ "type": "MODEL",
320
+ "slot_index": 0,
321
+ "links": [
322
+ 320
323
+ ]
324
+ }
325
+ ],
326
+ "properties": {
327
+ "cnr_id": "comfy-core",
328
+ "ver": "0.3.48",
329
+ "Node name for S&R": "UNETLoader",
330
+ "models": [
331
+ {
332
+ "name": "qwen_image_fp8_e4m3fn.safetensors",
333
+ "url": "https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/diffusion_models/qwen_image_fp8_e4m3fn.safetensors",
334
+ "directory": "diffusion_models"
335
+ }
336
+ ],
337
+ "enableTabs": false,
338
+ "tabWidth": 65,
339
+ "tabXOffset": 10,
340
+ "hasSecondTab": false,
341
+ "secondTabText": "Send Back",
342
+ "secondTabOffset": 80,
343
+ "secondTabWidth": 65,
344
+ "widget_ue_connectable": {}
345
+ },
346
+ "widgets_values": [
347
+ "qwen_image_fp8_e4m3fn.safetensors",
348
+ "default"
349
+ ]
350
+ },
351
+ {
352
+ "id": 124,
353
+ "type": "VAEEncode",
354
+ "pos": [
355
+ -530.8583984375,
356
+ 708.7066650390625
357
+ ],
358
+ "size": [
359
+ 210,
360
+ 46
361
+ ],
362
+ "flags": {},
363
+ "order": 8,
364
+ "mode": 0,
365
+ "inputs": [
366
+ {
367
+ "name": "pixels",
368
+ "type": "IMAGE",
369
+ "link": 326
370
+ },
371
+ {
372
+ "name": "vae",
373
+ "type": "VAE",
374
+ "link": 329
375
+ }
376
+ ],
377
+ "outputs": [
378
+ {
379
+ "name": "LATENT",
380
+ "type": "LATENT",
381
+ "slot_index": 0,
382
+ "links": [
383
+ 327
384
+ ]
385
+ }
386
+ ],
387
+ "properties": {
388
+ "cnr_id": "comfy-core",
389
+ "ver": "0.3.23",
390
+ "Node name for S&R": "VAEEncode"
391
+ },
392
+ "widgets_values": []
393
+ },
394
+ {
395
+ "id": 125,
396
+ "type": "SetLatentNoiseMask",
397
+ "pos": [
398
+ -234.4196014404297,
399
+ 705.1629638671875
400
+ ],
401
+ "size": [
402
+ 264.5999755859375,
403
+ 46
404
+ ],
405
+ "flags": {},
406
+ "order": 9,
407
+ "mode": 0,
408
+ "inputs": [
409
+ {
410
+ "name": "samples",
411
+ "type": "LATENT",
412
+ "link": 327
413
+ },
414
+ {
415
+ "name": "mask",
416
+ "type": "MASK",
417
+ "link": 328
418
+ }
419
+ ],
420
+ "outputs": [
421
+ {
422
+ "name": "LATENT",
423
+ "type": "LATENT",
424
+ "slot_index": 0,
425
+ "links": [
426
+ 332
427
+ ]
428
+ }
429
+ ],
430
+ "properties": {
431
+ "cnr_id": "comfy-core",
432
+ "ver": "0.3.23",
433
+ "Node name for S&R": "SetLatentNoiseMask"
434
+ },
435
+ "widgets_values": []
436
+ },
437
+ {
438
+ "id": 127,
439
+ "type": "LanPaint_MaskBlend",
440
+ "pos": [
441
+ 405.3840637207031,
442
+ 938.8120727539062
443
+ ],
444
+ "size": [
445
+ 210,
446
+ 98
447
+ ],
448
+ "flags": {},
449
+ "order": 12,
450
+ "mode": 0,
451
+ "inputs": [
452
+ {
453
+ "name": "image1",
454
+ "type": "IMAGE",
455
+ "link": 336
456
+ },
457
+ {
458
+ "name": "image2",
459
+ "type": "IMAGE",
460
+ "link": 333
461
+ },
462
+ {
463
+ "name": "mask",
464
+ "type": "MASK",
465
+ "link": 337
466
+ }
467
+ ],
468
+ "outputs": [
469
+ {
470
+ "name": "IMAGE",
471
+ "type": "IMAGE",
472
+ "links": [
473
+ 338
474
+ ]
475
+ }
476
+ ],
477
+ "properties": {
478
+ "cnr_id": "LanPaint",
479
+ "ver": "4d3d5d17f0105b673df92da5b084cce567c9c712",
480
+ "Node name for S&R": "LanPaint_MaskBlend"
481
+ },
482
+ "widgets_values": [
483
+ 9
484
+ ]
485
+ },
486
+ {
487
+ "id": 126,
488
+ "type": "VAEDecode",
489
+ "pos": [
490
+ 115.07575225830078,
491
+ 878.4630737304688
492
+ ],
493
+ "size": [
494
+ 210,
495
+ 46
496
+ ],
497
+ "flags": {},
498
+ "order": 11,
499
+ "mode": 0,
500
+ "inputs": [
501
+ {
502
+ "name": "samples",
503
+ "type": "LATENT",
504
+ "link": 334
505
+ },
506
+ {
507
+ "name": "vae",
508
+ "type": "VAE",
509
+ "link": 335
510
+ }
511
+ ],
512
+ "outputs": [
513
+ {
514
+ "name": "IMAGE",
515
+ "type": "IMAGE",
516
+ "slot_index": 0,
517
+ "links": [
518
+ 333
519
+ ]
520
+ }
521
+ ],
522
+ "properties": {
523
+ "cnr_id": "comfy-core",
524
+ "ver": "0.3.23",
525
+ "Node name for S&R": "VAEDecode"
526
+ },
527
+ "widgets_values": []
528
+ },
529
+ {
530
+ "id": 123,
531
+ "type": "LoadImage",
532
+ "pos": [
533
+ -543.5358276367188,
534
+ 851.759765625
535
+ ],
536
+ "size": [
537
+ 262.12347412109375,
538
+ 487.22296142578125
539
+ ],
540
+ "flags": {},
541
+ "order": 3,
542
+ "mode": 0,
543
+ "inputs": [],
544
+ "outputs": [
545
+ {
546
+ "name": "IMAGE",
547
+ "type": "IMAGE",
548
+ "slot_index": 0,
549
+ "links": [
550
+ 326,
551
+ 336
552
+ ]
553
+ },
554
+ {
555
+ "name": "MASK",
556
+ "type": "MASK",
557
+ "slot_index": 1,
558
+ "links": [
559
+ 328,
560
+ 337
561
+ ]
562
+ }
563
+ ],
564
+ "properties": {
565
+ "cnr_id": "comfy-core",
566
+ "ver": "0.3.23",
567
+ "Node name for S&R": "LoadImage"
568
+ },
569
+ "widgets_values": [
570
+ "Masked_Load_Me_in_Loader (7).png",
571
+ "image"
572
+ ]
573
+ },
574
+ {
575
+ "id": 120,
576
+ "type": "CLIPTextEncode",
577
+ "pos": [
578
+ -454.86480712890625,
579
+ 41.89194869995117
580
+ ],
581
+ "size": [
582
+ 422.84503173828125,
583
+ 164.31304931640625
584
+ ],
585
+ "flags": {},
586
+ "order": 5,
587
+ "mode": 0,
588
+ "inputs": [
589
+ {
590
+ "name": "clip",
591
+ "type": "CLIP",
592
+ "link": 318
593
+ }
594
+ ],
595
+ "outputs": [
596
+ {
597
+ "name": "CONDITIONING",
598
+ "type": "CONDITIONING",
599
+ "slot_index": 0,
600
+ "links": [
601
+ 323
602
+ ]
603
+ }
604
+ ],
605
+ "title": "CLIP Text Encode (Positive Prompt)",
606
+ "properties": {
607
+ "cnr_id": "comfy-core",
608
+ "ver": "0.3.48",
609
+ "Node name for S&R": "CLIPTextEncode",
610
+ "enableTabs": false,
611
+ "tabWidth": 65,
612
+ "tabXOffset": 10,
613
+ "hasSecondTab": false,
614
+ "secondTabText": "Send Back",
615
+ "secondTabOffset": 80,
616
+ "secondTabWidth": 65,
617
+ "widget_ue_connectable": {}
618
+ },
619
+ "widgets_values": [
620
+ "Cyberpunk-style Einstein portrait: He wears a sleek black coat with glowing cyan circuit patterns, silver-rimmed cybernetic glasses (lenses display faint data streams), and his hair has subtle neon blue highlights. His expression is calm, with a faint smile. Behind him: a dark, rain-washed cybercity backdrop—towering skyscrapers with flickering holographic ads, wet pavement reflecting neon pink/magenta lights. In front of him: giant, glowing white 3D text of \"LanPaint\", with electric blue energy pulses swirling around the equation. Cinematic lighting, hyper-detailed textures, rain droplets visible in the air."
621
+ ],
622
+ "color": "#232",
623
+ "bgcolor": "#353"
624
+ },
625
+ {
626
+ "id": 128,
627
+ "type": "MarkdownNote",
628
+ "pos": [
629
+ 715.929931640625,
630
+ 371.1071472167969
631
+ ],
632
+ "size": [
633
+ 300,
634
+ 190
635
+ ],
636
+ "flags": {},
637
+ "order": 4,
638
+ "mode": 0,
639
+ "inputs": [],
640
+ "outputs": [],
641
+ "title": "KSampler settings",
642
+ "properties": {},
643
+ "widgets_values": [
644
+ "Decrease **LanPaint_NumSteps** for faster generation. \n"
645
+ ],
646
+ "color": "#432",
647
+ "bgcolor": "#653"
648
+ }
649
+ ],
650
+ "links": [
651
+ [
652
+ 318,
653
+ 117,
654
+ 0,
655
+ 120,
656
+ 0,
657
+ "CLIP"
658
+ ],
659
+ [
660
+ 319,
661
+ 117,
662
+ 0,
663
+ 121,
664
+ 0,
665
+ "CLIP"
666
+ ],
667
+ [
668
+ 320,
669
+ 119,
670
+ 0,
671
+ 122,
672
+ 0,
673
+ "MODEL"
674
+ ],
675
+ [
676
+ 323,
677
+ 120,
678
+ 0,
679
+ 74,
680
+ 1,
681
+ "CONDITIONING"
682
+ ],
683
+ [
684
+ 324,
685
+ 121,
686
+ 0,
687
+ 74,
688
+ 2,
689
+ "CONDITIONING"
690
+ ],
691
+ [
692
+ 325,
693
+ 122,
694
+ 0,
695
+ 74,
696
+ 0,
697
+ "MODEL"
698
+ ],
699
+ [
700
+ 326,
701
+ 123,
702
+ 0,
703
+ 124,
704
+ 0,
705
+ "IMAGE"
706
+ ],
707
+ [
708
+ 327,
709
+ 124,
710
+ 0,
711
+ 125,
712
+ 0,
713
+ "LATENT"
714
+ ],
715
+ [
716
+ 328,
717
+ 123,
718
+ 1,
719
+ 125,
720
+ 1,
721
+ "MASK"
722
+ ],
723
+ [
724
+ 329,
725
+ 118,
726
+ 0,
727
+ 124,
728
+ 1,
729
+ "VAE"
730
+ ],
731
+ [
732
+ 332,
733
+ 125,
734
+ 0,
735
+ 74,
736
+ 3,
737
+ "LATENT"
738
+ ],
739
+ [
740
+ 333,
741
+ 126,
742
+ 0,
743
+ 127,
744
+ 1,
745
+ "IMAGE"
746
+ ],
747
+ [
748
+ 334,
749
+ 74,
750
+ 0,
751
+ 126,
752
+ 0,
753
+ "LATENT"
754
+ ],
755
+ [
756
+ 335,
757
+ 118,
758
+ 0,
759
+ 126,
760
+ 1,
761
+ "VAE"
762
+ ],
763
+ [
764
+ 336,
765
+ 123,
766
+ 0,
767
+ 127,
768
+ 0,
769
+ "IMAGE"
770
+ ],
771
+ [
772
+ 337,
773
+ 123,
774
+ 1,
775
+ 127,
776
+ 2,
777
+ "MASK"
778
+ ],
779
+ [
780
+ 338,
781
+ 127,
782
+ 0,
783
+ 113,
784
+ 0,
785
+ "IMAGE"
786
+ ]
787
+ ],
788
+ "groups": [],
789
+ "config": {},
790
+ "extra": {
791
+ "ds": {
792
+ "scale": 0.7162766973052638,
793
+ "offset": [
794
+ 1084.0595529886727,
795
+ 5.084234529384386
796
+ ]
797
+ },
798
+ "frontendVersion": "1.25.10",
799
+ "node_versions": {
800
+ "comfy-core": "0.3.18",
801
+ "LanPaint": "0f509469ed2cd60c6032f739e282aad5dfc06166"
802
+ },
803
+ "groupNodes": {}
804
+ },
805
+ "version": 0.4
806
+ }
example_workflows/Qwen Image Outpaint.json ADDED
@@ -0,0 +1,909 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "id": "11cce4ab-536b-4f42-a95c-0be437d04ace",
3
+ "revision": 0,
4
+ "last_node_id": 136,
5
+ "last_link_id": 351,
6
+ "nodes": [
7
+ {
8
+ "id": 74,
9
+ "type": "LanPaint_KSampler",
10
+ "pos": [
11
+ 276.219970703125,
12
+ 179.55892944335938
13
+ ],
14
+ "size": [
15
+ 388.97625732421875,
16
+ 572
17
+ ],
18
+ "flags": {},
19
+ "order": 12,
20
+ "mode": 0,
21
+ "inputs": [
22
+ {
23
+ "name": "model",
24
+ "type": "MODEL",
25
+ "link": 336
26
+ },
27
+ {
28
+ "name": "positive",
29
+ "type": "CONDITIONING",
30
+ "link": 334
31
+ },
32
+ {
33
+ "name": "negative",
34
+ "type": "CONDITIONING",
35
+ "link": 335
36
+ },
37
+ {
38
+ "name": "latent_image",
39
+ "type": "LATENT",
40
+ "link": 345
41
+ }
42
+ ],
43
+ "outputs": [
44
+ {
45
+ "name": "LATENT",
46
+ "type": "LATENT",
47
+ "slot_index": 0,
48
+ "links": [
49
+ 347
50
+ ]
51
+ }
52
+ ],
53
+ "properties": {
54
+ "cnr_id": "LanPaint",
55
+ "ver": "56bd6c04e89124cd06682b304245d6ddf8b20522",
56
+ "Node name for S&R": "LanPaint_KSampler"
57
+ },
58
+ "widgets_values": [
59
+ 0,
60
+ "fixed",
61
+ 20,
62
+ 4,
63
+ "euler",
64
+ "simple",
65
+ 1,
66
+ 5,
67
+ "Image First",
68
+ "LanPaint KSampler. For more info, visit https://github.com/scraed/LanPaint. If you find it useful, please give a star ⭐️!"
69
+ ]
70
+ },
71
+ {
72
+ "id": 113,
73
+ "type": "SaveImage",
74
+ "pos": [
75
+ 807.1268310546875,
76
+ 868.395263671875
77
+ ],
78
+ "size": [
79
+ 311.2532653808594,
80
+ 484.7096252441406
81
+ ],
82
+ "flags": {},
83
+ "order": 15,
84
+ "mode": 0,
85
+ "inputs": [
86
+ {
87
+ "name": "images",
88
+ "type": "IMAGE",
89
+ "link": 351
90
+ }
91
+ ],
92
+ "outputs": [],
93
+ "properties": {
94
+ "cnr_id": "comfy-core",
95
+ "ver": "0.3.23"
96
+ },
97
+ "widgets_values": [
98
+ "ComfyUI"
99
+ ]
100
+ },
101
+ {
102
+ "id": 123,
103
+ "type": "CLIPLoader",
104
+ "pos": [
105
+ -730.1405029296875,
106
+ 183.70140075683594
107
+ ],
108
+ "size": [
109
+ 330,
110
+ 110
111
+ ],
112
+ "flags": {},
113
+ "order": 0,
114
+ "mode": 0,
115
+ "inputs": [],
116
+ "outputs": [
117
+ {
118
+ "name": "CLIP",
119
+ "type": "CLIP",
120
+ "slot_index": 0,
121
+ "links": [
122
+ 329,
123
+ 330
124
+ ]
125
+ }
126
+ ],
127
+ "properties": {
128
+ "cnr_id": "comfy-core",
129
+ "ver": "0.3.48",
130
+ "Node name for S&R": "CLIPLoader",
131
+ "models": [
132
+ {
133
+ "name": "qwen_2.5_vl_7b_fp8_scaled.safetensors",
134
+ "url": "https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors",
135
+ "directory": "text_encoders"
136
+ }
137
+ ],
138
+ "enableTabs": false,
139
+ "tabWidth": 65,
140
+ "tabXOffset": 10,
141
+ "hasSecondTab": false,
142
+ "secondTabText": "Send Back",
143
+ "secondTabOffset": 80,
144
+ "secondTabWidth": 65,
145
+ "widget_ue_connectable": {}
146
+ },
147
+ "widgets_values": [
148
+ "qwen_2.5_vl_7b_fp8_scaled.safetensors",
149
+ "qwen_image",
150
+ "default"
151
+ ]
152
+ },
153
+ {
154
+ "id": 124,
155
+ "type": "VAELoader",
156
+ "pos": [
157
+ -730.1405029296875,
158
+ 333.70147705078125
159
+ ],
160
+ "size": [
161
+ 330,
162
+ 60
163
+ ],
164
+ "flags": {},
165
+ "order": 1,
166
+ "mode": 0,
167
+ "inputs": [],
168
+ "outputs": [
169
+ {
170
+ "name": "VAE",
171
+ "type": "VAE",
172
+ "slot_index": 0,
173
+ "links": [
174
+ 342,
175
+ 348
176
+ ]
177
+ }
178
+ ],
179
+ "properties": {
180
+ "cnr_id": "comfy-core",
181
+ "ver": "0.3.48",
182
+ "Node name for S&R": "VAELoader",
183
+ "models": [
184
+ {
185
+ "name": "qwen_image_vae.safetensors",
186
+ "url": "https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/vae/qwen_image_vae.safetensors",
187
+ "directory": "vae"
188
+ }
189
+ ],
190
+ "enableTabs": false,
191
+ "tabWidth": 65,
192
+ "tabXOffset": 10,
193
+ "hasSecondTab": false,
194
+ "secondTabText": "Send Back",
195
+ "secondTabOffset": 80,
196
+ "secondTabWidth": 65,
197
+ "widget_ue_connectable": {}
198
+ },
199
+ "widgets_values": [
200
+ "qwen_image_vae.safetensors"
201
+ ]
202
+ },
203
+ {
204
+ "id": 125,
205
+ "type": "UNETLoader",
206
+ "pos": [
207
+ -730.1405029296875,
208
+ 43.7014274597168
209
+ ],
210
+ "size": [
211
+ 330,
212
+ 90
213
+ ],
214
+ "flags": {},
215
+ "order": 2,
216
+ "mode": 0,
217
+ "inputs": [],
218
+ "outputs": [
219
+ {
220
+ "name": "MODEL",
221
+ "type": "MODEL",
222
+ "slot_index": 0,
223
+ "links": [
224
+ 331
225
+ ]
226
+ }
227
+ ],
228
+ "properties": {
229
+ "cnr_id": "comfy-core",
230
+ "ver": "0.3.48",
231
+ "Node name for S&R": "UNETLoader",
232
+ "models": [
233
+ {
234
+ "name": "qwen_image_fp8_e4m3fn.safetensors",
235
+ "url": "https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/diffusion_models/qwen_image_fp8_e4m3fn.safetensors",
236
+ "directory": "diffusion_models"
237
+ }
238
+ ],
239
+ "enableTabs": false,
240
+ "tabWidth": 65,
241
+ "tabXOffset": 10,
242
+ "hasSecondTab": false,
243
+ "secondTabText": "Send Back",
244
+ "secondTabOffset": 80,
245
+ "secondTabWidth": 65,
246
+ "widget_ue_connectable": {}
247
+ },
248
+ "widgets_values": [
249
+ "qwen_image_fp8_e4m3fn.safetensors",
250
+ "default"
251
+ ]
252
+ },
253
+ {
254
+ "id": 127,
255
+ "type": "CLIPTextEncode",
256
+ "pos": [
257
+ -360.1405029296875,
258
+ 253.70147705078125
259
+ ],
260
+ "size": [
261
+ 425.27801513671875,
262
+ 180.6060791015625
263
+ ],
264
+ "flags": {},
265
+ "order": 6,
266
+ "mode": 0,
267
+ "inputs": [
268
+ {
269
+ "name": "clip",
270
+ "type": "CLIP",
271
+ "link": 330
272
+ }
273
+ ],
274
+ "outputs": [
275
+ {
276
+ "name": "CONDITIONING",
277
+ "type": "CONDITIONING",
278
+ "slot_index": 0,
279
+ "links": [
280
+ 335
281
+ ]
282
+ }
283
+ ],
284
+ "title": "CLIP Text Encode (Negative Prompt)",
285
+ "properties": {
286
+ "cnr_id": "comfy-core",
287
+ "ver": "0.3.48",
288
+ "Node name for S&R": "CLIPTextEncode",
289
+ "enableTabs": false,
290
+ "tabWidth": 65,
291
+ "tabXOffset": 10,
292
+ "hasSecondTab": false,
293
+ "secondTabText": "Send Back",
294
+ "secondTabOffset": 80,
295
+ "secondTabWidth": 65,
296
+ "widget_ue_connectable": {}
297
+ },
298
+ "widgets_values": [
299
+ " low quality, bad anatomy, extra digits, missing digits, extra limbs, missing limbs"
300
+ ],
301
+ "color": "#322",
302
+ "bgcolor": "#533"
303
+ },
304
+ {
305
+ "id": 128,
306
+ "type": "ModelSamplingAuraFlow",
307
+ "pos": [
308
+ 60.14683151245117,
309
+ -37.92536544799805
310
+ ],
311
+ "size": [
312
+ 300,
313
+ 58
314
+ ],
315
+ "flags": {},
316
+ "order": 7,
317
+ "mode": 0,
318
+ "inputs": [
319
+ {
320
+ "name": "model",
321
+ "type": "MODEL",
322
+ "link": 331
323
+ }
324
+ ],
325
+ "outputs": [
326
+ {
327
+ "name": "MODEL",
328
+ "type": "MODEL",
329
+ "links": [
330
+ 336
331
+ ]
332
+ }
333
+ ],
334
+ "properties": {
335
+ "cnr_id": "comfy-core",
336
+ "ver": "0.3.48",
337
+ "Node name for S&R": "ModelSamplingAuraFlow",
338
+ "enableTabs": false,
339
+ "tabWidth": 65,
340
+ "tabXOffset": 10,
341
+ "hasSecondTab": false,
342
+ "secondTabText": "Send Back",
343
+ "secondTabOffset": 80,
344
+ "secondTabWidth": 65,
345
+ "widget_ue_connectable": {}
346
+ },
347
+ "widgets_values": [
348
+ 3.5
349
+ ]
350
+ },
351
+ {
352
+ "id": 126,
353
+ "type": "CLIPTextEncode",
354
+ "pos": [
355
+ -360.57550048828125,
356
+ 47.6118278503418
357
+ ],
358
+ "size": [
359
+ 422.84503173828125,
360
+ 164.31304931640625
361
+ ],
362
+ "flags": {},
363
+ "order": 5,
364
+ "mode": 0,
365
+ "inputs": [
366
+ {
367
+ "name": "clip",
368
+ "type": "CLIP",
369
+ "link": 329
370
+ }
371
+ ],
372
+ "outputs": [
373
+ {
374
+ "name": "CONDITIONING",
375
+ "type": "CONDITIONING",
376
+ "slot_index": 0,
377
+ "links": [
378
+ 334
379
+ ]
380
+ }
381
+ ],
382
+ "title": "CLIP Text Encode (Positive Prompt)",
383
+ "properties": {
384
+ "cnr_id": "comfy-core",
385
+ "ver": "0.3.48",
386
+ "Node name for S&R": "CLIPTextEncode",
387
+ "enableTabs": false,
388
+ "tabWidth": 65,
389
+ "tabXOffset": 10,
390
+ "hasSecondTab": false,
391
+ "secondTabText": "Send Back",
392
+ "secondTabOffset": 80,
393
+ "secondTabWidth": 65,
394
+ "widget_ue_connectable": {}
395
+ },
396
+ "widgets_values": [
397
+ "Cyberpunk-inspired portrait of a beautiful young woman with ethereal features: She has long, flowing silver hair with glowing purple neon streaks, wearing a form-fitting black leather jacket adorned with holographic circuit designs in electric blue, and augmented reality earrings that project faint digital fractals. Her eyes are piercing emerald green with subtle cybernetic enhancements showing data overlays, and her expression is mysterious yet alluring, with a subtle smirk. Behind her: a foggy, neon-lit futuristic alleyway—crumbling brick walls covered in vibrant graffiti and flickering LED signs, puddles on the ground reflecting turquoise and violet lights from overhead drones. Dramatic volumetric lighting, ultra-realistic details, mist particles in the air."
398
+ ],
399
+ "color": "#232",
400
+ "bgcolor": "#353"
401
+ },
402
+ {
403
+ "id": 130,
404
+ "type": "ImagePadForOutpaint",
405
+ "pos": [
406
+ -437.0110168457031,
407
+ 895.0103759765625
408
+ ],
409
+ "size": [
410
+ 210,
411
+ 174
412
+ ],
413
+ "flags": {},
414
+ "order": 8,
415
+ "mode": 0,
416
+ "inputs": [
417
+ {
418
+ "name": "image",
419
+ "type": "IMAGE",
420
+ "link": 337
421
+ }
422
+ ],
423
+ "outputs": [
424
+ {
425
+ "name": "IMAGE",
426
+ "type": "IMAGE",
427
+ "links": [
428
+ 338,
429
+ 349
430
+ ]
431
+ },
432
+ {
433
+ "name": "MASK",
434
+ "type": "MASK",
435
+ "links": [
436
+ 339
437
+ ]
438
+ }
439
+ ],
440
+ "properties": {
441
+ "cnr_id": "comfy-core",
442
+ "ver": "0.3.39",
443
+ "Node name for S&R": "ImagePadForOutpaint",
444
+ "widget_ue_connectable": {}
445
+ },
446
+ "widgets_values": [
447
+ 200,
448
+ 200,
449
+ 200,
450
+ 200,
451
+ 20
452
+ ]
453
+ },
454
+ {
455
+ "id": 131,
456
+ "type": "VAEEncode",
457
+ "pos": [
458
+ -455.7289123535156,
459
+ 723.4658203125
460
+ ],
461
+ "size": [
462
+ 210,
463
+ 46
464
+ ],
465
+ "flags": {},
466
+ "order": 9,
467
+ "mode": 0,
468
+ "inputs": [
469
+ {
470
+ "name": "pixels",
471
+ "type": "IMAGE",
472
+ "link": 338
473
+ },
474
+ {
475
+ "name": "vae",
476
+ "type": "VAE",
477
+ "link": 342
478
+ }
479
+ ],
480
+ "outputs": [
481
+ {
482
+ "name": "LATENT",
483
+ "type": "LATENT",
484
+ "slot_index": 0,
485
+ "links": [
486
+ 340
487
+ ]
488
+ }
489
+ ],
490
+ "properties": {
491
+ "cnr_id": "comfy-core",
492
+ "ver": "0.3.23",
493
+ "Node name for S&R": "VAEEncode"
494
+ },
495
+ "widgets_values": []
496
+ },
497
+ {
498
+ "id": 132,
499
+ "type": "ThresholdMask",
500
+ "pos": [
501
+ -67.46508026123047,
502
+ 903.83642578125
503
+ ],
504
+ "size": [
505
+ 270,
506
+ 58
507
+ ],
508
+ "flags": {},
509
+ "order": 10,
510
+ "mode": 0,
511
+ "inputs": [
512
+ {
513
+ "name": "mask",
514
+ "type": "MASK",
515
+ "link": 339
516
+ }
517
+ ],
518
+ "outputs": [
519
+ {
520
+ "name": "MASK",
521
+ "type": "MASK",
522
+ "links": [
523
+ 341,
524
+ 350
525
+ ]
526
+ }
527
+ ],
528
+ "properties": {
529
+ "cnr_id": "comfy-core",
530
+ "ver": "0.3.38",
531
+ "Node name for S&R": "ThresholdMask"
532
+ },
533
+ "widgets_values": [
534
+ 0.010000000000000002
535
+ ]
536
+ },
537
+ {
538
+ "id": 133,
539
+ "type": "SetLatentNoiseMask",
540
+ "pos": [
541
+ -152.71241760253906,
542
+ 712.6437377929688
543
+ ],
544
+ "size": [
545
+ 264.5999755859375,
546
+ 46
547
+ ],
548
+ "flags": {},
549
+ "order": 11,
550
+ "mode": 0,
551
+ "inputs": [
552
+ {
553
+ "name": "samples",
554
+ "type": "LATENT",
555
+ "link": 340
556
+ },
557
+ {
558
+ "name": "mask",
559
+ "type": "MASK",
560
+ "link": 341
561
+ }
562
+ ],
563
+ "outputs": [
564
+ {
565
+ "name": "LATENT",
566
+ "type": "LATENT",
567
+ "slot_index": 0,
568
+ "links": [
569
+ 345
570
+ ]
571
+ }
572
+ ],
573
+ "properties": {
574
+ "cnr_id": "comfy-core",
575
+ "ver": "0.3.23",
576
+ "Node name for S&R": "SetLatentNoiseMask"
577
+ },
578
+ "widgets_values": []
579
+ },
580
+ {
581
+ "id": 129,
582
+ "type": "LoadImage",
583
+ "pos": [
584
+ -789.0392456054688,
585
+ 827.515380859375
586
+ ],
587
+ "size": [
588
+ 295,
589
+ 399
590
+ ],
591
+ "flags": {},
592
+ "order": 3,
593
+ "mode": 0,
594
+ "inputs": [],
595
+ "outputs": [
596
+ {
597
+ "name": "IMAGE",
598
+ "type": "IMAGE",
599
+ "links": [
600
+ 337
601
+ ]
602
+ },
603
+ {
604
+ "name": "MASK",
605
+ "type": "MASK",
606
+ "links": []
607
+ }
608
+ ],
609
+ "properties": {
610
+ "cnr_id": "comfy-core",
611
+ "ver": "0.3.27",
612
+ "Node name for S&R": "LoadImage",
613
+ "widget_ue_connectable": {}
614
+ },
615
+ "widgets_values": [
616
+ "ComfyUI_07699_.png",
617
+ "image"
618
+ ]
619
+ },
620
+ {
621
+ "id": 134,
622
+ "type": "VAEDecode",
623
+ "pos": [
624
+ 256.8516540527344,
625
+ 900.2234497070312
626
+ ],
627
+ "size": [
628
+ 210,
629
+ 46
630
+ ],
631
+ "flags": {},
632
+ "order": 13,
633
+ "mode": 0,
634
+ "inputs": [
635
+ {
636
+ "name": "samples",
637
+ "type": "LATENT",
638
+ "link": 347
639
+ },
640
+ {
641
+ "name": "vae",
642
+ "type": "VAE",
643
+ "link": 348
644
+ }
645
+ ],
646
+ "outputs": [
647
+ {
648
+ "name": "IMAGE",
649
+ "type": "IMAGE",
650
+ "slot_index": 0,
651
+ "links": [
652
+ 346
653
+ ]
654
+ }
655
+ ],
656
+ "properties": {
657
+ "cnr_id": "comfy-core",
658
+ "ver": "0.3.23",
659
+ "Node name for S&R": "VAEDecode"
660
+ },
661
+ "widgets_values": []
662
+ },
663
+ {
664
+ "id": 135,
665
+ "type": "LanPaint_MaskBlend",
666
+ "pos": [
667
+ 547.1599731445312,
668
+ 960.5724487304688
669
+ ],
670
+ "size": [
671
+ 210,
672
+ 98
673
+ ],
674
+ "flags": {},
675
+ "order": 14,
676
+ "mode": 0,
677
+ "inputs": [
678
+ {
679
+ "name": "image1",
680
+ "type": "IMAGE",
681
+ "link": 349
682
+ },
683
+ {
684
+ "name": "image2",
685
+ "type": "IMAGE",
686
+ "link": 346
687
+ },
688
+ {
689
+ "name": "mask",
690
+ "type": "MASK",
691
+ "link": 350
692
+ }
693
+ ],
694
+ "outputs": [
695
+ {
696
+ "name": "IMAGE",
697
+ "type": "IMAGE",
698
+ "links": [
699
+ 351
700
+ ]
701
+ }
702
+ ],
703
+ "properties": {
704
+ "cnr_id": "LanPaint",
705
+ "ver": "4d3d5d17f0105b673df92da5b084cce567c9c712",
706
+ "Node name for S&R": "LanPaint_MaskBlend"
707
+ },
708
+ "widgets_values": [
709
+ 9
710
+ ]
711
+ },
712
+ {
713
+ "id": 136,
714
+ "type": "MarkdownNote",
715
+ "pos": [
716
+ 728.9194946289062,
717
+ 332.5254821777344
718
+ ],
719
+ "size": [
720
+ 300,
721
+ 190
722
+ ],
723
+ "flags": {},
724
+ "order": 4,
725
+ "mode": 0,
726
+ "inputs": [],
727
+ "outputs": [],
728
+ "title": "KSampler settings",
729
+ "properties": {},
730
+ "widgets_values": [
731
+ "Decrease **LanPaint_NumSteps** for faster generation. \n"
732
+ ],
733
+ "color": "#432",
734
+ "bgcolor": "#653"
735
+ }
736
+ ],
737
+ "links": [
738
+ [
739
+ 329,
740
+ 123,
741
+ 0,
742
+ 126,
743
+ 0,
744
+ "CLIP"
745
+ ],
746
+ [
747
+ 330,
748
+ 123,
749
+ 0,
750
+ 127,
751
+ 0,
752
+ "CLIP"
753
+ ],
754
+ [
755
+ 331,
756
+ 125,
757
+ 0,
758
+ 128,
759
+ 0,
760
+ "MODEL"
761
+ ],
762
+ [
763
+ 334,
764
+ 126,
765
+ 0,
766
+ 74,
767
+ 1,
768
+ "CONDITIONING"
769
+ ],
770
+ [
771
+ 335,
772
+ 127,
773
+ 0,
774
+ 74,
775
+ 2,
776
+ "CONDITIONING"
777
+ ],
778
+ [
779
+ 336,
780
+ 128,
781
+ 0,
782
+ 74,
783
+ 0,
784
+ "MODEL"
785
+ ],
786
+ [
787
+ 337,
788
+ 129,
789
+ 0,
790
+ 130,
791
+ 0,
792
+ "IMAGE"
793
+ ],
794
+ [
795
+ 338,
796
+ 130,
797
+ 0,
798
+ 131,
799
+ 0,
800
+ "IMAGE"
801
+ ],
802
+ [
803
+ 339,
804
+ 130,
805
+ 1,
806
+ 132,
807
+ 0,
808
+ "MASK"
809
+ ],
810
+ [
811
+ 340,
812
+ 131,
813
+ 0,
814
+ 133,
815
+ 0,
816
+ "LATENT"
817
+ ],
818
+ [
819
+ 341,
820
+ 132,
821
+ 0,
822
+ 133,
823
+ 1,
824
+ "MASK"
825
+ ],
826
+ [
827
+ 342,
828
+ 124,
829
+ 0,
830
+ 131,
831
+ 1,
832
+ "VAE"
833
+ ],
834
+ [
835
+ 345,
836
+ 133,
837
+ 0,
838
+ 74,
839
+ 3,
840
+ "LATENT"
841
+ ],
842
+ [
843
+ 346,
844
+ 134,
845
+ 0,
846
+ 135,
847
+ 1,
848
+ "IMAGE"
849
+ ],
850
+ [
851
+ 347,
852
+ 74,
853
+ 0,
854
+ 134,
855
+ 0,
856
+ "LATENT"
857
+ ],
858
+ [
859
+ 348,
860
+ 124,
861
+ 0,
862
+ 134,
863
+ 1,
864
+ "VAE"
865
+ ],
866
+ [
867
+ 349,
868
+ 130,
869
+ 0,
870
+ 135,
871
+ 0,
872
+ "IMAGE"
873
+ ],
874
+ [
875
+ 350,
876
+ 132,
877
+ 0,
878
+ 135,
879
+ 2,
880
+ "MASK"
881
+ ],
882
+ [
883
+ 351,
884
+ 135,
885
+ 0,
886
+ 113,
887
+ 0,
888
+ "IMAGE"
889
+ ]
890
+ ],
891
+ "groups": [],
892
+ "config": {},
893
+ "extra": {
894
+ "ds": {
895
+ "scale": 0.6087272163919795,
896
+ "offset": [
897
+ 1617.0504979084035,
898
+ 167.0583828525509
899
+ ]
900
+ },
901
+ "frontendVersion": "1.25.10",
902
+ "node_versions": {
903
+ "comfy-core": "0.3.18",
904
+ "LanPaint": "0f509469ed2cd60c6032f739e282aad5dfc06166"
905
+ },
906
+ "groupNodes": {}
907
+ },
908
+ "version": 0.4
909
+ }
example_workflows/SDXL Inpaint.json ADDED
@@ -0,0 +1,735 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "id": "26fb90cb-eb4a-422e-97d0-8b84dd6c3302",
3
+ "revision": 0,
4
+ "last_node_id": 75,
5
+ "last_link_id": 192,
6
+ "nodes": [
7
+ {
8
+ "id": 6,
9
+ "type": "CLIPTextEncode",
10
+ "pos": [
11
+ 333.06903076171875,
12
+ 249.68698120117188
13
+ ],
14
+ "size": [
15
+ 422.84503173828125,
16
+ 164.31304931640625
17
+ ],
18
+ "flags": {},
19
+ "order": 2,
20
+ "mode": 0,
21
+ "inputs": [
22
+ {
23
+ "name": "clip",
24
+ "type": "CLIP",
25
+ "link": 81
26
+ }
27
+ ],
28
+ "outputs": [
29
+ {
30
+ "name": "CONDITIONING",
31
+ "type": "CONDITIONING",
32
+ "slot_index": 0,
33
+ "links": [
34
+ 184
35
+ ]
36
+ }
37
+ ],
38
+ "properties": {
39
+ "cnr_id": "comfy-core",
40
+ "ver": "0.3.23",
41
+ "Node name for S&R": "CLIPTextEncode"
42
+ },
43
+ "widgets_values": [
44
+ "1girl, blue shirt, masterpiece, high score, great score, absurdres"
45
+ ]
46
+ },
47
+ {
48
+ "id": 7,
49
+ "type": "CLIPTextEncode",
50
+ "pos": [
51
+ 335.06903076171875,
52
+ 462.68701171875
53
+ ],
54
+ "size": [
55
+ 425.27801513671875,
56
+ 180.6060791015625
57
+ ],
58
+ "flags": {},
59
+ "order": 3,
60
+ "mode": 0,
61
+ "inputs": [
62
+ {
63
+ "name": "clip",
64
+ "type": "CLIP",
65
+ "link": 82
66
+ }
67
+ ],
68
+ "outputs": [
69
+ {
70
+ "name": "CONDITIONING",
71
+ "type": "CONDITIONING",
72
+ "slot_index": 0,
73
+ "links": [
74
+ 185
75
+ ]
76
+ }
77
+ ],
78
+ "properties": {
79
+ "cnr_id": "comfy-core",
80
+ "ver": "0.3.23",
81
+ "Node name for S&R": "CLIPTextEncode"
82
+ },
83
+ "widgets_values": [
84
+ "lowres, bad anatomy, bad hands, text, error, missing finger, extra digits, fewer digits, cropped, worst quality, low quality, low score, bad score, average score, signature, watermark, username, blurry, nude, NSFW"
85
+ ]
86
+ },
87
+ {
88
+ "id": 29,
89
+ "type": "CheckpointLoaderSimple",
90
+ "pos": [
91
+ -62.627220153808594,
92
+ 407.01416015625
93
+ ],
94
+ "size": [
95
+ 315,
96
+ 98
97
+ ],
98
+ "flags": {},
99
+ "order": 0,
100
+ "mode": 0,
101
+ "inputs": [],
102
+ "outputs": [
103
+ {
104
+ "name": "MODEL",
105
+ "type": "MODEL",
106
+ "slot_index": 0,
107
+ "links": [
108
+ 183
109
+ ]
110
+ },
111
+ {
112
+ "name": "CLIP",
113
+ "type": "CLIP",
114
+ "slot_index": 1,
115
+ "links": [
116
+ 81,
117
+ 82
118
+ ]
119
+ },
120
+ {
121
+ "name": "VAE",
122
+ "type": "VAE",
123
+ "slot_index": 2,
124
+ "links": [
125
+ 84,
126
+ 157
127
+ ]
128
+ }
129
+ ],
130
+ "properties": {
131
+ "cnr_id": "comfy-core",
132
+ "ver": "0.3.23",
133
+ "Node name for S&R": "CheckpointLoaderSimple"
134
+ },
135
+ "widgets_values": [
136
+ "animagineXL40_v4Opt.safetensors"
137
+ ]
138
+ },
139
+ {
140
+ "id": 48,
141
+ "type": "SaveImage",
142
+ "pos": [
143
+ 1091.036376953125,
144
+ 1158.526611328125
145
+ ],
146
+ "size": [
147
+ 311.2532653808594,
148
+ 484.7096252441406
149
+ ],
150
+ "flags": {},
151
+ "order": 8,
152
+ "mode": 0,
153
+ "inputs": [
154
+ {
155
+ "name": "images",
156
+ "type": "IMAGE",
157
+ "link": 103
158
+ }
159
+ ],
160
+ "outputs": [],
161
+ "properties": {
162
+ "cnr_id": "comfy-core",
163
+ "ver": "0.3.23"
164
+ },
165
+ "widgets_values": [
166
+ "ComfyUI"
167
+ ]
168
+ },
169
+ {
170
+ "id": 8,
171
+ "type": "VAEDecode",
172
+ "pos": [
173
+ 1211.46484375,
174
+ 1065.318359375
175
+ ],
176
+ "size": [
177
+ 210,
178
+ 46
179
+ ],
180
+ "flags": {},
181
+ "order": 7,
182
+ "mode": 0,
183
+ "inputs": [
184
+ {
185
+ "name": "samples",
186
+ "type": "LATENT",
187
+ "link": 187
188
+ },
189
+ {
190
+ "name": "vae",
191
+ "type": "VAE",
192
+ "link": 84
193
+ }
194
+ ],
195
+ "outputs": [
196
+ {
197
+ "name": "IMAGE",
198
+ "type": "IMAGE",
199
+ "slot_index": 0,
200
+ "links": [
201
+ 103,
202
+ 189
203
+ ]
204
+ }
205
+ ],
206
+ "properties": {
207
+ "cnr_id": "comfy-core",
208
+ "ver": "0.3.23",
209
+ "Node name for S&R": "VAEDecode"
210
+ },
211
+ "widgets_values": []
212
+ },
213
+ {
214
+ "id": 20,
215
+ "type": "LoadImage",
216
+ "pos": [
217
+ 45.70227813720703,
218
+ 1147.2928466796875
219
+ ],
220
+ "size": [
221
+ 262.12347412109375,
222
+ 487.22296142578125
223
+ ],
224
+ "flags": {},
225
+ "order": 1,
226
+ "mode": 0,
227
+ "inputs": [],
228
+ "outputs": [
229
+ {
230
+ "name": "IMAGE",
231
+ "type": "IMAGE",
232
+ "slot_index": 0,
233
+ "links": [
234
+ 156,
235
+ 190
236
+ ]
237
+ },
238
+ {
239
+ "name": "MASK",
240
+ "type": "MASK",
241
+ "slot_index": 1,
242
+ "links": [
243
+ 155,
244
+ 191
245
+ ]
246
+ }
247
+ ],
248
+ "properties": {
249
+ "cnr_id": "comfy-core",
250
+ "ver": "0.3.23",
251
+ "Node name for S&R": "LoadImage"
252
+ },
253
+ "widgets_values": [
254
+ "clipspace/clipspace-mask-2620525.399999976.png [input]",
255
+ "image"
256
+ ]
257
+ },
258
+ {
259
+ "id": 75,
260
+ "type": "SaveImage",
261
+ "pos": [
262
+ 1845.7059326171875,
263
+ 1044.06201171875
264
+ ],
265
+ "size": [
266
+ 311.2532653808594,
267
+ 484.7096252441406
268
+ ],
269
+ "flags": {},
270
+ "order": 10,
271
+ "mode": 0,
272
+ "inputs": [
273
+ {
274
+ "name": "images",
275
+ "type": "IMAGE",
276
+ "link": 188
277
+ }
278
+ ],
279
+ "outputs": [],
280
+ "properties": {
281
+ "cnr_id": "comfy-core",
282
+ "ver": "0.3.23"
283
+ },
284
+ "widgets_values": [
285
+ "ComfyUI"
286
+ ]
287
+ },
288
+ {
289
+ "id": 73,
290
+ "type": "LanPaint_KSampler",
291
+ "pos": [
292
+ 996.4982299804688,
293
+ 299.599365234375
294
+ ],
295
+ "size": [
296
+ 413.6495666503906,
297
+ 572
298
+ ],
299
+ "flags": {},
300
+ "order": 6,
301
+ "mode": 0,
302
+ "inputs": [
303
+ {
304
+ "name": "model",
305
+ "type": "MODEL",
306
+ "link": 183
307
+ },
308
+ {
309
+ "name": "positive",
310
+ "type": "CONDITIONING",
311
+ "link": 184
312
+ },
313
+ {
314
+ "name": "negative",
315
+ "type": "CONDITIONING",
316
+ "link": 185
317
+ },
318
+ {
319
+ "name": "latent_image",
320
+ "type": "LATENT",
321
+ "link": 186
322
+ }
323
+ ],
324
+ "outputs": [
325
+ {
326
+ "name": "LATENT",
327
+ "type": "LATENT",
328
+ "slot_index": 0,
329
+ "links": [
330
+ 187
331
+ ]
332
+ }
333
+ ],
334
+ "properties": {
335
+ "cnr_id": "LanPaint",
336
+ "ver": "56bd6c04e89124cd06682b304245d6ddf8b20522",
337
+ "Node name for S&R": "LanPaint_KSampler"
338
+ },
339
+ "widgets_values": [
340
+ 0,
341
+ "fixed",
342
+ 30,
343
+ 5,
344
+ "euler",
345
+ "karras",
346
+ 1,
347
+ 5,
348
+ "Image First",
349
+ "LanPaint KSampler. For more info, visit https://github.com/scraed/LanPaint. If you find it useful, please give a star ⭐️!"
350
+ ]
351
+ },
352
+ {
353
+ "id": 74,
354
+ "type": "LanPaint_MaskBlend",
355
+ "pos": [
356
+ 1512.2730712890625,
357
+ 1176.3270263671875
358
+ ],
359
+ "size": [
360
+ 210,
361
+ 98
362
+ ],
363
+ "flags": {},
364
+ "order": 9,
365
+ "mode": 0,
366
+ "inputs": [
367
+ {
368
+ "name": "image1",
369
+ "type": "IMAGE",
370
+ "link": 190
371
+ },
372
+ {
373
+ "name": "image2",
374
+ "type": "IMAGE",
375
+ "link": 189
376
+ },
377
+ {
378
+ "name": "mask",
379
+ "type": "MASK",
380
+ "link": 191
381
+ }
382
+ ],
383
+ "outputs": [
384
+ {
385
+ "name": "IMAGE",
386
+ "type": "IMAGE",
387
+ "links": [
388
+ 188
389
+ ]
390
+ }
391
+ ],
392
+ "properties": {
393
+ "cnr_id": "LanPaint",
394
+ "ver": "4d3d5d17f0105b673df92da5b084cce567c9c712",
395
+ "Node name for S&R": "LanPaint_MaskBlend"
396
+ },
397
+ "widgets_values": [
398
+ 9
399
+ ]
400
+ },
401
+ {
402
+ "id": 66,
403
+ "type": "SetLatentNoiseMask",
404
+ "pos": [
405
+ 480.30780029296875,
406
+ 821.3880004882812
407
+ ],
408
+ "size": [
409
+ 264.5999755859375,
410
+ 46
411
+ ],
412
+ "flags": {},
413
+ "order": 5,
414
+ "mode": 0,
415
+ "inputs": [
416
+ {
417
+ "name": "samples",
418
+ "type": "LATENT",
419
+ "link": 192
420
+ },
421
+ {
422
+ "name": "mask",
423
+ "type": "MASK",
424
+ "link": 155
425
+ }
426
+ ],
427
+ "outputs": [
428
+ {
429
+ "name": "LATENT",
430
+ "type": "LATENT",
431
+ "slot_index": 0,
432
+ "links": [
433
+ 186
434
+ ]
435
+ }
436
+ ],
437
+ "properties": {
438
+ "cnr_id": "comfy-core",
439
+ "ver": "0.3.23",
440
+ "Node name for S&R": "SetLatentNoiseMask"
441
+ },
442
+ "widgets_values": []
443
+ },
444
+ {
445
+ "id": 65,
446
+ "type": "VAEEncode",
447
+ "pos": [
448
+ 206.43878173828125,
449
+ 818.9985961914062
450
+ ],
451
+ "size": [
452
+ 210,
453
+ 46
454
+ ],
455
+ "flags": {},
456
+ "order": 4,
457
+ "mode": 0,
458
+ "inputs": [
459
+ {
460
+ "name": "pixels",
461
+ "type": "IMAGE",
462
+ "link": 156
463
+ },
464
+ {
465
+ "name": "vae",
466
+ "type": "VAE",
467
+ "link": 157
468
+ }
469
+ ],
470
+ "outputs": [
471
+ {
472
+ "name": "LATENT",
473
+ "type": "LATENT",
474
+ "slot_index": 0,
475
+ "links": [
476
+ 192
477
+ ]
478
+ }
479
+ ],
480
+ "properties": {
481
+ "cnr_id": "comfy-core",
482
+ "ver": "0.3.23",
483
+ "Node name for S&R": "VAEEncode"
484
+ },
485
+ "widgets_values": []
486
+ }
487
+ ],
488
+ "links": [
489
+ [
490
+ 81,
491
+ 29,
492
+ 1,
493
+ 6,
494
+ 0,
495
+ "CLIP"
496
+ ],
497
+ [
498
+ 82,
499
+ 29,
500
+ 1,
501
+ 7,
502
+ 0,
503
+ "CLIP"
504
+ ],
505
+ [
506
+ 84,
507
+ 29,
508
+ 2,
509
+ 8,
510
+ 1,
511
+ "VAE"
512
+ ],
513
+ [
514
+ 103,
515
+ 8,
516
+ 0,
517
+ 48,
518
+ 0,
519
+ "IMAGE"
520
+ ],
521
+ [
522
+ 155,
523
+ 20,
524
+ 1,
525
+ 66,
526
+ 1,
527
+ "MASK"
528
+ ],
529
+ [
530
+ 156,
531
+ 20,
532
+ 0,
533
+ 65,
534
+ 0,
535
+ "IMAGE"
536
+ ],
537
+ [
538
+ 157,
539
+ 29,
540
+ 2,
541
+ 65,
542
+ 1,
543
+ "VAE"
544
+ ],
545
+ [
546
+ 183,
547
+ 29,
548
+ 0,
549
+ 73,
550
+ 0,
551
+ "MODEL"
552
+ ],
553
+ [
554
+ 184,
555
+ 6,
556
+ 0,
557
+ 73,
558
+ 1,
559
+ "CONDITIONING"
560
+ ],
561
+ [
562
+ 185,
563
+ 7,
564
+ 0,
565
+ 73,
566
+ 2,
567
+ "CONDITIONING"
568
+ ],
569
+ [
570
+ 186,
571
+ 66,
572
+ 0,
573
+ 73,
574
+ 3,
575
+ "LATENT"
576
+ ],
577
+ [
578
+ 187,
579
+ 73,
580
+ 0,
581
+ 8,
582
+ 0,
583
+ "LATENT"
584
+ ],
585
+ [
586
+ 188,
587
+ 74,
588
+ 0,
589
+ 75,
590
+ 0,
591
+ "IMAGE"
592
+ ],
593
+ [
594
+ 189,
595
+ 8,
596
+ 0,
597
+ 74,
598
+ 1,
599
+ "IMAGE"
600
+ ],
601
+ [
602
+ 190,
603
+ 20,
604
+ 0,
605
+ 74,
606
+ 0,
607
+ "IMAGE"
608
+ ],
609
+ [
610
+ 191,
611
+ 20,
612
+ 1,
613
+ 74,
614
+ 2,
615
+ "MASK"
616
+ ],
617
+ [
618
+ 192,
619
+ 65,
620
+ 0,
621
+ 66,
622
+ 0,
623
+ "LATENT"
624
+ ]
625
+ ],
626
+ "groups": [
627
+ {
628
+ "id": 1,
629
+ "title": "Mask image for inpainting.",
630
+ "bounding": [
631
+ 36.04227828979492,
632
+ 989.7313232421875,
633
+ 278.89093017578125,
634
+ 669.3414916992188
635
+ ],
636
+ "color": "#3f789e",
637
+ "font_size": 24,
638
+ "flags": {}
639
+ },
640
+ {
641
+ "id": 2,
642
+ "title": "Convert Latents for LanPaint",
643
+ "bounding": [
644
+ 286.0640563964844,
645
+ 714.343505859375,
646
+ 489.16796875,
647
+ 197.81044006347656
648
+ ],
649
+ "color": "#3f789e",
650
+ "font_size": 24,
651
+ "flags": {}
652
+ },
653
+ {
654
+ "id": 3,
655
+ "title": "Load Model and Set Prompts",
656
+ "bounding": [
657
+ -78.9311294555664,
658
+ 176.08712768554688,
659
+ 1006.1721801757812,
660
+ 514.258544921875
661
+ ],
662
+ "color": "#3f789e",
663
+ "font_size": 24,
664
+ "flags": {}
665
+ },
666
+ {
667
+ "id": 4,
668
+ "title": "Inpaint with the LanPaint KSampler",
669
+ "bounding": [
670
+ 960.8922729492188,
671
+ 179.17588806152344,
672
+ 474.8909606933594,
673
+ 630.4742431640625
674
+ ],
675
+ "color": "#3f789e",
676
+ "font_size": 24,
677
+ "flags": {}
678
+ },
679
+ {
680
+ "id": 5,
681
+ "title": "LanPaint OutPut",
682
+ "bounding": [
683
+ 1085.6029052734375,
684
+ 994.0775756835938,
685
+ 345.4561767578125,
686
+ 669.4969482421875
687
+ ],
688
+ "color": "#3f789e",
689
+ "font_size": 24,
690
+ "flags": {}
691
+ },
692
+ {
693
+ "id": 11,
694
+ "title": "LanPaint",
695
+ "bounding": [
696
+ -262.59381103515625,
697
+ 140.46656799316406,
698
+ 1737.328857421875,
699
+ 797.4443359375
700
+ ],
701
+ "color": "#3f789e",
702
+ "font_size": 24,
703
+ "flags": {}
704
+ },
705
+ {
706
+ "id": 13,
707
+ "title": "Paste back the original to preserve it exactly, if you want",
708
+ "bounding": [
709
+ 1491.586181640625,
710
+ 984.3547973632812,
711
+ 749.66455078125,
712
+ 637.360595703125
713
+ ],
714
+ "color": "#3f789e",
715
+ "font_size": 24,
716
+ "flags": {}
717
+ }
718
+ ],
719
+ "config": {},
720
+ "extra": {
721
+ "ds": {
722
+ "scale": 0.6209213230591556,
723
+ "offset": [
724
+ 850.0803535605011,
725
+ 86.6432096141053
726
+ ]
727
+ },
728
+ "frontendVersion": "1.25.10",
729
+ "node_versions": {
730
+ "comfy-core": "0.3.18",
731
+ "LanPaint": "0f509469ed2cd60c6032f739e282aad5dfc06166"
732
+ }
733
+ },
734
+ "version": 0.4
735
+ }
example_workflows/SDXL_InPaint.png ADDED

Git LFS Details

  • SHA256: 2783ed490ec6d2a4cc7f79d7b40383dec3f893920c49f74cebbea8515afde775
  • Pointer size: 132 Bytes
  • Size of remote file: 1.48 MB
examples/Example_1/InPainted_Drag_Me_to_ComfyUI.png ADDED

Git LFS Details

  • SHA256: c12871ed1f7240652ea234dbb2b2ee05639d239b373d316c45de7e209de472bd
  • Pointer size: 132 Bytes
  • Size of remote file: 1.64 MB
examples/Example_1/Masked_Load_Me_in_Loader.png ADDED

Git LFS Details

  • SHA256: 0fb2cf92b2d13e70914750775cd665ebf6925177aea57d2c7c11053de629323c
  • Pointer size: 132 Bytes
  • Size of remote file: 1.82 MB
examples/Example_1/Original_No_Mask.png ADDED

Git LFS Details

  • SHA256: 01fb3adef12243ad4995de22b0b18e183f1a54c22d4bde91cd06d0656f2b393a
  • Pointer size: 132 Bytes
  • Size of remote file: 1.58 MB
examples/Example_10/InPainted_Drag_Me_to_ComfyUI.png ADDED

Git LFS Details

  • SHA256: e1da4fc96bd3b1f8fade0b2ae5c1048c05b133cab7fa280beb3441df2f522bf7
  • Pointer size: 132 Bytes
  • Size of remote file: 1.65 MB
examples/Example_10/Masked_Load_Me_in_Loader.png ADDED

Git LFS Details

  • SHA256: f7963487802b3ff300012e253730de79c6669fde8467f71223c4490a9ea6bee3
  • Pointer size: 132 Bytes
  • Size of remote file: 1.33 MB
examples/Example_11/InPainted_Drag_Me_to_ComfyUI.png ADDED

Git LFS Details

  • SHA256: 6e09023e36178ffe2cc808533832d7dc44866ad81bfe57c03f07ec003b8556cc
  • Pointer size: 132 Bytes
  • Size of remote file: 2.66 MB
examples/Example_11/Masked_Load_Me_in_Loader.png ADDED

Git LFS Details

  • SHA256: 64f301dee695b08e2c248de8344f66aa5f01de7cc1c99b7d786410a9ac1ae01e
  • Pointer size: 132 Bytes
  • Size of remote file: 2.99 MB
examples/Example_12/InPainted_Drag_Me_to_ComfyUI.png ADDED

Git LFS Details

  • SHA256: b527f6bf1f7d218580928c62fed68af97dc272a8e726931da5acd5a6bdacc048
  • Pointer size: 132 Bytes
  • Size of remote file: 1.8 MB
examples/Example_12/Masked_Load_Me_in_Loader.png ADDED

Git LFS Details

  • SHA256: 7be87e02c72d9701f6c86bbfff31dcd46109d58e387c0297ddd2099c13c51a94
  • Pointer size: 131 Bytes
  • Size of remote file: 850 kB
examples/Example_13/InPainted_Drag_Me_to_ComfyUI.png ADDED

Git LFS Details

  • SHA256: 667a6a059899c5a75ddac29e2a629775dcf54812a5373c88a23bbb5a6a951db2
  • Pointer size: 132 Bytes
  • Size of remote file: 1.98 MB
examples/Example_13/Masked_Load_Me_in_Loader.png ADDED

Git LFS Details

  • SHA256: e780881a5bcee55014f2269d4a14a5d8e47eaaa4050c63aa5316d9ca41a95ad6
  • Pointer size: 132 Bytes
  • Size of remote file: 2.26 MB
examples/Example_13/Original_No_Mask.png ADDED

Git LFS Details

  • SHA256: 36645d07d92ea0a9ec14e5bb6d9f43494ef52850c00a94a3316f1ca4c6dfb339
  • Pointer size: 132 Bytes
  • Size of remote file: 2.25 MB
examples/Example_14/InPainted_Drag_Me_to_ComfyUI.png ADDED

Git LFS Details

  • SHA256: 98281486dd997258d69974892e4322ad75b8734af247c9fdc52c7934b92e2ce6
  • Pointer size: 132 Bytes
  • Size of remote file: 1.4 MB
examples/Example_14/Masked_Load_Me_in_Loader.png ADDED

Git LFS Details

  • SHA256: cc5bd8fedd04343860d1b596b9c192c33c0c4c2d9c6638effe9d4df8f4ab7a9a
  • Pointer size: 132 Bytes
  • Size of remote file: 2.63 MB
examples/Example_14/Original_No_Mask.png ADDED

Git LFS Details

  • SHA256: c0cc49737b1494e8fce8ab0e180b98de73d9e751821e76baa7a37cff639f3e3e
  • Pointer size: 132 Bytes
  • Size of remote file: 2.3 MB
examples/Example_2/InPainted_Drag_Me_to_ComfyUI.png ADDED

Git LFS Details

  • SHA256: cb478ff2bdc9a41cd2914ae7068d94bce509e671839b33655728c2b53825b769
  • Pointer size: 132 Bytes
  • Size of remote file: 1.5 MB
examples/Example_2/Masked_Load_Me_in_Loader.png ADDED

Git LFS Details

  • SHA256: e95dc65b370557b47053a07881736edb1332c87e2bb737a9feb5ad4e534c457b
  • Pointer size: 132 Bytes
  • Size of remote file: 1.68 MB
examples/Example_2/Original_No_Mask.png ADDED

Git LFS Details

  • SHA256: 828b21fbd0c062c73a9f22a7d89555342eb7515ae8347ca8cc0aadb15fe74f8d
  • Pointer size: 132 Bytes
  • Size of remote file: 1.48 MB
examples/Example_3/InPainted_Drag_Me_to_ComfyUI.png ADDED

Git LFS Details

  • SHA256: 3a66153a1988aeb9b1f880f35badee4f46a8f4ed35cc1f29d08855f9c8036801
  • Pointer size: 132 Bytes
  • Size of remote file: 1.3 MB
examples/Example_3/Masked_Load_Me_in_Loader.png ADDED

Git LFS Details

  • SHA256: 038d3eb9f8592408b28c209af97927d7dc4ac543ddf1b3d7a560f81311dddea3
  • Pointer size: 132 Bytes
  • Size of remote file: 1.48 MB
examples/Example_3/Original_No_Mask.png ADDED

Git LFS Details

  • SHA256: 46eb04f9c7387ce4befe7b0cdc42a2d7f2c332b68a2b4e6c382bd06fdc6350a9
  • Pointer size: 132 Bytes
  • Size of remote file: 1.29 MB
examples/Example_4/InPainted_Drag_Me_to_ComfyUI.png ADDED

Git LFS Details

  • SHA256: efb4fff6cfac048a97227fef52bfb34cdbbd53f1c74db25982f8c59bedc2f102
  • Pointer size: 132 Bytes
  • Size of remote file: 1.04 MB
examples/Example_4/Masked_Load_Me_in_Loader.png ADDED

Git LFS Details

  • SHA256: 33c42e51d999ae6442d2a4340a5fab4fd31e7ca430d92e8fe04fd633ef209897
  • Pointer size: 132 Bytes
  • Size of remote file: 1.19 MB
examples/Example_4/Original_No_Mask.png ADDED

Git LFS Details

  • SHA256: 950db549a240c9376a8e3f65a912777b6589206f936757d1573aca5fbb2c5f91
  • Pointer size: 132 Bytes
  • Size of remote file: 1.02 MB
examples/Example_5/InPainted_Drag_Me_to_ComfyUI.png ADDED

Git LFS Details

  • SHA256: 458af733e71700aba445835427e6b80a185a90c68eb095d506c882dbb52cffad
  • Pointer size: 132 Bytes
  • Size of remote file: 1.08 MB
examples/Example_5/Masked_Load_Me_in_Loader.png ADDED

Git LFS Details

  • SHA256: 33a992feb239126c73bd142a34d77f65db14d3b7ea42322248fc8ec0408700af
  • Pointer size: 132 Bytes
  • Size of remote file: 1.19 MB
examples/Example_5/Original_No_Mask.png ADDED

Git LFS Details

  • SHA256: 950db549a240c9376a8e3f65a912777b6589206f936757d1573aca5fbb2c5f91
  • Pointer size: 132 Bytes
  • Size of remote file: 1.02 MB
examples/Example_6/InPainted_Drag_Me_to_ComfyUI.png ADDED

Git LFS Details

  • SHA256: 61abc7eddea2d3f84c577f915ee0b8e197de7289800ff87e2a043aa62adc52a9
  • Pointer size: 132 Bytes
  • Size of remote file: 1.12 MB
examples/Example_6/Masked_Load_Me_in_Loader.png ADDED

Git LFS Details

  • SHA256: fffdf28a6e513626bfe9b73481d2f47d7d8efabd8ef292a12d47d34eba4841e8
  • Pointer size: 131 Bytes
  • Size of remote file: 876 kB