MCPcopy Create free account

hub / github.com/boogu-project/Boogu-Image / functions

Functions286 in github.com/boogu-project/Boogu-Image

↓ 1 callersFunctionbetas_for_alpha_bar
Create a beta schedule that discretizes the given alpha_t_bar function, which defines the cumulative product of (1-beta) over time from t = [
boogu/schedulers/scheduling_dpmsolver_multistep.py:39
↓ 1 callersMethodbog_norm
G: [..., H, W] return: normalized tensor with same shape
boogu/pipelines/boogu/pipeline_boogu.py:3159
↓ 1 callersFunctionbuild_messages
(prompt, lang="zh")
utils/t2i_external_prompt_rewriter.py:196
↓ 1 callersMethodcal_preprocessed_instruction_feat_dim
( self, instruction_feature_configs: Dict[str, Any] )
boogu/models/transformers/transformer_boogu.py:1219
↓ 1 callersFunctioncal_type
Determine the compute mode for the current step. Side effects: - Updates `current['type']` to one of: 'full', 'Taylor', 'ToCa', 'Del
boogu/cache_functions/cal_type.py:10
↓ 1 callersFunctioncheck_pattern
(s, pattern=r"\d+b_a\d+b")
inference_turbo.py:634
↓ 1 callersFunctioncheck_pattern
(s, pattern=r"\d+b_a\d+b")
inference.py:667
↓ 1 callersMethodconvert_model_output
Convert the model output to the corresponding type the DPMSolver/DPMSolver++ algorithm needs. DPM-Solver is designed to discretize an
boogu/schedulers/scheduling_dpmsolver_multistep.py:544
↓ 1 callersFunctioncreate_collage
Create a horizontal collage from a list of images.
inference_turbo.py:1113
↓ 1 callersFunctioncreate_collage
Create a horizontal collage from a list of images.
inference.py:1252
↓ 1 callersFunctioncurrent_platform_name
Return the normalized platform name used for matching mjun0812 wheels.
utils/get_flash_attn.py:92
↓ 1 callersFunctiondeduplicate_wheels
Keep the first wheel per website key; JSON is expected newest-first.
utils/get_flash_attn.py:240
↓ 1 callersFunctionderivative_approximation
Build/update Taylor coefficients from the latest feature tensor. Args: cache_dic: Global cache dict storing per-stream/layer/module
boogu/taylorseer_utils/__init__.py:50
↓ 1 callersFunctionderivative_approximation_4_double_stream
Build/update Taylor coefficients for double-stream outputs.
boogu/taylorseer_utils/__init__.py:83
↓ 1 callersFunctiondetect_runtime_env
()
utils/get_flash_attn.py:57
↓ 1 callersFunctiondownload_and_install
(url, name)
utils/get_flash_attn.py:305
↓ 1 callersMethoddpm_solver_first_order_update
One step for the first-order DPMSolver (equivalent to DDIM). Args: model_output (`torch.Tensor`): The di
boogu/schedulers/scheduling_dpmsolver_multistep.py:646
↓ 1 callersMethodencode_instruction
r""" Encodes the instruction into text encoder hidden states. Args: instruction (`str` or `List[str]`, *optional*):
boogu/pipelines/boogu/pipeline_boogu.py:2249
↓ 1 callersMethodencode_vae
Encode an image into the VAE latent space. Args: img: The input image tensor to encode. Returns: to
boogu/pipelines/boogu/pipeline_boogu.py:876
↓ 1 callersFunctionextract_mjun_wheels
(items)
utils/get_flash_attn.py:215
↓ 1 callersMethodflat_and_pad_to_seq
Flatten patch tokens and pad to batched sequences.
boogu/models/transformers/transformer_boogu.py:1117
↓ 1 callersFunctionforce_scheduler
Update `cache_dic['cal_threshold']` for the current denoising step. Args: cache_dic: Mutable cache state dict. Expected keys include
boogu/cache_functions/force_scheduler.py:10
↓ 1 callersMethodget_freqs_cis
( axes_dim: Tuple[int, int, int], axes_lens: Tuple[int, int, int], theta: int )
boogu/models/transformers/rope.py:43
↓ 1 callersMethodget_rewrite_system_prompts_list
( self, rewriter_system_prompt_type: str = "default" )
boogu/pipelines/boogu/instruct_reasoner_static_skills.py:332
↓ 1 callersMethodimg_patch_embed_and_refine
Embed image patches and run the refiner blocks.
boogu/models/transformers/transformer_boogu.py:1008
↓ 1 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
boogu/schedulers/scheduling_flow_match_euler_discrete_time_shifting.py:120
↓ 1 callersMethodinitialize_weights
Initialize the weights of the double-stream attention processor. Uses Xavier uniform initialization for linear layers and zero initi
boogu/models/attention_processor.py:84
↓ 1 callersMethodinitialize_weights
Initialize the weights of the double-stream attention processor. Uses Xavier uniform initialization for linear layers and zero initi
boogu/models/attention_processor.py:562
↓ 1 callersMethodinitialize_weights
(self)
boogu/models/embeddings.py:59
↓ 1 callersMethodinitialize_weights
(self)
boogu/models/transformers/transformer_boogu.py:143
↓ 1 callersMethodinitialize_weights
Initialize linear weights and modulation parameters.
boogu/models/transformers/transformer_boogu.py:254
↓ 1 callersMethodinitialize_weights
Initialize linear weights and modulation parameters.
boogu/models/transformers/transformer_boogu.py:545
↓ 1 callersMethodinitialize_weights
Initialize the weights of the model. Uses Xavier uniform initialization for linear layers.
boogu/models/transformers/transformer_boogu.py:989
↓ 1 callersFunctioniter_mjun_assets
Yield asset dicts from either a flat asset list or GitHub release list.
utils/get_flash_attn.py:197
↓ 1 callersMethodload_lora_into_prompt_embedding
This will load the LoRA layers specified in `state_dict` into `prompt_embedding`. Parameters: state_dict (`dict`):
boogu/pipelines/lora_pipeline.py:295
↓ 1 callersMethodload_lora_into_transformer
This will load the LoRA layers specified in `state_dict` into `transformer`. Parameters: state_dict (`dict`):
boogu/pipelines/lora_pipeline.py:363
↓ 1 callersFunctionload_mjun_asset_data
Load pre-fetched mjun0812 asset data from the repository.
utils/get_flash_attn.py:172
↓ 1 callersFunctionload_model
(model_path)
utils/t2i_external_prompt_rewriter.py:210
↓ 1 callersFunctionload_pipeline
# Keep `device_map=None`; no need to set it to `args.device`. # The same applies below (Note: `rewriter` is an external module, so its devi
inference_turbo.py:747
↓ 1 callersFunctionload_pipeline
# Keep `device_map=None`; no need to set it to `args.device`. # The same applies below (Note: `rewriter` is an external module, so its devi
inference.py:843
↓ 1 callersFunctionmain
Main function to run the image generation process.
inference_turbo.py:1128
↓ 1 callersFunctionmain
Main function to run the image generation process.
inference.py:1267
↓ 1 callersFunctionmain
()
utils/quantize_transformer.py:47
↓ 1 callersFunctionmain
()
utils/get_flash_attn.py:367
↓ 1 callersFunctionmain
()
utils/t2i_external_prompt_rewriter.py:271
↓ 1 callersMethodmultistep_dpm_solver_second_order_update
One step for the second-order multistep DPMSolver. Args: model_output_list (`List[torch.Tensor]`): The d
boogu/schedulers/scheduling_dpmsolver_multistep.py:722
↓ 1 callersMethodmultistep_dpm_solver_third_order_update
One step for the third-order multistep DPMSolver. Args: model_output_list (`List[torch.Tensor]`): The di
boogu/schedulers/scheduling_dpmsolver_multistep.py:845
↓ 1 callersFunctionparse_args
Parse command line arguments.
inference_turbo.py:67
↓ 1 callersFunctionparse_args
Parse command line arguments.
inference.py:67
↓ 1 callersFunctionparse_args
()
utils/quantize_transformer.py:13
↓ 1 callersFunctionparse_args
()
utils/t2i_external_prompt_rewriter.py:248
↓ 1 callersFunctionparse_python_tag
(python_raw, free_threaded)
utils/get_flash_attn.py:112
↓ 1 callersFunctionparse_version
(version)
utils/get_flash_attn.py:127
↓ 1 callersFunctionparse_wheel_filename
(filename)
utils/get_flash_attn.py:131
↓ 1 callersMethodprepare_image
Prepare input images for processing by encoding them into the VAE latent space. Args: images: Single image or list of im
boogu/pipelines/boogu/pipeline_boogu.py:934
↓ 1 callersMethodprepare_latents
Prepare the initial latents for the diffusion process. Args: batch_size: The number of images to generate. n
boogu/pipelines/boogu/pipeline_boogu.py:836
↓ 1 callersMethodpreprocess
Preprocess the image input. Args: image (`PipelineImageInput`): The image input, accepted formats are PI
boogu/pipelines/image_processor.py:154
↓ 1 callersMethodpreprocess_instruction_hidden_states
( self, raw_instruction_hidden_states, instruction_feature_configs: Dict[str, Any] )
boogu/models/transformers/transformer_boogu.py:1236
↓ 1 callersMethodprocessing
( self, latents, ref_latents, instruction_embeds, freqs_cis, n
boogu/pipelines/boogu/pipeline_boogu.py:3243
↓ 1 callersFunctionpython_tag_matches
Match exact CPython wheels and compatible abi3 wheels.
utils/get_flash_attn.py:118
↓ 1 callersMethodreset_parameters
Initialize parameters (same logic as RMSNorm)
boogu/ops/simple_layer_norm.py:53
↓ 1 callersMethodreset_parameters
(self)
boogu/ops/triton/layer_norm.py:1186
↓ 1 callersFunctionresolve_default_asset_path
(path)
utils/get_flash_attn.py:165
↓ 1 callersFunctionresolve_torch_dtype
(dtype_name)
utils/quantize_transformer.py:37
↓ 1 callersFunctionretrieve_timesteps
Calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. Handles custom timesteps. Any kwargs
boogu/pipelines/boogu/pipeline_boogu.py:71
↓ 1 callersFunctionrewrite
(model, processor, prompt, lang="zh", max_new_tokens=1024, temperature=0.7)
utils/t2i_external_prompt_rewriter.py:226
↓ 1 callersFunctionrms_norm_fn
( x, weight, bias, residual=None, x1=None, weight1=None, bias1=None, eps=1e-6,
boogu/ops/triton/layer_norm.py:1124
↓ 1 callersFunctionrun
Run the image generation pipeline with the given parameters.
inference_turbo.py:1041
↓ 1 callersFunctionrun
Run the image generation pipeline with the given parameters.
inference.py:1182
↓ 1 callersFunctionsearch_mjun
Search mjun0812 releases using the same parse/filter model as the site.
utils/get_flash_attn.py:257
↓ 1 callersMethodset_custom_rewrite_system_prompts
( self, custom_rewriter_system_prompts_list: List[str] )
boogu/pipelines/boogu/instruct_reasoner_static_skills.py:318
↓ 1 callersMethodset_rewrite_system_prompts_for_step
( self, step: int, rewrite_system_prompts_list: List[Dict[Tuple[str, str], str]] )
boogu/pipelines/boogu/pipeline_boogu.py:710
↓ 1 callersMethodstep
Predict the sample from the previous timestep by reversing the SDE. This function propagates the sample with the multistep DPMSolver.
boogu/schedulers/scheduling_dpmsolver_multistep.py:975
↓ 1 callersFunctiontag_from_github_url
(url)
utils/get_flash_attn.py:235
↓ 1 callersFunctiontaylor_formula
Reconstruct feature estimate using cached Taylor coefficients. Returns: A tensor with the same shape as cached feature tensors for t
boogu/taylorseer_utils/__init__.py:113
↓ 1 callersFunctiontaylor_formula_4_double_stream
Reconstruct double-stream outputs using cached Taylor coefficients.
boogu/taylorseer_utils/__init__.py:131
↓ 1 callersFunctiontry_daoai
Try Dao-AILab official releases (both ABI variants).
utils/get_flash_attn.py:342
↓ 1 callersMethodunload_instruction_rewriter_resources
Unload optional instruction rewriter model/processor references. Safety rules: 1) If `text_instruction_rewriter` (or its `.m
boogu/pipelines/boogu/pipeline_boogu.py:755
Method__call__
( self, instruction: Optional[Union[str, List[str]]] = None, negative_instruction: Opt
boogu/pipelines/boogu/pipeline_boogu.py:2648
Method__call__
( self, *args, use_dmd_student_inference: bool = True, dmd_conditioning_sigma:
boogu/pipelines/boogu/pipeline_boogu_turbo.py:124
Method__call__
Process double-stream self-attention computation with flash attention. Args: attn: Attention module img_hidd
boogu/models/attention_processor.py:305
Method__call__
Process double-stream self-attention computation with PyTorch's scaled_dot_product_attention. Args: attn: Attention modu
boogu/models/attention_processor.py:706
Method__call__
Process attention computation with flash attention. Args: attn: Attention module hidden_states: Hidden state
boogu/models/attention_processor.py:1011
Method__call__
Process attention computation with flash attention. Args: attn: Attention module hidden_states: Hidden state
boogu/models/attention_processor.py:1163
Method__init__
( self, hidden_size, eps=1e-5, dropout_p=0.0, zero_centered_weight=Fal
boogu/ops/simple_layer_norm.py:23
Method__init__
( self, hidden_size, eps=1e-5, dropout_p=0.0, zero_centered_weight=Fal
boogu/ops/triton/layer_norm.py:1164
Method__init__
( self, do_resize: bool = True, vae_scale_factor: int = 16, resample: str = "l
boogu/pipelines/image_processor.py:59
Method__init__
Initialize the Boogu-Image pipeline. Args: transformer: Boogu transformer denoiser for latent prediction. va
boogu/pipelines/boogu/pipeline_boogu.py:172
Method__init__
Initialize the BooguImagePromptTuningPipeline. Args: transformer: Boogu-Image single/dual-stream transformer used as the
boogu/pipelines/boogu/pipeline_boogu.py:3728
Method__init__
(self)
boogu/pipelines/boogu/instruct_reasoner_static_skills.py:8
Method__init__
( self, num_train_timesteps: int = 1000, do_shift: bool = True, dynamic_time_s
boogu/schedulers/scheduling_flow_match_euler_discrete_time_shifting.py:71
Method__init__
( self, num_train_timesteps: int = 1000, beta_start: float = 0.0001, beta_end:
boogu/schedulers/scheduling_dpmsolver_multistep.py:210
Method__init__
Initialize the double-stream attention processor.
boogu/models/attention_processor.py:43
Method__init__
Initialize the double-stream attention processor.
boogu/models/attention_processor.py:522
Method__init__
Initialize the attention processor.
boogu/models/attention_processor.py:894
Method__init__
( self, in_channels: int, time_embed_dim: int, act_fn: str = "silu", o
boogu/models/embeddings.py:25
Method__init__
( self, theta: int, axes_dim: Tuple[int, int, int], axes_lens: Tuple[int, int,
boogu/models/transformers/rope.py:224
Method__init__
(self, theta: int, dim: int, num_trainable_prompt_tokens: int)
boogu/models/transformers/rope.py:465
Method__init__
Initialize the transformer block.
boogu/models/transformers/transformer_boogu.py:194
Method__init__
Initialize the double stream transformer block.
boogu/models/transformers/transformer_boogu.py:402
← previousnext →101–200 of 286, ranked by callers