From 230a4aaa2809c10bf06e684a2140a67730fdd81e Mon Sep 17 00:00:00 2001 From: wangqixun Date: Mon, 29 Jan 2024 10:53:21 +0800 Subject: [PATCH 01/26] readme --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 94edaefa..521e7a89 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ -# InstantID +#
InstantID
+ @@ -14,9 +15,9 @@ InstantID is a new state-of-the-art tuning-free method to achieve ID-Preserving ## Release -- [2024/1/23] 🔥 Our pipeline has been merged into [diffusers](https://github.com/huggingface/diffusers/blob/main/examples/community/pipeline_stable_diffusion_xl_instantid.py)! -- [2024/1/22] 🔥 We release the [pre-trained checkpoints](https://huggingface.co/InstantX/InstantID), [inference code](https://github.com/InstantID/InstantID/blob/main/infer.py) and [gradio demo](https://huggingface.co/spaces/InstantX/InstantID)! -- [2024/1/15] 🔥 We release the [technical report](https://arxiv.org/abs/2401.07519). +- [2024/01/23] 🔥 Our pipeline has been merged into [diffusers](https://github.com/huggingface/diffusers/blob/main/examples/community/pipeline_stable_diffusion_xl_instantid.py)! +- [2024/01/22] 🔥 We release the [pre-trained checkpoints](https://huggingface.co/InstantX/InstantID), [inference code](https://github.com/InstantID/InstantID/blob/main/infer.py) and [gradio demo](https://huggingface.co/spaces/InstantX/InstantID)! +- [2024/01/15] 🔥 We release the [technical report](https://arxiv.org/abs/2401.07519). - [2023/12/11] 🔥 We launch the [project page](https://instantid.github.io/). ## Demos From 0a7a39a8ecf92a0c2d65e7e01a08fc500e88e0c9 Mon Sep 17 00:00:00 2001 From: wangqixun Date: Mon, 29 Jan 2024 10:54:28 +0800 Subject: [PATCH 02/26] readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 521e7a89..7c594909 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -#
InstantID
+#
InstantID From 92176590d48033e71e07ff25ceaac35e40c2c9f9 Mon Sep 17 00:00:00 2001 From: wangqixun Date: Mon, 29 Jan 2024 10:56:01 +0800 Subject: [PATCH 03/26] readme --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7c594909..f1033246 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ -#
InstantID + +

InstantID

From 2bb2340e58bec66f30dedaafe21f82565302c1c1 Mon Sep 17 00:00:00 2001 From: wangqixun Date: Mon, 29 Jan 2024 10:57:06 +0800 Subject: [PATCH 04/26] readme --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f1033246..a693aaa3 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,10 @@ -

InstantID

