MCPcopy Create free account

hub / github.com/Fanghua-Yu/SUPIR / functions

Functions867 in github.com/Fanghua-Yu/SUPIR

↓ 1 callersMethod__init__
(self, sigma_min=0.02, sigma_max=80.0, rho=7.0)
sgm/modules/diffusionmodules/discretizer.py:29
↓ 1 callersMethod__init__
(self, weighting_config, scaling_config)
sgm/modules/diffusionmodules/denoiser.py:7
↓ 1 callersMethod__init__
(self)
sgm/modules/autoencoding/regularizers/__init__.py:12
↓ 1 callersMethod__init__
( self, decoder_config, perceptual_weight=1.0, latent_weight=1.0, scal
sgm/modules/autoencoding/losses/__init__.py:20
↓ 1 callersFunction_add_speaker_and_signal
Add speaker and start/end signal on each round.
llava/train/train.py:281
↓ 1 callersMethod_apply_prefix_mask
(self, attn_bias: torch.Tensor, prefix_mask: torch.Tensor)
llava/model/language_model/mpt/modeling_mpt.py:119
↓ 1 callersMethod_apply_sequence_id
(self, attn_bias: torch.Tensor, sequence_id: torch.LongTensor)
llava/model/language_model/mpt/modeling_mpt.py:134
↓ 1 callersMethod_attn_bias
(self, device, dtype, attention_mask: Optional[torch.ByteTensor]=None, prefix_mask: Optional[torch.ByteTensor]
llava/model/language_model/mpt/modeling_mpt.py:88
↓ 1 callersMethod_compute_answer_scores
compute the accuracy (soft score) of human answers
llava/eval/m4c_evaluator.py:225
↓ 1 callersFunction_convert_bloom_causal_lm_to_prefix_lm
Converts a BLOOM Causal LM to a Prefix LM. Supported HuggingFace model classes: - `BloomForCausalLM` See `convert_hf_causal_lm_to_pr
llava/model/language_model/mpt/hf_prefixlm_converter.py:113
↓ 1 callersFunction_convert_gpt_causal_lm_to_prefix_lm
Converts a GPT-style Causal LM to a Prefix LM. Supported HuggingFace model classes: - `GPT2LMHeadModel` - `GPTNeoForCausalLM`
llava/model/language_model/mpt/hf_prefixlm_converter.py:29
↓ 1 callersFunction_convert_opt_causal_lm_to_prefix_lm
Converts an OPT Causal LM to a Prefix LM. Supported HuggingFace model classes: - `OPTForCausalLM` See `convert_hf_causal_lm_to_prefi
llava/model/language_model/mpt/hf_prefixlm_converter.py:269
↓ 1 callersMethod_init_first_stage
(self, config)
sgm/models/diffusion.py:105
↓ 1 callersMethod_make_attn
(self)
sgm/modules/diffusionmodules/model.py:698
↓ 1 callersMethod_make_conv
(self)
sgm/modules/diffusionmodules/model.py:704
↓ 1 callersMethod_make_resblock
(self)
sgm/modules/diffusionmodules/model.py:701
↓ 1 callersFunction_mask_targets
(target, tokenized_lens, speakers)
llava/train/train.py:270
↓ 1 callersFunction_normal_init_
(std, mean=0.0)
llava/model/language_model/mpt/param_init_fns.py:121
↓ 1 callersMethod_save
(self, output_dir: Optional[str] = None, state_dict=None)
llava/train/llava_trainer.py:171
↓ 1 callersFunctionadapt_tokenizer_for_denoising
Adds sentinel tokens and padding token (if missing). Expands the tokenizer vocabulary to include sentinel tokens used in mixture-of-denoiser
llava/model/language_model/mpt/adapt_tokenizer.py:6
↓ 1 callersMethodadd_restored_face
(self, restored_face, input_face=None)
SUPIR/utils/face_restoration_helper.py:354
↓ 1 callersMethodadd_tile
(self, tile, layer)
SUPIR/utils/tilevae.py:607
↓ 1 callersFunctionappend_zero
(x)
sgm/util.py:188
↓ 1 callersFunctionapply_delta
(base_model_path, target_model_path, delta_path)
llava/model/apply_delta.py:13
↓ 1 callersMethodattention
(self, h_: torch.Tensor)
sgm/modules/diffusionmodules/model.py:228
↓ 1 callersFunctionattn_bias_shape
(attn_impl, n_heads, seq_len, alibi, prefix_lm, causal, use_sequence_id)
llava/model/language_model/mpt/attention.py:258
↓ 1 callersFunctionattn_forward
(self, h_)
SUPIR/utils/tilevae.py:292
↓ 1 callersFunctionattn_forward_new
(self, h_)
SUPIR/utils/tilevae.py:135
↓ 1 callersFunctionattn_forward_new_pt2_0
(self, hidden_states,)
SUPIR/utils/tilevae.py:171
↓ 1 callersFunctionavg_pool_nd
Create a 1D, 2D, or 3D average pooling module.
sgm/modules/diffusionmodules/util.py:299
↓ 1 callersFunctionbuild_alibi_bias
(n_heads, seq_len, full=False, alibi_bias_max=8, device=None, dtype=None)
llava/model/language_model/mpt/attention.py:292
↓ 1 callersFunctionbuild_attn_bias
(attn_impl, attn_bias, n_heads, seq_len, causal=False, alibi=False, alibi_bias_max=8)
llava/model/language_model/mpt/attention.py:272
↓ 1 callersFunctionbuild_demo
(embed_mode)
llava/serve/gradio_web_server.py:308
↓ 1 callersFunctionbuild_sampling
Build the sampling part of a task queue @param task_queue: the target task queue @param net: the network @param is_decoder: currently
SUPIR/utils/tilevae.py:405
↓ 1 callersFunctionbuild_task_queue
Build a single task queue for the encoder or decoder @param net: the VAE decoder or encoder network @param is_decoder: currently building
SUPIR/utils/tilevae.py:472
↓ 1 callersMethodcalculate_adaptive_weight
(self, nll_loss, g_loss, last_layer=None)
sgm/modules/autoencoding/losses/__init__.py:137
↓ 1 callersFunctioncapitalizeFirstChar
(str)
llava/eval/webpage/script.js:41
↓ 1 callersFunctionconsolidate_ckpt
(src_path, dst_path)
llava/model/consolidate.py:13
↓ 1 callersFunctioncreate_custom_forward
(module)
llava/model/language_model/mpt/hf_prefixlm_converter.py:207
↓ 1 callersFunctioncreate_data_loader
(questions, image_folder, tokenizer, image_processor, model_config, batch_size=1, num_workers=4)
llava/eval/model_vqa_loader.py:65
↓ 1 callersFunctioncreate_model
(config_path)
SUPIR/util.py:27
↓ 1 callersFunctioncrop_valid_region
Crop the valid region from the tile @param x: input tile @param input_bbox: original input bounding box @param target_bbox: output bo
SUPIR/utils/tilevae.py:556
↓ 1 callersMethoddecode
(self, z: Any)
sgm/models/autoencoder.py:173
↓ 1 callersFunctiondefault
(val, d)
sgm/util.py:147
↓ 1 callersMethoddenoise
(self, x, denoiser, sigma, cond, uc, control_scale=1.0)
sgm/modules/diffusionmodules/sampling.py:429
↓ 1 callersMethoddenoise
(self, x, denoiser, sigma, cond, uc, control_scale=1.0)
sgm/modules/diffusionmodules/sampling.py:543
↓ 1 callersFunctiondownload
(url, local_path, chunk_size=1024)
sgm/modules/autoencoding/lpips/util.py:16
↓ 1 callersMethodema_scope
(self, context=None)
sgm/models/diffusion.py:177
↓ 1 callersFunctionenable_tf32
()
SUPIR/utils/devices.py:52
↓ 1 callersMethodencode
(self, x: Any, return_reg_log: bool = False)
sgm/models/autoencoder.py:166
↓ 1 callersMethodencode_first_stage
(self, x)
SUPIR/models/SUPIR_model.py:42
↓ 1 callersMethodencode_with_transformer
(self, text)
sgm/modules/encoders/modules.py:568
↓ 1 callersMethodencode_with_transformer
(self, text)
sgm/modules/encoders/modules.py:658
↓ 1 callersMethodencode_with_vision_transformer
(self, img)
sgm/modules/encoders/modules.py:806
↓ 1 callersMethodestimate_group_norm
(self, z, task_queue, color_fix)
SUPIR/utils/tilevae.py:777
↓ 1 callersFunctioneval_model
(args)
llava/eval/model_vqa_loader.py:72
↓ 1 callersFunctioneval_model
(args)
llava/eval/model_vqa_mmbench.py:54
↓ 1 callersFunctioneval_model
(args)
llava/eval/model_vqa_science.py:29
↓ 1 callersFunctioneval_model
(model_name, questions_file, answers_file)
llava/eval/model_qa.py:33
↓ 1 callersFunctioneval_model
(args)
llava/eval/run_llava.py:26
↓ 1 callersFunctioneval_model
(args)
llava/eval/model_vqa.py:29
↓ 1 callersFunctioneval_pope
(answers, label_file)
llava/eval/eval_pope.py:5
↓ 1 callersMethodeval_pred_list
(self, pred_list)
llava/eval/m4c_evaluator.py:248
↓ 1 callersFunctionfind_all_linear_names
(model)
llava/train/train.py:163
↓ 1 callersMethodforward
(self, x)
sgm/modules/diffusionmodules/openaimodel.py:131
↓ 1 callersMethodforward
(self, x)
sgm/modules/diffusionmodules/util.py:269
↓ 1 callersMethodforward
(self, x, t=None, context=None)
sgm/modules/diffusionmodules/model.py:429
↓ 1 callersMethodfreeze
(self)
sgm/modules/encoders/modules.py:376
↓ 1 callersMethodfreeze
(self)
sgm/modules/encoders/modules.py:419
↓ 1 callersMethodfreeze
(self)
sgm/modules/encoders/modules.py:475
↓ 1 callersMethodfreeze
(self)
sgm/modules/encoders/modules.py:552
↓ 1 callersMethodfreeze
(self)
sgm/modules/encoders/modules.py:648
↓ 1 callersMethodfreeze
(self)
sgm/modules/encoders/modules.py:747
↓ 1 callersMethodfrom_str
(cls, name)
llava/serve/controller.py:33
↓ 1 callersMethodfrom_tile
create a function from a single tile without summary
SUPIR/utils/tilevae.py:651
↓ 1 callersFunctionfused_init_helper_
(module: nn.Module, init_fn_)
llava/model/language_model/mpt/param_init_fns.py:17
↓ 1 callersFunctiongen_slopes
(n_heads, alibi_bias_max=8, device=None)
llava/model/language_model/mpt/attention.py:283
↓ 1 callersFunctiongenerate_roughly_equally_spaced_steps
( num_substeps: int, max_step: int )
sgm/modules/diffusionmodules/discretizer.py:11
↓ 1 callersMethodgenerate_stream
(self, params)
llava/serve/model_worker.py:123
↓ 1 callersMethodgenerate_stream_gate
(self, params)
llava/serve/model_worker.py:194
↓ 1 callersMethodget_anls
(self, s1, s2)
llava/eval/m4c_evaluator.py:282
↓ 1 callersFunctionget_args
()
llava/eval/eval_textvqa.py:9
↓ 1 callersFunctionget_args
()
llava/eval/eval_science_qa_gpt4.py:9
↓ 1 callersFunctionget_args
()
llava/eval/eval_science_qa.py:8
↓ 1 callersFunctionget_args
()
llava/eval/eval_science_qa_gpt4_requery.py:9
↓ 1 callersMethodget_autoencoder_params
(self)
sgm/models/autoencoder.py:150
↓ 1 callersFunctionget_center_face
(det_faces, h=0, w=0, center=None)
SUPIR/utils/face_restoration_helper.py:35
↓ 1 callersFunctionget_chunk
(lst, n, k)
llava/eval/model_vqa_loader.py:25
↓ 1 callersFunctionget_chunk
(lst, n, k)
llava/eval/model_vqa_mmbench.py:28
↓ 1 callersFunctionget_chunk
(lst, n, k)
llava/eval/model_vqa_science.py:24
↓ 1 callersMethodget_discriminator_params
(self)
sgm/models/autoencoder.py:159
↓ 1 callersFunctionget_eval
(content: str, max_tokens: int)
llava/eval/eval_gpt_review_bench.py:11
↓ 1 callersFunctionget_eval
(content: str, max_tokens: int)
llava/eval/eval_gpt_review_visual.py:11
↓ 1 callersMethodget_face_landmarks_5_dlib
(self, only_keep_largest=False, scale=1)
SUPIR/utils/face_restoration_helper.py:156
↓ 1 callersMethodget_inverse_affine
Get inverse affine matrix.
SUPIR/utils/face_restoration_helper.py:342
↓ 1 callersFunctionget_largest_face
(det_faces, h, w)
SUPIR/utils/face_restoration_helper.py:14
↓ 1 callersMethodget_loss
(self, model_output, target, w)
sgm/modules/diffusionmodules/loss.py:58
↓ 1 callersFunctionget_mm_adapter_state_maybe_zero_3
(named_params, keys_to_match)
llava/train/train.py:157
↓ 1 callersFunctionget_mm_adapter_state_maybe_zero_3
(named_params, keys_to_match)
llava/train/llava_trainer.py:27
↓ 1 callersFunctionget_modality_length_grouped_indices
(lengths, batch_size, world_size, generator=None)
llava/train/llava_trainer.py:55
← previousnext →201–300 of 867, ranked by callers