MCPcopy Create free account

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

Functions867 in github.com/Fanghua-Yu/SUPIR

↓ 3 callersFunctionto_neg_log_sigma
(sigma)
sgm/modules/diffusionmodules/sampling_utils.py:43
↓ 3 callersFunctionupdateQuestionSelect
(question_id)
llava/eval/webpage/script.js:48
↓ 3 callersFunctionvote_last_response
(state, vote_type, model_selector, request: gr.Request)
llava/serve/gradio_web_server.py:83
↓ 2 callersFunctionNormalize
(in_channels)
sgm/modules/attention.py:122
↓ 2 callersFunctionPIL2Tensor
PIL.Image -> Tensor[C, H, W], RGB, [-1, 1]
SUPIR/util.py:60
↓ 2 callersFunctionTensor2PIL
Tensor[C, H, W], RGB, [-1, 1] -> PIL.Image
SUPIR/util.py:87
↓ 2 callersMethod__init__
(self, normalized_shape, eps=1e-05, weight=True, dtype=None, device=None)
llava/model/language_model/mpt/norm.py:35
↓ 2 callersMethod__init__
(self, diffusion_model, compile_model: bool = False, dtype=torch.float32)
sgm/modules/diffusionmodules/wrappers.py:69
↓ 2 callersFunction_bwd_kernel_one_col_block
(start_n, Q, K, V, Bias, DO, DQ, DK, DV, LSE, D, softmax_scale, stride_qm, stride_kn, stride_vn, stride_bm, st
llava/model/language_model/mpt/flash_attn_triton.py:184
↓ 2 callersFunction_bwd_store_dk_dv
(dk_ptrs, dv_ptrs, dk, dv, offs_n, offs_d, seqlen_k, headdim, EVEN_M: tl.constexpr, EVEN_N: tl.constexpr, EVEN
llava/model/language_model/mpt/flash_attn_triton.py:168
↓ 2 callersFunction_get_attn_modules
Helper that gets a list of the model's attention modules. Each module has a `bias` buffer used for causal masking. The Prefix LM conv
llava/model/language_model/mpt/hf_prefixlm_converter.py:45
↓ 2 callersFunction_normal_param_init_fn_
(module: nn.Module, std: float, n_layers: int, d_model: Optional[int]=None, init_div_is_residual: Union[int, f
llava/model/language_model/mpt/param_init_fns.py:124
↓ 2 callersFunction_reset_is_causal
(num_query_tokens: int, num_key_tokens: int, original_is_causal: bool)
llava/model/language_model/mpt/attention.py:12
↓ 2 callersMethod_set_config_defaults
(self, config, config_defaults)
llava/model/language_model/mpt/configuration_mpt.py:90
↓ 2 callersFunction_tokenize_fn
Tokenize a list of strings.
llava/train/train.py:243
↓ 2 callersMethod_validate_config
(self)
llava/model/language_model/mpt/configuration_mpt.py:96
↓ 2 callersMethod_validation_step
(self, batch, batch_idx, postfix="")
sgm/models/autoencoder.py:226
↓ 2 callersFunctionadaptive_instance_normalization
Adaptive instance normalization. Adjust the reference features to have the similar color and illuminations as those in the degradate features.
SUPIR/utils/colorfix.py:59
↓ 2 callersFunctionadopt_weight
(weight, global_step, threshold=0, value=0.0)
sgm/modules/autoencoding/losses/__init__.py:13
↓ 2 callersMethodalign_warp_face
Align and warp faces with face template.
SUPIR/utils/face_restoration_helper.py:310
↓ 2 callersFunctionauto_upgrade
(config)
llava/model/utils.py:4
↓ 2 callersFunctionbuild_vision_projector
(config, delay_load=False, **kwargs)
llava/model/multimodal_projector/builder.py:33
↓ 2 callersFunctionbuild_vision_tower
(vision_tower_cfg, **kwargs)
llava/model/multimodal_encoder/builder.py:5
↓ 2 callersFunctioncalc_mean_std
Calculate mean and std for adaptive_instance_normalization. Args: feat (Tensor): 4D tensor. eps (float): A small value added to th
SUPIR/utils/colorfix.py:44
↓ 2 callersFunctioncheck_valid_inputs
(*tensors, valid_dtypes=[torch.float16, torch.bfloat16])
llava/model/language_model/mpt/attention.py:64
↓ 2 callersMethodclean_all
(self)
SUPIR/utils/face_restoration_helper.py:507
↓ 2 callersFunctionclone_task_queue
Clone a task queue @param task_queue: the task queue to be cloned @return: the cloned task queue
SUPIR/utils/tilevae.py:502
↓ 2 callersMethodcopy_to
(self, model)
sgm/modules/ema.py:56
↓ 2 callersFunctioncount_flops_attn
A counter for the `thop` package to count the operations in an attention operation. Meant to be used like: macs, params = thop.pr
sgm/modules/diffusionmodules/openaimodel.py:411
↓ 2 callersFunctioncustom_group_norm
Custom group norm with fixed mean and var @param input: input tensor @param num_groups: number of groups. by default, num_groups = 32
SUPIR/utils/tilevae.py:524
↓ 2 callersMethoddecode_first_stage
(self, z)
sgm/models/diffusion.py:118
↓ 2 callersMethoddict
(self)
llava/conversation.py:201
↓ 2 callersFunctiondisplayAnswers
(index)
llava/eval/webpage/script.js:116
↓ 2 callersMethodema_scope
(self, context=None)
sgm/models/autoencoder.py:84
↓ 2 callersMethodencode_first_stage
(self, x)
sgm/models/diffusion.py:125
↓ 2 callersMethodencode_first_stage_with_denoise
(self, x, use_sample=True, is_stage1=False)
SUPIR/models/SUPIR_model.py:49
↓ 2 callersMethodencode_images
(self, images)
llava/model/llava_arch.py:90
↓ 2 callersFunctioneval_single
(annotation_file, result_file)
llava/eval/eval_textvqa.py:35
↓ 2 callersFunctionextract_into_tensor
(a, t, x_shape)
sgm/modules/diffusionmodules/util.py:35
↓ 2 callersMethodfeature_select
(self, image_forward_outs)
llava/model/multimodal_encoder/clip_encoder.py:35
↓ 2 callersMethodfind_in_interval
(self, n)
sgm/lr_scheduler.py:76
↓ 2 callersMethodforward
(self, inp)
sgm/modules/encoders/modules.py:305
↓ 2 callersFunctiongaussian_weights
Generates a gaussian mask of weights for tile contributions
sgm/modules/diffusionmodules/sampling.py:733
↓ 2 callersMethodget_best_tile_size
Get the best tile size for GPU memory
SUPIR/utils/tilevae.py:702
↓ 2 callersFunctionget_chunk
(lst, n, k)
llava/eval/model_vqa.py:24
↓ 2 callersFunctionget_ckpt_path
(name, root, check=False)
sgm/modules/autoencoding/lpips/util.py:34
↓ 2 callersFunctionget_conv_log_filename
()
llava/serve/gradio_web_server.py:32
↓ 2 callersFunctionget_cuda_device_string
()
SUPIR/utils/devices.py:19
↓ 2 callersMethodget_face_landmarks_5
(self, only_keep_largest=False, only_center_face=Fal
SUPIR/utils/face_restoration_helper.py:187
↓ 2 callersMethodget_input
(self, batch)
sgm/models/diffusion.py:112
↓ 2 callersFunctionget_model_list
()
llava/serve/gradio_web_server.py:38
↓ 2 callersFunctionget_pred_idx
Get the index (e.g. 2) from the prediction (e.g. 'C')
llava/eval/eval_science_qa_gpt4.py:28
↓ 2 callersFunctionget_pred_idx
Get the index (e.g. 2) from the prediction (e.g. 'C')
llava/eval/eval_science_qa.py:28
↓ 2 callersMethodget_queue_length
(self)
llava/serve/model_worker.py:108
↓ 2 callersFunctionget_state_dict
(d)
SUPIR/util.py:11
↓ 2 callersMethodget_status
(self)
llava/serve/model_worker.py:115
↓ 2 callersMethodget_trainable_parameters
(self)
sgm/modules/autoencoding/regularizers/__init__.py:19
↓ 2 callersMethodget_variables
(self, sigma, next_sigma, previous_sigma=None)
sgm/modules/diffusionmodules/sampling.py:294
↓ 2 callersMethodget_worker_address
(self, model_name: str)
llava/serve/controller.py:120
↓ 2 callersFunctionhas_mps
()
SUPIR/utils/devices.py:12
↓ 2 callersMethodinit_from_ckpt
( self, path: str, ignore_keys: Union[Tuple, list, ListConfig] = tuple() )
sgm/models/autoencoder.py:49
↓ 2 callersMethodinitialize
(self, input)
sgm/modules/autoencoding/lpips/util.py:58
↓ 2 callersMethodinstantiate_optimizer_from_config
(self, params, lr, cfg)
sgm/models/autoencoder.py:106
↓ 2 callersFunctionis_none
(value)
llava/eval/model_vqa_mmbench.py:33
↓ 2 callersFunctionload_file_from_url
Load file form http url, will download models if necessary. Ref:https://github.com/1adrianb/face-alignment/blob/master/face_alignment/utils.py
SUPIR/utils/file.py:50
↓ 2 callersFunctionload_image_from_base64
(image)
llava/mm_utils.py:10
↓ 2 callersFunctionmake_beta_schedule
( schedule, n_timestep, linear_start=1e-4, linear_end=2e-2, )
sgm/modules/diffusionmodules/util.py:19
↓ 2 callersFunctionmd5_hash
(path)
sgm/modules/autoencoding/lpips/util.py:28
↓ 2 callersMethodmode
(self)
sgm/modules/distributions/distributions.py:71
↓ 2 callersFunctionnormalize_tensor
(x, eps=1e-10)
sgm/modules/autoencoding/lpips/loss/lpips.py:141
↓ 2 callersMethodpossibly_get_ucg_val
(self, embedder: AbstractEmbModel, batch: Dict)
sgm/modules/encoders/modules.py:121
↓ 2 callersMethodpossibly_quantize_c_noise
(self, c_noise)
sgm/modules/diffusionmodules/denoiser.py:16
↓ 2 callersMethodpossibly_quantize_sigma
(self, sigma)
sgm/modules/diffusionmodules/denoiser.py:13
↓ 2 callersMethodprepare_inputs_labels_for_multimodal
( self, input_ids, attention_mask, past_key_values, labels, images )
llava/model/llava_arch.py:95
↓ 2 callersFunctionrank0_print
(*args)
llava/train/train.py:43
↓ 2 callersMethodread_image
img can be image path or cv2 loaded image.
SUPIR/utils/face_restoration_helper.py:122
↓ 2 callersMethodregister_to_controller
(self)
llava/serve/model_worker.py:75
↓ 2 callersMethodregister_worker
(self, worker_name: str, check_heart_beat: bool, worker_status: dict)
llava/serve/controller.py:69
↓ 2 callersMethodremove_worker
(self, worker_name: str)
llava/serve/controller.py:101
↓ 2 callersMethodrestore
Restore the parameters stored with the `store` method. Useful to validate the model with EMA parameters without affecting the
sgm/modules/ema.py:74
↓ 2 callersFunctionrms_norm
(x, weight=None, eps=1e-05)
llava/model/language_model/mpt/norm.py:27
↓ 2 callersMethodsample
(self)
sgm/modules/distributions/distributions.py:37
↓ 2 callersMethodsample
( self, cond: Dict, uc: Union[Dict, None] = None, batch_size: int = 16,
sgm/models/diffusion.py:217
↓ 2 callersMethodsend_heart_beat
(self)
llava/serve/model_worker.py:87
↓ 2 callersMethodsigma_to_idx
(self, sigma)
sgm/modules/diffusionmodules/denoiser.py:49
↓ 2 callersFunctionsplit_list
Split a list into n (roughly) equal-sized chunks
llava/eval/model_vqa.py:18
↓ 2 callersFunctionswitchQuestionAndCategory
()
llava/eval/webpage/script.js:203
↓ 2 callersFunctiontrain
()
llava/train/train.py:756
↓ 2 callersFunctionupdateExpandButtonVisibility
(card)
llava/eval/webpage/script.js:226
↓ 2 callersFunctionupdateModelSelect
()
llava/eval/webpage/script.js:64
↓ 2 callersFunctionwavelet_decomposition
Apply wavelet decomposition to the input tensor. This function only returns the low frequency & the high frequency.
SUPIR/utils/colorfix.py:94
↓ 2 callersFunctionwavelet_reconstruction
Apply wavelet decomposition, so that the content will have the same color as the style.
SUPIR/utils/colorfix.py:108
↓ 2 callersFunctionxformer_attn_forward
(self, h_)
SUPIR/utils/tilevae.py:318
↓ 2 callersFunctionzero_module
Zero out the parameters of a module and return it.
sgm/modules/attention.py:113
↓ 1 callersMethod__init__
(self, config: LlamaConfig)
llava/model/language_model/llava_llama.py:37
↓ 1 callersMethod__init__
(self, config: MPTConfig)
llava/model/language_model/llava_mpt.py:37
↓ 1 callersMethod__init__
(self, d_model: int, expansion_ratio: int, device: Optional[str]=None)
llava/model/language_model/mpt/blocks.py:10
↓ 1 callersMethod__init__
(self, config: MPTConfig)
llava/model/language_model/mpt/modeling_mpt.py:35
↓ 1 callersMethod__init__
(self, d_model: int, n_heads: int, attn_impl: str='triton', clip_qkv: Optional[float]=None, qk_ln: bool=False,
llava/model/language_model/mpt/attention.py:158
↓ 1 callersMethod__init__
(self)
llava/model/multimodal_projector/builder.py:7
← previousnext →101–200 of 867, ranked by callers