Unverified Commit 14f6ff81 authored by Muyang Li's avatar Muyang Li Committed by GitHub
Browse files

feat: make ip-adapter runnable in comfyui (#569)

parent d4592efc
IP Adapter 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 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 .. literalinclude:: ../../../examples/flux.1-dev-IP-adapter.py
......
...@@ -35,7 +35,7 @@ def apply_IPA_on_pipe(pipe: DiffusionPipeline, *args, **kwargs): ...@@ -35,7 +35,7 @@ def apply_IPA_on_pipe(pipe: DiffusionPipeline, *args, **kwargs):
assert isinstance(pipe, DiffusionPipeline) assert isinstance(pipe, DiffusionPipeline)
pipe_cls_name = pipe.__class__.__name__ 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 from .flux import apply_IPA_on_pipe as apply_IPA_on_pipe_fn
else: else:
raise ValueError(f"Unknown pipeline class name: {pipe_cls_name}") raise ValueError(f"Unknown pipeline class name: {pipe_cls_name}")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment