1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

add Instant id sdxl image2image pipeline (#7507)

* initial commit - instantid img2img

* adapting to img2img

* change add_time_ids

* change add_time_ids

* WIP changes

* add strength to timesteps

* check insightface import

* style

* check insightface import changed to warning

* check insightface import changed to warning

* style

---------

Co-authored-by: apolinário <joaopaulo.passos@gmail.com>
This commit is contained in:
Linoy Tsaban
2024-03-30 07:55:21 +03:00
committed by GitHub
parent 77103d71ca
commit bda1d4faf8
2 changed files with 1082 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -46,6 +46,11 @@ except Exception:
logger = logging.get_logger(__name__) # pylint: disable=invalid-name
logger.warning(
"To use instant id pipelines, please make sure you have the `insightface` library installed: `pip install insightface`."
"Please refer to: https://huggingface.co/InstantX/InstantID for further instructions regarding inference"
)
def FeedForward(dim, mult=4):
inner_dim = int(dim * mult)