+
+InstantID +
- - + + [![GitHub](https://img.shields.io/github/stars/InstantID/InstantID?style=social)](https://github.com/InstantID/InstantID) From e386de7b2e9b51ff5ed29b020082f89ce8665eca Mon Sep 17 00:00:00 2001 From: wangqixun Date: Mon, 29 Jan 2024 10:58:38 +0800 Subject: [PATCH 05/26] readme --- README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index a693aaa3..a06cdb1d 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,4 @@ - -
-InstantID -
+# InstantID1 From e6bdede7e47a847c7404f3a85e8173ac6af72e98 Mon Sep 17 00:00:00 2001 From: wangqixun Date: Mon, 29 Jan 2024 10:59:31 +0800 Subject: [PATCH 06/26] readme --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a06cdb1d..fb34bfa8 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,8 @@ -# InstantID1 +#
InstantID + +123 + + From 7c378d206e28fa3836913f78282afc27188f5526 Mon Sep 17 00:00:00 2001 From: wangqixun Date: Mon, 29 Jan 2024 11:00:46 +0800 Subject: [PATCH 07/26] readme --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index fb34bfa8..76c78856 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,7 @@ -#
InstantID - -123 - + +
+

InstantID

From 0168552a5fcae9a65112e44a9ab3d2de0d04a2ea Mon Sep 17 00:00:00 2001 From: wangqixun Date: Mon, 29 Jan 2024 11:02:23 +0800 Subject: [PATCH 08/26] readme --- README.md | 231 ------------------------------------------------------ 1 file changed, 231 deletions(-) diff --git a/README.md b/README.md index 76c78856..f638a872 100644 --- a/README.md +++ b/README.md @@ -2,234 +2,3 @@

InstantID

- - - - - -[![GitHub](https://img.shields.io/github/stars/InstantID/InstantID?style=social)](https://github.com/InstantID/InstantID) - -**InstantID : Zero-shot Identity-Preserving Generation in Seconds** - -[Qixun Wang](https://github.com/wangqixun), [Xu Bai](https://huggingface.co/baymin0220), [Haofan Wang*](https://haofanwang.github.io/), [Zekui Qin](https://github.com/ZekuiQin), [Anthony Chen](https://antonioo-c.github.io/), Huaxia Li and Xu Tang. * denotes Corresponding Author. - -InstantID is a new state-of-the-art tuning-free method to achieve ID-Preserving generation with only single image, supporting various downstream tasks. - - - -## Release -- [2024/01/23] 🔥 Our pipeline has been merged into [diffusers](https://github.com/huggingface/diffusers/blob/main/examples/community/pipeline_stable_diffusion_xl_instantid.py)! -- [2024/01/22] 🔥 We release the [pre-trained checkpoints](https://huggingface.co/InstantX/InstantID), [inference code](https://github.com/InstantID/InstantID/blob/main/infer.py) and [gradio demo](https://huggingface.co/spaces/InstantX/InstantID)! -- [2024/01/15] 🔥 We release the [technical report](https://arxiv.org/abs/2401.07519). -- [2023/12/11] 🔥 We launch the [project page](https://instantid.github.io/). - -## Demos - -[![Replicate](https://replicate.com/zsxkib/instant-id/badge)](https://replicate.com/zsxkib/instant-id) -[![ModelScope](https://img.shields.io/badge/modelscope-InstantID-blue)](https://modelscope.cn/studios/instantx/InstantID/summary) - -### Stylized Synthesis - -

- -

- -### Comparison with Previous Works - -

- -

- -Comparison with existing tuning-free state-of-the-art techniques. InstantID achieves better fidelity and retain good text editability (faces and styles blend better). - -

- -

- -Comparison with pre-trained character LoRAs. We don't need multiple images and still can achieve competitive results as LoRAs without any training. - -

- -

- -Comparison with InsightFace Swapper (also known as ROOP or Refactor). However, in non-realistic style, our work is more flexible on the integration of face and background. - - -## Download - -You can directly download the model from [Huggingface](https://huggingface.co/InstantX/InstantID). -You also can download the model in python script: - -```python -from huggingface_hub import hf_hub_download -hf_hub_download(repo_id="InstantX/InstantID", filename="ControlNetModel/config.json", local_dir="./checkpoints") -hf_hub_download(repo_id="InstantX/InstantID", filename="ControlNetModel/diffusion_pytorch_model.safetensors", local_dir="./checkpoints") -hf_hub_download(repo_id="InstantX/InstantID", filename="ip-adapter.bin", local_dir="./checkpoints") -``` - -If you cannot access to Huggingface, you can use [hf-mirror](https://hf-mirror.com/) to download models. -```python -export HF_ENDPOINT=https://hf-mirror.com -huggingface-cli download --resume-download InstantX/InstantID --local-dir checkpoints -``` - -For face encoder, you need to manually download via this [URL](https://github.com/deepinsight/insightface/issues/1896#issuecomment-1023867304) to `models/antelopev2` as the default link is invalid. Once you have prepared all models, the folder tree should be like: - -``` - . - ├── models - ├── checkpoints - ├── ip_adapter - ├── pipeline_stable_diffusion_xl_instantid.py - └── README.md -``` - -## Usage - -```python -# !pip install opencv-python transformers accelerate insightface -import diffusers -from diffusers.utils import load_image -from diffusers.models import ControlNetModel - -import cv2 -import torch -import numpy as np -from PIL import Image - -from insightface.app import FaceAnalysis -from pipeline_stable_diffusion_xl_instantid import StableDiffusionXLInstantIDPipeline, draw_kps - -# prepare 'antelopev2' under ./models -app = FaceAnalysis(name='antelopev2', root='./', providers=['CUDAExecutionProvider', 'CPUExecutionProvider']) -app.prepare(ctx_id=0, det_size=(640, 640)) - -# prepare models under ./checkpoints -face_adapter = f'./checkpoints/ip-adapter.bin' -controlnet_path = f'./checkpoints/ControlNetModel' - -# load IdentityNet -controlnet = ControlNetModel.from_pretrained(controlnet_path, torch_dtype=torch.float16) - -base_model = 'wangqixun/YamerMIX_v8' # from https://civitai.com/models/84040?modelVersionId=196039 -pipe = StableDiffusionXLInstantIDPipeline.from_pretrained( - base_model, - controlnet=controlnet, - torch_dtype=torch.float16 -) -pipe.cuda() - -# load adapter -pipe.load_ip_adapter_instantid(face_adapter) -``` - -Then, you can customized your own face images - -```python -# load an image -face_image = load_image("./examples/yann-lecun_resize.jpg") - -# prepare face emb -face_info = app.get(cv2.cvtColor(np.array(face_image), cv2.COLOR_RGB2BGR)) -face_info = sorted(face_info, key=lambda x:(x['bbox'][2]-x['bbox'][0])*x['bbox'][3]-x['bbox'][1])[-1] # only use the maximum face -face_emb = face_info['embedding'] -face_kps = draw_kps(face_image, face_info['kps']) - -# prompt -prompt = "film noir style, ink sketch|vector, male man, highly detailed, sharp focus, ultra sharpness, monochrome, high contrast, dramatic shadows, 1940s style, mysterious, cinematic" -negative_prompt = "ugly, deformed, noisy, blurry, low contrast, realism, photorealistic, vibrant, colorful" - -# generate image -image = pipe( - prompt, - image_embeds=face_emb, - image=face_kps, - controlnet_conditioning_scale=0.8, - ip_adapter_scale=0.8, -).images[0] -``` - -## Speed Up with LCM-LoRA - -Our work is compatible with [LCM-LoRA](https://github.com/luosiallen/latent-consistency-model). First, download the model. - -```python -from huggingface_hub import hf_hub_download -hf_hub_download(repo_id="latent-consistency/lcm-lora-sdxl", filename="pytorch_lora_weights.safetensors", local_dir="./checkpoints") -``` - -To use it, you just need to load it and infer with a small num_inference_steps. Note that it is recommendated to set guidance_scale between [0, 1]. -```python -from diffusers import LCMScheduler - -lcm_lora_path = "./checkpoints/pytorch_lora_weights.safetensors" - -pipe.load_lora_weights(lcm_lora_path) -pipe.fuse_lora() -pipe.scheduler = LCMScheduler.from_config(pipe.scheduler.config) - -num_inference_steps = 10 -guidance_scale = 0 -``` - -## Start a local gradio demo -Run the following command: - -```python -python gradio_demo/app.py -``` - -## Usage Tips -- For higher similarity, increase the weight of controlnet_conditioning_scale (IdentityNet) and ip_adapter_scale (Adapter). -- For over-saturation, decrease the ip_adapter_scale. If not work, decrease controlnet_conditioning_scale. -- For higher text control ability, decrease ip_adapter_scale. -- For specific styles, choose corresponding base model makes differences. -- We have not supported multi-person yet, will only use the largest face as reference pose. -- We provide a [style template](https://github.com/ahgsql/StyleSelectorXL/blob/main/sdxl_styles.json) for reference. - -## Community Resources - -### Replicate Demo -- [zsxkib/instant-id](https://replicate.com/zsxkib/instant-id) - -### WebUI -- [Mikubill/sd-webui-controlnet](https://github.com/Mikubill/sd-webui-controlnet/discussions/2589) - -### ComfyUI -- [ZHO-ZHO-ZHO/ComfyUI-InstantID](https://github.com/ZHO-ZHO-ZHO/ComfyUI-InstantID) -- [huxiuhan/ComfyUI-InstantID](https://github.com/huxiuhan/ComfyUI-InstantID) - -### Windows -- [sdbds/InstantID-for-windows](https://github.com/sdbds/InstantID-for-windows) - -## Acknowledgements -- InstantID is developed by InstantX Team at Xiaohongshu Inc, all copyright reserved. -- Our work is highly inspired by [IP-Adapter](https://github.com/tencent-ailab/IP-Adapter) and [ControlNet](https://github.com/lllyasviel/ControlNet). Thanks for their great works! -- Thanks [ZHO-ZHO-ZHO](https://github.com/ZHO-ZHO-ZHO), [huxiuhan](https://github.com/huxiuhan), [sdbds](https://github.com/sdbds), [zsxkib](https://replicate.com/zsxkib) for their generous contributions. -- Thanks to the [HuggingFace](https://github.com/huggingface) gradio team for their free GPU support! -- Thanks to the [ModelScope](https://github.com/modelscope/modelscope) team for their free GPU support! - -## Disclaimer -The code of InstantID is released under [Apache License](https://github.com/InstantID/InstantID?tab=Apache-2.0-1-ov-file#readme) for both academic and commercial usage. **However, both manual-downloading and auto-downloading face models from insightface are for non-commercial research purposes only** accoreding to their [license](https://github.com/deepinsight/insightface?tab=readme-ov-file#license). Users are granted the freedom to create images using this tool, but they are obligated to comply with local laws and utilize it responsibly. The developers will not assume any responsibility for potential misuse by users. - -## Declaration -⚠️We solemnly clarify that http://instantid.org is not authorized and has no relationship with us. It is infringing and quite misleading, and has never contacted us for official cooperation. Please be aware of your personal privacy and subscription fraud. We reserve all legal rights. - -## Star History - -[![Star History Chart](https://api.star-history.com/svg?repos=InstantID/InstantID&type=Date)](https://star-history.com/#InstantID/InstantID&Date) - - -## Cite -If you find InstantID useful for your research and applications, please cite us using this BibTeX: - -```bibtex -@article{wang2024instantid, - title={InstantID: Zero-shot Identity-Preserving Generation in Seconds}, - author={Wang, Qixun and Bai, Xu and Wang, Haofan and Qin, Zekui and Chen, Anthony}, - journal={arXiv preprint arXiv:2401.07519}, - year={2024} -} -``` - -For any question, please feel free to contact us via haofanwang.ai@gmail.com or wangqixun.ai@gmail.com. From 4039feddb2b3e3b96d103db0321629560a909ddd Mon Sep 17 00:00:00 2001 From: wangqixun Date: Mon, 29 Jan 2024 11:04:50 +0800 Subject: [PATCH 09/26] readme --- README.md | 234 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 231 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f638a872..3b29cb32 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,232 @@ - +#
InstantID -
-

InstantID

+ + + + +[![GitHub](https://img.shields.io/github/stars/InstantID/InstantID?style=social)](https://github.com/InstantID/InstantID) + +**InstantID : Zero-shot Identity-Preserving Generation in Seconds** + +[Qixun Wang](https://github.com/wangqixun), [Xu Bai](https://huggingface.co/baymin0220), [Haofan Wang*](https://haofanwang.github.io/), [Zekui Qin](https://github.com/ZekuiQin), [Anthony Chen](https://antonioo-c.github.io/), Huaxia Li and Xu Tang. * denotes Corresponding Author. + +InstantID is a new state-of-the-art tuning-free method to achieve ID-Preserving generation with only single image, supporting various downstream tasks. + + + +## Release +- [2024/01/23] 🔥 Our pipeline has been merged into [diffusers](https://github.com/huggingface/diffusers/blob/main/examples/community/pipeline_stable_diffusion_xl_instantid.py)! +- [2024/01/22] 🔥 We release the [pre-trained checkpoints](https://huggingface.co/InstantX/InstantID), [inference code](https://github.com/InstantID/InstantID/blob/main/infer.py) and [gradio demo](https://huggingface.co/spaces/InstantX/InstantID)! +- [2024/01/15] 🔥 We release the [technical report](https://arxiv.org/abs/2401.07519). +- [2023/12/11] 🔥 We launch the [project page](https://instantid.github.io/). + +## Demos + +[![Replicate](https://replicate.com/zsxkib/instant-id/badge)](https://replicate.com/zsxkib/instant-id) +[![ModelScope](https://img.shields.io/badge/modelscope-InstantID-blue)](https://modelscope.cn/studios/instantx/InstantID/summary) + +### Stylized Synthesis + +

+ +

+ +### Comparison with Previous Works + +

+ +

+ +Comparison with existing tuning-free state-of-the-art techniques. InstantID achieves better fidelity and retain good text editability (faces and styles blend better). + +

+ +

+ +Comparison with pre-trained character LoRAs. We don't need multiple images and still can achieve competitive results as LoRAs without any training. + +

+ +

+ +Comparison with InsightFace Swapper (also known as ROOP or Refactor). However, in non-realistic style, our work is more flexible on the integration of face and background. + + +## Download + +You can directly download the model from [Huggingface](https://huggingface.co/InstantX/InstantID). +You also can download the model in python script: + +```python +from huggingface_hub import hf_hub_download +hf_hub_download(repo_id="InstantX/InstantID", filename="ControlNetModel/config.json", local_dir="./checkpoints") +hf_hub_download(repo_id="InstantX/InstantID", filename="ControlNetModel/diffusion_pytorch_model.safetensors", local_dir="./checkpoints") +hf_hub_download(repo_id="InstantX/InstantID", filename="ip-adapter.bin", local_dir="./checkpoints") +``` + +If you cannot access to Huggingface, you can use [hf-mirror](https://hf-mirror.com/) to download models. +```python +export HF_ENDPOINT=https://hf-mirror.com +huggingface-cli download --resume-download InstantX/InstantID --local-dir checkpoints +``` + +For face encoder, you need to manually download via this [URL](https://github.com/deepinsight/insightface/issues/1896#issuecomment-1023867304) to `models/antelopev2` as the default link is invalid. Once you have prepared all models, the folder tree should be like: + +``` + . + ├── models + ├── checkpoints + ├── ip_adapter + ├── pipeline_stable_diffusion_xl_instantid.py + └── README.md +``` + +## Usage + +```python +# !pip install opencv-python transformers accelerate insightface +import diffusers +from diffusers.utils import load_image +from diffusers.models import ControlNetModel + +import cv2 +import torch +import numpy as np +from PIL import Image + +from insightface.app import FaceAnalysis +from pipeline_stable_diffusion_xl_instantid import StableDiffusionXLInstantIDPipeline, draw_kps + +# prepare 'antelopev2' under ./models +app = FaceAnalysis(name='antelopev2', root='./', providers=['CUDAExecutionProvider', 'CPUExecutionProvider']) +app.prepare(ctx_id=0, det_size=(640, 640)) + +# prepare models under ./checkpoints +face_adapter = f'./checkpoints/ip-adapter.bin' +controlnet_path = f'./checkpoints/ControlNetModel' + +# load IdentityNet +controlnet = ControlNetModel.from_pretrained(controlnet_path, torch_dtype=torch.float16) + +base_model = 'wangqixun/YamerMIX_v8' # from https://civitai.com/models/84040?modelVersionId=196039 +pipe = StableDiffusionXLInstantIDPipeline.from_pretrained( + base_model, + controlnet=controlnet, + torch_dtype=torch.float16 +) +pipe.cuda() + +# load adapter +pipe.load_ip_adapter_instantid(face_adapter) +``` + +Then, you can customized your own face images + +```python +# load an image +face_image = load_image("./examples/yann-lecun_resize.jpg") + +# prepare face emb +face_info = app.get(cv2.cvtColor(np.array(face_image), cv2.COLOR_RGB2BGR)) +face_info = sorted(face_info, key=lambda x:(x['bbox'][2]-x['bbox'][0])*x['bbox'][3]-x['bbox'][1])[-1] # only use the maximum face +face_emb = face_info['embedding'] +face_kps = draw_kps(face_image, face_info['kps']) + +# prompt +prompt = "film noir style, ink sketch|vector, male man, highly detailed, sharp focus, ultra sharpness, monochrome, high contrast, dramatic shadows, 1940s style, mysterious, cinematic" +negative_prompt = "ugly, deformed, noisy, blurry, low contrast, realism, photorealistic, vibrant, colorful" + +# generate image +image = pipe( + prompt, + image_embeds=face_emb, + image=face_kps, + controlnet_conditioning_scale=0.8, + ip_adapter_scale=0.8, +).images[0] +``` + +## Speed Up with LCM-LoRA + +Our work is compatible with [LCM-LoRA](https://github.com/luosiallen/latent-consistency-model). First, download the model. + +```python +from huggingface_hub import hf_hub_download +hf_hub_download(repo_id="latent-consistency/lcm-lora-sdxl", filename="pytorch_lora_weights.safetensors", local_dir="./checkpoints") +``` + +To use it, you just need to load it and infer with a small num_inference_steps. Note that it is recommendated to set guidance_scale between [0, 1]. +```python +from diffusers import LCMScheduler + +lcm_lora_path = "./checkpoints/pytorch_lora_weights.safetensors" + +pipe.load_lora_weights(lcm_lora_path) +pipe.fuse_lora() +pipe.scheduler = LCMScheduler.from_config(pipe.scheduler.config) + +num_inference_steps = 10 +guidance_scale = 0 +``` + +## Start a local gradio demo +Run the following command: + +```python +python gradio_demo/app.py +``` + +## Usage Tips +- For higher similarity, increase the weight of controlnet_conditioning_scale (IdentityNet) and ip_adapter_scale (Adapter). +- For over-saturation, decrease the ip_adapter_scale. If not work, decrease controlnet_conditioning_scale. +- For higher text control ability, decrease ip_adapter_scale. +- For specific styles, choose corresponding base model makes differences. +- We have not supported multi-person yet, will only use the largest face as reference pose. +- We provide a [style template](https://github.com/ahgsql/StyleSelectorXL/blob/main/sdxl_styles.json) for reference. + +## Community Resources + +### Replicate Demo +- [zsxkib/instant-id](https://replicate.com/zsxkib/instant-id) + +### WebUI +- [Mikubill/sd-webui-controlnet](https://github.com/Mikubill/sd-webui-controlnet/discussions/2589) + +### ComfyUI +- [ZHO-ZHO-ZHO/ComfyUI-InstantID](https://github.com/ZHO-ZHO-ZHO/ComfyUI-InstantID) +- [huxiuhan/ComfyUI-InstantID](https://github.com/huxiuhan/ComfyUI-InstantID) + +### Windows +- [sdbds/InstantID-for-windows](https://github.com/sdbds/InstantID-for-windows) + +## Acknowledgements +- InstantID is developed by InstantX Team at Xiaohongshu Inc, all copyright reserved. +- Our work is highly inspired by [IP-Adapter](https://github.com/tencent-ailab/IP-Adapter) and [ControlNet](https://github.com/lllyasviel/ControlNet). Thanks for their great works! +- Thanks [ZHO-ZHO-ZHO](https://github.com/ZHO-ZHO-ZHO), [huxiuhan](https://github.com/huxiuhan), [sdbds](https://github.com/sdbds), [zsxkib](https://replicate.com/zsxkib) for their generous contributions. +- Thanks to the [HuggingFace](https://github.com/huggingface) gradio team for their free GPU support! +- Thanks to the [ModelScope](https://github.com/modelscope/modelscope) team for their free GPU support! + +## Disclaimer +The code of InstantID is released under [Apache License](https://github.com/InstantID/InstantID?tab=Apache-2.0-1-ov-file#readme) for both academic and commercial usage. **However, both manual-downloading and auto-downloading face models from insightface are for non-commercial research purposes only** accoreding to their [license](https://github.com/deepinsight/insightface?tab=readme-ov-file#license). Users are granted the freedom to create images using this tool, but they are obligated to comply with local laws and utilize it responsibly. The developers will not assume any responsibility for potential misuse by users. + +## Declaration +⚠️We solemnly clarify that http://instantid.org is not authorized and has no relationship with us. It is infringing and quite misleading, and has never contacted us for official cooperation. Please be aware of your personal privacy and subscription fraud. We reserve all legal rights. + +## Star History + +[![Star History Chart](https://api.star-history.com/svg?repos=InstantID/InstantID&type=Date)](https://star-history.com/#InstantID/InstantID&Date) + + +## Cite +If you find InstantID useful for your research and applications, please cite us using this BibTeX: + +```bibtex +@article{wang2024instantid, + title={InstantID: Zero-shot Identity-Preserving Generation in Seconds}, + author={Wang, Qixun and Bai, Xu and Wang, Haofan and Qin, Zekui and Chen, Anthony}, + journal={arXiv preprint arXiv:2401.07519}, + year={2024} +} +``` + +For any question, please feel free to contact us via haofanwang.ai@gmail.com or wangqixun.ai@gmail.com. From 3a93803ea02f140e416271368e29a072193c7cf1 Mon Sep 17 00:00:00 2001 From: wangqixun Date: Mon, 29 Jan 2024 11:05:08 +0800 Subject: [PATCH 10/26] readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3b29cb32..e1d6589f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -#
InstantID +#
InstantID123123 From 11608c8cadb4262c53d2aaf3486d83c7383cf870 Mon Sep 17 00:00:00 2001 From: wangqixun Date: Mon, 29 Jan 2024 11:06:54 +0800 Subject: [PATCH 11/26] readme --- LICENSE | 201 -------------------------------------------------------- 1 file changed, 201 deletions(-) delete mode 100644 LICENSE diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 261eeb9e..00000000 --- a/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. From aa90324b9245888a8c314bb58194c3fb47aca01f Mon Sep 17 00:00:00 2001 From: wangqixun Date: Mon, 29 Jan 2024 11:16:24 +0800 Subject: [PATCH 12/26] readme --- README.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e1d6589f..40d09122 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,26 @@ -#
InstantID123123 +
+

InstantID

+ +[**Qixun Wang**](https://github.com/wangqixun)12 · [**Xu Bai**](https://huggingface.co/baymin0220)12 · [**Haofan Wang**](https://haofanwang.github.io/)12* · [**Zekui Qin**](https://github.com/ZekuiQin)12 · [**Anthony Chen**](https://antonioo-c.github.io/)123 · Huaxia Li2 · Xu Tang2 + +1InstantX Team · 2Xiaohongshu Inc · 3Peking University + +*corresponding authors + +
+ + + [![GitHub](https://img.shields.io/github/stars/InstantID/InstantID?style=social)](https://github.com/InstantID/InstantID) **InstantID : Zero-shot Identity-Preserving Generation in Seconds** From 3908e73246edb54d0b6584b5e4deab86fa5a3c65 Mon Sep 17 00:00:00 2001 From: wangqixun Date: Mon, 29 Jan 2024 11:17:16 +0800 Subject: [PATCH 13/26] readme --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 40d09122..b37f9a9e 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,8 @@ +[![GitHub](https://img.shields.io/github/stars/InstantID/InstantID?style=social)](https://github.com/InstantID/InstantID) +
@@ -21,7 +23,6 @@ --> -[![GitHub](https://img.shields.io/github/stars/InstantID/InstantID?style=social)](https://github.com/InstantID/InstantID) **InstantID : Zero-shot Identity-Preserving Generation in Seconds** From 735a77ca29f617e0aaa59b1e08f9750f2dd456a2 Mon Sep 17 00:00:00 2001 From: wangqixun Date: Mon, 29 Jan 2024 11:18:52 +0800 Subject: [PATCH 14/26] readme --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b37f9a9e..1de636c2 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@
-

InstantID

+

InstantID: Zero-shot Identity-Preserving Generation in Seconds

[**Qixun Wang**](https://github.com/wangqixun)12 · [**Xu Bai**](https://huggingface.co/baymin0220)12 · [**Haofan Wang**](https://haofanwang.github.io/)12* · [**Zekui Qin**](https://github.com/ZekuiQin)12 · [**Anthony Chen**](https://antonioo-c.github.io/)123 · Huaxia Li2 · Xu Tang2 @@ -13,20 +13,21 @@ [![GitHub](https://img.shields.io/github/stars/InstantID/InstantID?style=social)](https://github.com/InstantID/InstantID) -
+ + - + InstantID is a new state-of-the-art tuning-free method to achieve ID-Preserving generation with only single image, supporting various downstream tasks. From 62eb42a0b2a53a7c776733604e88bdbb81387c13 Mon Sep 17 00:00:00 2001 From: wangqixun Date: Mon, 29 Jan 2024 11:23:35 +0800 Subject: [PATCH 15/26] readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 1de636c2..63c963ef 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,8 @@ *corresponding authors +{wanghaofan.ai, wangqixun.ai}@gmail.com + From 1b0b8948cb1ad46ed67baf15943ab6a111d73e25 Mon Sep 17 00:00:00 2001 From: wangqixun Date: Mon, 29 Jan 2024 11:27:55 +0800 Subject: [PATCH 16/26] readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 63c963ef..0944e475 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@
-

InstantID: Zero-shot Identity-Preserving Generation in Seconds

+

InstantID: Zero-shot Identity-Preserving Generation in Seconds

[**Qixun Wang**](https://github.com/wangqixun)12 · [**Xu Bai**](https://huggingface.co/baymin0220)12 · [**Haofan Wang**](https://haofanwang.github.io/)12* · [**Zekui Qin**](https://github.com/ZekuiQin)12 · [**Anthony Chen**](https://antonioo-c.github.io/)123 · Huaxia Li2 · Xu Tang2 From 2d63c05a28ce5b623f2fc56562abf30e323a78df Mon Sep 17 00:00:00 2001 From: wangqixun Date: Mon, 29 Jan 2024 11:30:11 +0800 Subject: [PATCH 17/26] readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0944e475..04f30f5b 100644 --- a/README.md +++ b/README.md @@ -231,7 +231,7 @@ python gradio_demo/app.py The code of InstantID is released under [Apache License](https://github.com/InstantID/InstantID?tab=Apache-2.0-1-ov-file#readme) for both academic and commercial usage. **However, both manual-downloading and auto-downloading face models from insightface are for non-commercial research purposes only** accoreding to their [license](https://github.com/deepinsight/insightface?tab=readme-ov-file#license). Users are granted the freedom to create images using this tool, but they are obligated to comply with local laws and utilize it responsibly. The developers will not assume any responsibility for potential misuse by users. ## Declaration -⚠️We solemnly clarify that http://instantid.org is not authorized and has no relationship with us. It is infringing and quite misleading, and has never contacted us for official cooperation. Please be aware of your personal privacy and subscription fraud. We reserve all legal rights. +❌❌❌ We solemnly clarify that [FAKE]http://instantid.org[FAKE] is not authorized and has no relationship with us. It is infringing and quite misleading, and has never contacted us for official cooperation. Please be aware of your personal privacy and subscription fraud. We reserve all legal rights. ## Star History From 42c002e4c46472689cd5af5596255718a3e7e6ef Mon Sep 17 00:00:00 2001 From: wangqixun Date: Mon, 29 Jan 2024 11:30:41 +0800 Subject: [PATCH 18/26] readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 04f30f5b..c3d62232 100644 --- a/README.md +++ b/README.md @@ -231,7 +231,7 @@ python gradio_demo/app.py The code of InstantID is released under [Apache License](https://github.com/InstantID/InstantID?tab=Apache-2.0-1-ov-file#readme) for both academic and commercial usage. **However, both manual-downloading and auto-downloading face models from insightface are for non-commercial research purposes only** accoreding to their [license](https://github.com/deepinsight/insightface?tab=readme-ov-file#license). Users are granted the freedom to create images using this tool, but they are obligated to comply with local laws and utilize it responsibly. The developers will not assume any responsibility for potential misuse by users. ## Declaration -❌❌❌ We solemnly clarify that [FAKE]http://instantid.org[FAKE] is not authorized and has no relationship with us. It is infringing and quite misleading, and has never contacted us for official cooperation. Please be aware of your personal privacy and subscription fraud. We reserve all legal rights. +❌❌❌ We solemnly clarify that [FAKE] http://instantid.org [FAKE] is not authorized and has no relationship with us. It is infringing and quite misleading, and has never contacted us for official cooperation. Please be aware of your personal privacy and subscription fraud. We reserve all legal rights. ## Star History From 2b8790385ef9eb0b3a95f0c94a7ac9ca0b6d9fbc Mon Sep 17 00:00:00 2001 From: wangqixun Date: Mon, 29 Jan 2024 11:35:41 +0800 Subject: [PATCH 19/26] readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c3d62232..4b059f9d 100644 --- a/README.md +++ b/README.md @@ -231,7 +231,7 @@ python gradio_demo/app.py The code of InstantID is released under [Apache License](https://github.com/InstantID/InstantID?tab=Apache-2.0-1-ov-file#readme) for both academic and commercial usage. **However, both manual-downloading and auto-downloading face models from insightface are for non-commercial research purposes only** accoreding to their [license](https://github.com/deepinsight/insightface?tab=readme-ov-file#license). Users are granted the freedom to create images using this tool, but they are obligated to comply with local laws and utilize it responsibly. The developers will not assume any responsibility for potential misuse by users. ## Declaration -❌❌❌ We solemnly clarify that [FAKE] http://instantid.org [FAKE] is not authorized and has no relationship with us. It is infringing and quite misleading, and has never contacted us for official cooperation. Please be aware of your personal privacy and subscription fraud. We reserve all legal rights. +🚨🚨🚨 We solemnly clarify that [FAKE][FAKE][FAKE] http://instantid.org [FAKE][FAKE][FAKE] is not authorized and has no relationship with us. It is infringing and quite misleading, and has never contacted us for official cooperation. Please be aware of your personal privacy and subscription fraud. We reserve all legal rights. ## Star History From b10a1c24eabf2a23bfdcd4b6131c46e5c58f799c Mon Sep 17 00:00:00 2001 From: wangqixun Date: Mon, 29 Jan 2024 11:49:39 +0800 Subject: [PATCH 20/26] readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 4b059f9d..080bdc8f 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,8 @@ +[![Replicate](https://replicate.com/zsxkib/instant-id/badge)](https://replicate.com/zsxkib/instant-id) +[![ModelScope](https://img.shields.io/badge/modelscope-InstantID-blue)](https://modelscope.cn/studios/instantx/InstantID/summary) [![GitHub](https://img.shields.io/github/stars/InstantID/InstantID?style=social)](https://github.com/InstantID/InstantID)
From c5af2c4ed8a803dd749f8b0d4128ad8992609d3f Mon Sep 17 00:00:00 2001 From: wangqixun Date: Mon, 29 Jan 2024 11:51:37 +0800 Subject: [PATCH 21/26] readme --- README.md | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/README.md b/README.md index 080bdc8f..7c9b789e 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,6 @@
- - - - - - InstantID is a new state-of-the-art tuning-free method to achieve ID-Preserving generation with only single image, supporting various downstream tasks. @@ -44,9 +30,6 @@ InstantID is a new state-of-the-art tuning-free method to achieve ID-Preserving - [2023/12/11] 🔥 We launch the [project page](https://instantid.github.io/). ## Demos - -[![Replicate](https://replicate.com/zsxkib/instant-id/badge)](https://replicate.com/zsxkib/instant-id) -[![ModelScope](https://img.shields.io/badge/modelscope-InstantID-blue)](https://modelscope.cn/studios/instantx/InstantID/summary) ### Stylized Synthesis From 759801b01376f443e8e644f92a54a12f12178f42 Mon Sep 17 00:00:00 2001 From: wangqixun Date: Mon, 29 Jan 2024 11:52:54 +0800 Subject: [PATCH 22/26] readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7c9b789e..c1d68921 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ *corresponding authors -{wanghaofan.ai, wangqixun.ai}@gmail.com +{haofanwang.ai, wangqixun.ai}@gmail.com From 7bce09c84233ffddefe6c75413dd930a2b68df64 Mon Sep 17 00:00:00 2001 From: wangqixun Date: Mon, 29 Jan 2024 11:53:36 +0800 Subject: [PATCH 23/26] readme --- LICENSE | 201 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 201 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..f49a4e16 --- /dev/null +++ b/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. \ No newline at end of file From 0e53c1dd2589865b760bcfb9f42947fc41734a77 Mon Sep 17 00:00:00 2001 From: wangqixun Date: Mon, 29 Jan 2024 11:54:04 +0800 Subject: [PATCH 24/26] readme --- LICENSE | 1 + 1 file changed, 1 insertion(+) diff --git a/LICENSE b/LICENSE index f49a4e16..2689c755 100644 --- a/LICENSE +++ b/LICENSE @@ -1,3 +1,4 @@ + Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ From 1b5223442f73c2da522902e0c4345e82d13211ea Mon Sep 17 00:00:00 2001 From: wangqixun Date: Mon, 29 Jan 2024 11:55:09 +0800 Subject: [PATCH 25/26] readme --- LICENSE | 202 -------------------------------------------------------- 1 file changed, 202 deletions(-) delete mode 100644 LICENSE diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 2689c755..00000000 --- a/LICENSE +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file From 670e4666374873d85b3d76fdf6b76820a922ccb7 Mon Sep 17 00:00:00 2001 From: wangqixun Date: Mon, 29 Jan 2024 11:55:50 +0800 Subject: [PATCH 26/26] readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index c1d68921..c7d3eb2e 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ + [![Replicate](https://replicate.com/zsxkib/instant-id/badge)](https://replicate.com/zsxkib/instant-id) [![ModelScope](https://img.shields.io/badge/modelscope-InstantID-blue)](https://modelscope.cn/studios/instantx/InstantID/summary)