Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
fengzch-das
nunchaku
Commits
14f6ff81
Unverified
Commit
14f6ff81
authored
Jul 26, 2025
by
Muyang Li
Committed by
GitHub
Jul 26, 2025
Browse files
feat: make ip-adapter runnable in comfyui (#569)
parent
d4592efc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
docs/source/usage/ip_adapter.rst
docs/source/usage/ip_adapter.rst
+2
-0
nunchaku/models/ip_adapter/diffusers_adapters/__init__.py
nunchaku/models/ip_adapter/diffusers_adapters/__init__.py
+1
-1
No files found.
docs/source/usage/ip_adapter.rst
View file @
14f6ff81
IP Adapter
==========
.. image:: https://huggingface.co/datasets/nunchaku-tech/cdn/resolve/main/ComfyUI-nunchaku/workflows/nunchaku-flux.1-IP-adapter.png
Nunchaku supports `IP Adapter <hf_ip-adapterv2_>`_, an adapter achieving image prompt capability for the FLUX.1-dev
.. literalinclude:: ../../../examples/flux.1-dev-IP-adapter.py
...
...
nunchaku/models/ip_adapter/diffusers_adapters/__init__.py
View file @
14f6ff81
...
...
@@ -35,7 +35,7 @@ def apply_IPA_on_pipe(pipe: DiffusionPipeline, *args, **kwargs):
assert
isinstance
(
pipe
,
DiffusionPipeline
)
pipe_cls_name
=
pipe
.
__class__
.
__name__
if
pipe_cls_name
.
startswith
(
"Flux"
)
or
pipe_cls_name
.
startswith
(
"
PuLID
"
):
if
pipe_cls_name
.
startswith
(
"Flux"
)
or
pipe_cls_name
.
startswith
(
"
IPAFlux
"
):
from
.flux
import
apply_IPA_on_pipe
as
apply_IPA_on_pipe_fn
else
:
raise
ValueError
(
f
"Unknown pipeline class name:
{
pipe_cls_name
}
"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment