SYMBOL INDEX (83 symbols across 10 files) FILE: gradio_demo/app.py function generate_image (line 67) | def generate_image(upload_images, prompt, negative_prompt, aspect_ratio_... function swap_to_gallery (line 113) | def swap_to_gallery(images): function upload_example_to_gallery (line 116) | def upload_example_to_gallery(images, prompt, style, negative_prompt): function remove_back_to_files (line 119) | def remove_back_to_files(): function remove_tips (line 122) | def remove_tips(): function randomize_seed_fn (line 125) | def randomize_seed_fn(seed: int, randomize_seed: bool) -> int: function apply_style (line 130) | def apply_style(style_name: str, positive: str, negative: str = ""): function get_image_path_list (line 134) | def get_image_path_list(folder_name): function get_example (line 139) | def get_example(): FILE: gradio_demo/app_v2.py function generate_image (line 78) | def generate_image( function swap_to_gallery (line 172) | def swap_to_gallery(images): function upload_example_to_gallery (line 175) | def upload_example_to_gallery(images, prompt, style, negative_prompt): function remove_back_to_files (line 178) | def remove_back_to_files(): function change_doodle_space (line 181) | def change_doodle_space(use_doodle): function remove_tips (line 187) | def remove_tips(): function randomize_seed_fn (line 190) | def randomize_seed_fn(seed: int, randomize_seed: bool) -> int: function apply_style (line 195) | def apply_style(style_name: str, positive: str, negative: str = "") -> t... function get_image_path_list (line 199) | def get_image_path_list(folder_name): function get_example (line 204) | def get_example(): FILE: photomaker/insightface_package.py class FaceAnalysis2 (line 9) | class FaceAnalysis2(FaceAnalysis): method get (line 14) | def get(self, img, max_num=0, det_size=(640, 640)): function analyze_faces (line 20) | def analyze_faces(face_analysis: FaceAnalysis, img_data: np.ndarray, det... FILE: photomaker/model.py class MLP (line 19) | class MLP(nn.Module): method __init__ (line 20) | def __init__(self, in_dim, out_dim, hidden_dim, use_residual=True): method forward (line 30) | def forward(self, x): class FuseModule (line 41) | class FuseModule(nn.Module): method __init__ (line 42) | def __init__(self, embed_dim): method fuse_fn (line 48) | def fuse_fn(self, prompt_embeds, id_embeds): method forward (line 55) | def forward( class PhotoMakerIDEncoder (line 89) | class PhotoMakerIDEncoder(CLIPVisionModelWithProjection): method __init__ (line 90) | def __init__(self): method forward (line 95) | def forward(self, id_pixel_values, prompt_embeds, class_tokens_mask): FILE: photomaker/model_v2.py class MLP (line 21) | class MLP(nn.Module): method __init__ (line 22) | def __init__(self, in_dim, out_dim, hidden_dim, use_residual=True): method forward (line 32) | def forward(self, x): class QFormerPerceiver (line 43) | class QFormerPerceiver(nn.Module): method __init__ (line 44) | def __init__(self, id_embeddings_dim, cross_attention_dim, num_tokens,... method forward (line 67) | def forward(self, x, last_hidden_state): class FuseModule (line 77) | class FuseModule(nn.Module): method __init__ (line 78) | def __init__(self, embed_dim): method fuse_fn (line 84) | def fuse_fn(self, prompt_embeds, id_embeds): method forward (line 91) | def forward( class PhotoMakerIDEncoder_CLIPInsightfaceExtendtoken (line 126) | class PhotoMakerIDEncoder_CLIPInsightfaceExtendtoken(CLIPVisionModelWith... method __init__ (line 127) | def __init__(self, id_embeddings_dim=512): method forward (line 142) | def forward(self, id_pixel_values, prompt_embeds, class_tokens_mask, i... FILE: photomaker/pipeline.py function rescale_noise_cfg (line 72) | def rescale_noise_cfg(noise_cfg, noise_pred_text, guidance_rescale=0.0): function retrieve_timesteps (line 87) | def retrieve_timesteps( class PhotoMakerStableDiffusionXLPipeline (line 146) | class PhotoMakerStableDiffusionXLPipeline(StableDiffusionXLPipeline): method load_photomaker_adapter (line 148) | def load_photomaker_adapter( method encode_prompt_with_trigger_word (line 254) | def encode_prompt_with_trigger_word( method __call__ (line 490) | def __call__( FILE: photomaker/pipeline_controlnet.py function rescale_noise_cfg (line 80) | def rescale_noise_cfg(noise_cfg, noise_pred_text, guidance_rescale=0.0): function retrieve_timesteps (line 95) | def retrieve_timesteps( class PhotoMakerStableDiffusionXLControlNetPipeline (line 154) | class PhotoMakerStableDiffusionXLControlNetPipeline(StableDiffusionXLCon... method load_photomaker_adapter (line 156) | def load_photomaker_adapter( method encode_prompt_with_trigger_word (line 261) | def encode_prompt_with_trigger_word( method __call__ (line 498) | def __call__( FILE: photomaker/pipeline_t2i_adapter.py function rescale_noise_cfg (line 74) | def rescale_noise_cfg(noise_cfg, noise_pred_text, guidance_rescale=0.0): function retrieve_timesteps (line 89) | def retrieve_timesteps( function _preprocess_adapter_image (line 148) | def _preprocess_adapter_image(image, height, width): class PhotoMakerStableDiffusionXLAdapterPipeline (line 175) | class PhotoMakerStableDiffusionXLAdapterPipeline(StableDiffusionXLAdapte... method load_photomaker_adapter (line 177) | def load_photomaker_adapter( method encode_prompt_with_trigger_word (line 282) | def encode_prompt_with_trigger_word( method interrupt (line 518) | def interrupt(self): method __call__ (line 522) | def __call__( FILE: photomaker/resampler.py class FacePerceiverResampler (line 13) | class FacePerceiverResampler(torch.nn.Module): method __init__ (line 14) | def __init__( method forward (line 41) | def forward(self, latents, x): function FeedForward (line 50) | def FeedForward(dim, mult=4): function reshape_tensor (line 60) | def reshape_tensor(x, heads): class PerceiverAttention (line 71) | class PerceiverAttention(nn.Module): method __init__ (line 72) | def __init__(self, *, dim, dim_head=64, heads=8): method forward (line 86) | def forward(self, x, latents): class Resampler (line 118) | class Resampler(nn.Module): method __init__ (line 119) | def __init__( method forward (line 164) | def forward(self, x): function masked_mean (line 187) | def masked_mean(t, *, dim, mask=None): FILE: predict.py function download_weights (line 44) | def download_weights(url, dest, extract=True): function apply_style (line 56) | def apply_style(style_name: str, positive: str, negative: str = "") -> t... class Predictor (line 60) | class Predictor(BasePredictor): method setup (line 61) | def setup(self) -> None: method predict (line 103) | def predict( method run_safety_checker (line 230) | def run_safety_checker(self, image):