Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytedance/InfiniteYou
/ functions
Functions
22 in github.com/bytedance/InfiniteYou
⨍
Functions
22
◇
Types & classes
5
↓ 3 callers
Function
reshape_tensor
(x, heads)
pipelines/resampler.py:20
↓ 2 callers
Method
_detect_face
(self, id_image_cv2)
pipelines/pipeline_infu_flux.py:232
↓ 2 callers
Method
load_loras
(self, loras)
pipelines/pipeline_infu_flux.py:220
↓ 2 callers
Function
prepare_pipeline
(model_version, enable_realism, enable_anti_blur)
app.py:61
↓ 1 callers
Function
FeedForward
(dim, mult=4)
pipelines/resampler.py:10
↓ 1 callers
Method
__init__
( self, dim=1024, depth=8, dim_head=64, heads=16, num_queries=
pipelines/resampler.py:79
↓ 1 callers
Function
calculate_shift
( image_seq_len, base_seq_len: int = 256, max_seq_len: int = 4096, base_shift: float = 0.5,
pipelines/pipeline_flux_infusenet.py:39
↓ 1 callers
Function
download_models
()
app.py:46
↓ 1 callers
Function
draw_kps
(image_pil, kps, color_list=[(255,0,0), (0,255,0), (0,0,255), (255,255,0), (255,0,255)])
pipelines/pipeline_infu_flux.py:58
↓ 1 callers
Function
extract_arcface_bgr_embedding
(in_image, landmark, arcface_model=None, in_settings=None)
pipelines/pipeline_infu_flux.py:87
↓ 1 callers
Function
generate_image
( input_image, control_image, prompt, seed, width, height, guidance_scale,
app.py:112
↓ 1 callers
Function
main
()
test.py:24
↓ 1 callers
Function
resize_and_pad_image
(source_img, target_img_size)
pipelines/pipeline_infu_flux.py:99
↓ 1 callers
Function
retrieve_timesteps
r""" Calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. Handles custom timesteps. Any kwa
pipelines/pipeline_flux_infusenet.py:53
↓ 1 callers
Function
seed_everything
Set random seed. Args: seed (int): Seed to be used. deterministic (bool): Whether to set the deterministic option for
pipelines/pipeline_infu_flux.py:36
Method
__call__
( self, id_image: Image.Image, # PIL.Image.Image (RGB) prompt: str, control_i
pipelines/pipeline_infu_flux.py:244
Method
__call__
r""" Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str]`, *optional*):
pipelines/pipeline_flux_infusenet.py:114
Method
__init__
( self, base_model_path, infu_model_path, insightface_root_
pipelines/pipeline_infu_flux.py:127
Method
__init__
(self, *, dim, dim_head=64, heads=8)
pipelines/resampler.py:32
Method
forward
Args: x (torch.Tensor): image features shape (b, n1, D) latent (torch.Tensor): latent features
pipelines/resampler.py:46
Method
forward
(self, x)
pipelines/resampler.py:110
Function
generate_examples
(id_image, control_image, prompt_text, seed, enable_realism, enable_anti_blur, model_version)
app.py:155