MCPcopy Create free account

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

Functions867 in github.com/Fanghua-Yu/SUPIR

↓ 1 callersMethodget_mult
(self, h, s, t, t_next)
sgm/modules/diffusionmodules/sampling.py:260
↓ 1 callersMethodget_mult
(self, h, r, t, t_next, previous_sigma)
sgm/modules/diffusionmodules/sampling.py:305
↓ 1 callersMethodget_mult
(self, h, r, t, t_next, previous_sigma)
sgm/modules/diffusionmodules/sampling.py:434
↓ 1 callersFunctionget_optimal_device
()
SUPIR/utils/devices.py:33
↓ 1 callersFunctionget_optimal_device_name
()
SUPIR/utils/devices.py:23
↓ 1 callersFunctionget_options
(row, options)
llava/eval/model_vqa_mmbench.py:44
↓ 1 callersFunctionget_peft_state_maybe_zero_3
(named_params, bias)
llava/train/train.py:124
↓ 1 callersFunctionget_peft_state_non_lora_maybe_zero_3
(named_params, require_grad_only=True)
llava/train/train.py:149
↓ 1 callersFunctionget_recommend_decoder_tile_size
()
SUPIR/utils/tilevae.py:98
↓ 1 callersFunctionget_recommend_encoder_tile_size
()
SUPIR/utils/tilevae.py:81
↓ 1 callersMethodget_sigmas
(self, n, device)
sgm/modules/diffusionmodules/discretizer.py:24
↓ 1 callersFunctionget_timestep_embedding
This matches the implementation in Denoising Diffusion Probabilistic Models: From Fairseq. Build sinusoidal embeddings. This matches
sgm/modules/diffusionmodules/model.py:23
↓ 1 callersFunctionget_tokenize_len
(prompts)
llava/train/train.py:605
↓ 1 callersMethodget_trainable_autoencoder_parameters
(self)
sgm/modules/autoencoding/losses/__init__.py:132
↓ 1 callersMethodget_variables
(self, sigma, sigma_down)
sgm/modules/diffusionmodules/sampling.py:254
↓ 1 callersMethodget_vision_tower
(self)
llava/model/llava_arch.py:87
↓ 1 callersMethodidx_to_sigma
(self, idx)
sgm/modules/diffusionmodules/sigma_sampling.py:24
↓ 1 callersMethodidx_to_sigma
(self, idx)
sgm/modules/diffusionmodules/denoiser.py:53
↓ 1 callersMethodinit_decoder
(self, config)
sgm/modules/autoencoding/losses/__init__.py:38
↓ 1 callersMethodinit_from_ckpt
( self, path: str, )
sgm/models/diffusion.py:85
↓ 1 callersFunctioninit_on_device
Device initialization context manager. A context manager under which models are initialized with all parameters on the specified device.
llava/model/language_model/mpt/meta_init_context.py:37
↓ 1 callersMethodinitialize_vision_modules
(self, model_args, fsdp=None)
llava/model/llava_arch.py:42
↓ 1 callersMethodinitialize_vision_tokenizer
(self, model_args, tokenizer)
llava/model/llava_arch.py:214
↓ 1 callersFunctioninsert_separator
(X, sep)
llava/mm_utils.py:46
↓ 1 callersMethodinstantiate_optimizer_from_config
(self, params, lr, cfg)
sgm/models/diffusion.py:191
↓ 1 callersMethodkl
(self, other=None)
sgm/modules/distributions/distributions.py:43
↓ 1 callersFunctionlinear_multistep_coeff
(order, t, i, j, epsrel=1e-4)
sgm/modules/diffusionmodules/sampling_utils.py:12
↓ 1 callersMethodlist_models
(self)
llava/serve/controller.py:112
↓ 1 callersMethodload_control_model
(self, control_model)
sgm/modules/diffusionmodules/wrappers.py:81
↓ 1 callersFunctionload_from_hf
(repo_id, filename, subfolder=None)
llava/model/builder.py:62
↓ 1 callersMethodload_from_pretrained
(self, name="vgg_lpips")
sgm/modules/autoencoding/lpips/loss/lpips.py:28
↓ 1 callersFunctionload_image
(image_file)
llava/serve/cli.py:18
↓ 1 callersFunctionload_image
(image_file)
llava/eval/run_llava.py:17
↓ 1 callersMethodlog_conditionings
Defines heuristics to log different conditionings. These can be lists of strings (text-to-image), tensors, ints, ...
sgm/models/diffusion.py:234
↓ 1 callersFunctionmain
(args)
llava/serve/cli.py:27
↓ 1 callersFunctionmain
()
llava/serve/test_message.py:9
↓ 1 callersFunctionmake_delta
(base_model_path, target_model_path, delta_path, hub_repo_id)
llava/model/make_delta.py:13
↓ 1 callersFunctionmake_supervised_data_module
Make dataset and collator for supervised fine-tuning.
llava/train/train.py:744
↓ 1 callersFunctionmaybe_zero_3
(param, ignore_status=False, name=None)
llava/train/llava_trainer.py:13
↓ 1 callersFunctionparse_args
()
llava/eval/summarize_gpt_review.py:9
↓ 1 callersFunctionparse_score
(review)
llava/eval/eval_gpt_review_bench.py:36
↓ 1 callersFunctionparse_score
(review)
llava/eval/eval_gpt_review.py:39
↓ 1 callersFunctionparse_score
(review)
llava/eval/eval_gpt_review_visual.py:36
↓ 1 callersMethodpaste_faces_to_input_image
(self, save_path=None, upsample_img=None, draw_box=False, face_upsampler=None)
SUPIR/utils/face_restoration_helper.py:361
↓ 1 callersFunctionpatch_tensor_constructor
(fn)
llava/model/language_model/mpt/meta_init_context.py:76
↓ 1 callersMethodpool
(self, x, text)
sgm/modules/encoders/modules.py:585
↓ 1 callersMethodpossible_correction_step
( self, euler_step, x, d, dt, next_sigma, denoiser, cond, uc )
sgm/modules/diffusionmodules/sampling.py:225
↓ 1 callersMethodprepare_condition
(self, _z, p, p_p, n_p, N)
SUPIR/models/SUPIR_model.py:152
↓ 1 callersFunctionpreprocess
Given a list of sources, each is a conversation list. This transform: 1. Add signal '### ' at the beginning each sentence, with end signal '\
llava/train/train.py:578
↓ 1 callersFunctionpreprocess_llama_2
( sources, tokenizer: transformers.PreTrainedTokenizer, has_image: bool = False )
llava/train/train.py:326
↓ 1 callersFunctionpreprocess_mpt
( sources, tokenizer: transformers.PreTrainedTokenizer, )
llava/train/train.py:490
↓ 1 callersFunctionpreprocess_multimodal
( sources: Sequence[str], data_args: DataArguments )
llava/train/train.py:302
↓ 1 callersFunctionpreprocess_plain
( sources: Sequence[str], tokenizer: transformers.PreTrainedTokenizer, )
llava/train/train.py:556
↓ 1 callersFunctionpreprocess_v1
( sources, tokenizer: transformers.PreTrainedTokenizer, has_image: bool = False )
llava/train/train.py:408
↓ 1 callersFunctionpretty_print_semaphore
(semaphore)
llava/utils.py:123
↓ 1 callersMethodprocess_digit_article
(self, in_text)
llava/eval/m4c_evaluator.py:198
↓ 1 callersMethodprocess_punctuation
(self, in_text)
llava/eval/m4c_evaluator.py:186
↓ 1 callersFunctionprompt_processor
(prompt)
llava/eval/eval_textvqa.py:17
↓ 1 callersMethodq_sample
(self, x_start, t, noise=None)
sgm/modules/encoders/modules.py:1000
↓ 1 callersMethodreceive_heart_beat
(self, worker_name: str, queue_length: int)
llava/serve/controller.py:173
↓ 1 callersMethodrefresh_all_workers
(self)
llava/serve/controller.py:104
↓ 1 callersMethodregister_schedule
( self, beta_schedule="linear", timesteps=1000, linear_start=1e-4, lin
sgm/modules/encoders/modules.py:952
↓ 1 callersMethodremove_stable_workers_by_expiration
(self)
llava/serve/controller.py:183
↓ 1 callersFunctionreplace_llama_attn_with_flash_attn
()
llava/train/llama_flash_attn_monkey_patch.py:105
↓ 1 callersMethodreverse
(self, output)
sgm/modules/autoencoding/lpips/util.py:107
↓ 1 callersFunctionsafe_save_model_for_hf_trainer
Collects the state dict and dump to disk.
llava/train/train.py:179
↓ 1 callersMethodsample
(self)
sgm/modules/distributions/distributions.py:17
↓ 1 callersMethodsampler_step
( self, old_denoised, previous_sigma, sigma, next_sigma, denoi
sgm/modules/diffusionmodules/sampling.py:316
↓ 1 callersMethodsampler_step
(self, sigma, next_sigma, denoiser, x, cond, uc, control_scale=1.0)
sgm/modules/diffusionmodules/sampling.py:413
↓ 1 callersMethodsampler_step
( self, old_denoised, previous_sigma, sigma, next_sigma, denoi
sgm/modules/diffusionmodules/sampling.py:447
↓ 1 callersMethodsampler_step
(self, sigma, next_sigma, denoiser, x, cond, uc=None, gamma=0.0, x_center=None, eps_noise=None,
sgm/modules/diffusionmodules/sampling.py:548
↓ 1 callersMethodschedule
(self, n, **kwargs)
sgm/lr_scheduler.py:26
↓ 1 callersMethodschedule
(self, n, **kwargs)
sgm/lr_scheduler.py:83
↓ 1 callersMethodshared_step
(self, batch: Dict)
sgm/models/diffusion.py:137
↓ 1 callersFunctionsmall_param_init_fn_
(module: nn.Module, n_layers: int, d_model: int, init_div_is_residual: Union[int, float, str, bool]=True, emb_
llava/model/language_model/mpt/param_init_fns.py:137
↓ 1 callersFunctionsmart_tokenizer_and_embedding_resize
Resize tokenizer and embedding. Note: This is the unoptimized version that may make your embedding size not be divisible by 64.
llava/train/train.py:218
↓ 1 callersFunctionspatial_average
(x, keepdim=True)
sgm/modules/autoencoding/lpips/loss/lpips.py:146
↓ 1 callersFunctionsplit_list
Split a list into n (roughly) equal-sized chunks
llava/eval/model_vqa_loader.py:19
↓ 1 callersFunctionsplit_list
Split a list into n (roughly) equal-sized chunks
llava/eval/model_vqa_mmbench.py:22
↓ 1 callersFunctionsplit_list
Split a list into n (roughly) equal-sized chunks
llava/eval/model_vqa_science.py:18
↓ 1 callersMethodsplit_tiles
Tool function to split the image into tiles @param h: height of the image @param w: width of the image @return: tile_
SUPIR/utils/tilevae.py:717
↓ 1 callersFunctionsplit_to_even_chunks
Split a list of indices into `chunks` chunks of roughly equal lengths.
llava/train/llava_trainer.py:33
↓ 1 callersMethodsummary
summarize the mean and var and return a function that apply group norm on each tile
SUPIR/utils/tilevae.py:629
↓ 1 callersMethodtext_transformer_forward
(self, x: torch.Tensor, attn_mask=None)
sgm/modules/encoders/modules.py:593
↓ 1 callersMethodtext_transformer_forward
(self, x: torch.Tensor, attn_mask=None)
sgm/modules/encoders/modules.py:667
↓ 1 callersMethodupdate_qs
(self, qs=None)
llava/llava_agent.py:49
↓ 1 callersMethodvae_tile_forward
Decode a latent vector z into an image in a tiled manner. @param z: latent vector @return: image
SUPIR/utils/tilevae.py:821
↓ 1 callersFunctionviolates_moderation
Check whether the text violates OpenAI moderation API.
llava/utils.py:102
↓ 1 callersMethodw
(self, sigma)
sgm/modules/diffusionmodules/denoiser.py:19
↓ 1 callersFunctionwavelet_blur
Apply wavelet blur to the input tensor.
SUPIR/utils/colorfix.py:73
↓ 1 callersMethodword_tokenize
(self, word)
llava/eval/m4c_evaluator.py:181
↓ 1 callersMethodworker_api_generate_stream
(self, params)
llava/serve/controller.py:193
↓ 1 callersMethodworker_api_get_status
(self)
llava/serve/controller.py:220
FunctionNumpy2Tensor
np.array[H, w, C] [0, 255] -> Tensor[C, H, W], RGB, [-1, 1]
SUPIR/util.py:149
FunctionTensor2Numpy
Tensor[C, H, W], RGB, [-1, 1] -> PIL.Image
SUPIR/util.py:159
Method__call__
(self, x)
SUPIR/utils/tilevae.py:688
Method__call__
(self, output_ids: torch.LongTensor, scores: torch.FloatTensor, **kwargs)
llava/mm_utils.py:91
Method__call__
(self, item)
llava/eval/m4c_evaluator.py:213
Method__call__
(self, output_ids: torch.LongTensor, scores: torch.FloatTensor, **kwargs)
llava/eval/model_qa.py:21
Method__call__
(self, instances: Sequence[Dict])
llava/train/train.py:716
← previousnext →301–400 of 867, ranked by callers