mirror of https://github.com/InstantID/InstantID
fix typos
parent
b17d19da6f
commit
dc9f95997e
|
|
@ -23,7 +23,7 @@ InstantID is a new state-of-the-art tuning-free method to achieve ID-Preserving
|
|||
<img src='assets/applications.png'>
|
||||
|
||||
## Release
|
||||
- [2024/02/01] 🔥 We have supported LCM acceleration and Multi-ControlNets on our [Huggingface Spaces Demo](https://huggingface.co/spaces/InstantX/InstantID)!
|
||||
- [2024/02/01] 🔥 We have supported LCM acceleration and Multi-ControlNets on our [Huggingface Spaces Demo](https://huggingface.co/spaces/InstantX/InstantID)! Our depth estimator is supported by [Depth-Anything](https://github.com/LiheYoung/Depth-Anything).
|
||||
- [2024/01/31] 🔥 [OneDiff](https://github.com/siliconflow/onediff?tab=readme-ov-file#easy-to-use) now supports accelerated inference for InstantID, check [this](https://github.com/siliconflow/onediff/blob/main/benchmarks/instant_id.py) for details!
|
||||
- [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)!
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
import sys
|
||||
|
||||
sys.path.append("./")
|
||||
|
||||
from typing import Tuple
|
||||
|
||||
import os
|
||||
import cv2
|
||||
import math
|
||||
|
|
@ -292,7 +293,7 @@ def main(pretrained_model_name_or_path="wangqixun/YamerMIX_v8", enable_lcm_arg=F
|
|||
|
||||
def apply_style(
|
||||
style_name: str, positive: str, negative: str = ""
|
||||
) -> tuple[str, str]:
|
||||
) -> Tuple[str, str]:
|
||||
p, n = styles.get(style_name, styles[DEFAULT_STYLE_NAME])
|
||||
return p.replace("{prompt}", positive), n + " " + negative
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
import sys
|
||||
sys.path.append('./')
|
||||
|
||||
from typing import Tuple
|
||||
|
||||
import os
|
||||
import cv2
|
||||
import math
|
||||
|
|
@ -205,7 +207,7 @@ def main(pretrained_model_name_or_path="wangqixun/YamerMIX_v8", enable_lcm_arg=F
|
|||
input_image = Image.fromarray(res)
|
||||
return input_image
|
||||
|
||||
def apply_style(style_name: str, positive: str, negative: str = "") -> tuple[str, str]:
|
||||
def apply_style(style_name: str, positive: str, negative: str = "") -> Tuple[str, str]:
|
||||
p, n = styles.get(style_name, styles[DEFAULT_STYLE_NAME])
|
||||
return p.replace("{prompt}", positive), n + ' ' + negative
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue