MCPcopy Create free account

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

Functions867 in github.com/Fanghua-Yu/SUPIR

Methodforward
( self, batch: Dict, return_uc=False )
sgm/modules/encoders/modules.py:260
Methodforward
(self, x)
sgm/modules/encoders/modules.py:324
Methodforward
(self, c)
sgm/modules/encoders/modules.py:335
Methodforward
(self, batch, key=None, disable_dropout=False)
sgm/modules/encoders/modules.py:351
Methodforward
(self, text)
sgm/modules/encoders/modules.py:383
Methodforward
(self, text)
sgm/modules/encoders/modules.py:425
Methodforward
(self, text)
sgm/modules/encoders/modules.py:482
Methodforward
(self, text)
sgm/modules/encoders/modules.py:558
Methodforward
(self, text)
sgm/modules/encoders/modules.py:653
Methodforward
(self, image, no_dropout=False)
sgm/modules/encoders/modules.py:753
Methodforward
(self, text)
sgm/modules/encoders/modules.py:866
Methodforward
(self, x)
sgm/modules/encoders/modules.py:912
Methodforward
(self, x)
sgm/modules/encoders/modules.py:1008
Methodforward
(self, x)
sgm/modules/encoders/modules.py:1035
Methodforward
(self, x)
sgm/modules/encoders/modules.py:1055
Methodforward
(self, x, batch)
sgm/models/diffusion.py:131
Methodforward
(self, x: Any)
sgm/models/autoencoder.py:177
Methodfsdp_wrap_fn
(self, module)
llava/model/language_model/mpt/modeling_mpt.py:226
Methodfsdp_wrap_fn
(self, module)
llava/model/language_model/mpt/modeling_mpt.py:295
Functiongenerate
Wraps original generate to enable PrefixLM attention.
llava/model/language_model/mpt/hf_prefixlm_converter.py:99
Functiongenerate_stream
(request: Request)
llava/serve/model_worker.py:231
Functionget_answer
(question_id: int, question: str, max_tokens: int)
llava/eval/qa_baseline_gpt35.py:16
Functionget_configs_path
Get the `configs` directory. For a working copy, this is the one in the root of the repository, but for an installed copy, it's in the `s
sgm/util.py:233
Methodget_decoder
(self)
llava/model/language_model/mpt/modeling_mpt.py:270
Functionget_device_for
(task)
SUPIR/utils/devices.py:37
Functionget_eval
(content: str, max_tokens: int)
llava/eval/eval_gpt_review.py:13
Functionget_file_name_parts
(file_path: str)
SUPIR/utils/file.py:43
Methodget_input
(self, batch)
sgm/models/autoencoder.py:75
Methodget_input
(self, x: Any)
sgm/models/autoencoder.py:328
Methodget_input_embeddings
(self)
llava/model/language_model/mpt/modeling_mpt.py:255
Methodget_last_layer
(self)
sgm/modules/diffusionmodules/model.py:478
Methodget_last_layer
(self, **kwargs)
sgm/modules/diffusionmodules/model.py:707
Methodget_model
(self)
llava/model/language_model/llava_llama.py:53
Methodget_model
(self)
llava/model/language_model/llava_mpt.py:65
Methodget_sigmas
(self, n, device="cpu")
sgm/modules/diffusionmodules/discretizer.py:34
Methodget_sigmas
(self, n, device="cpu")
sgm/modules/diffusionmodules/discretizer.py:58
Functionget_status
(request: Request)
llava/serve/model_worker.py:247
Functionget_string_from_tuple
(s)
sgm/util.py:20
Methodget_trainable_parameters
(self)
sgm/modules/autoencoding/regularizers/__init__.py:28
Methodget_trainable_parameters
(self)
sgm/modules/autoencoding/losses/__init__.py:129
Methodget_unconditional_conditioning
( self, batch_c, batch_uc=None, force_uc_zero_embeddings=None )
sgm/modules/encoders/modules.py:176
Methodget_unconditional_conditioning
( self, batch_c, batch_uc=None, force_uc_zero_embeddings=None )
sgm/modules/encoders/modules.py:282
Methodget_w
(weights, keyword)
llava/model/llava_arch.py:75
Functionget_worker_address
(request: Request)
llava/serve/controller.py:262
Methodgroup_norm_func
(x, mean=mean, var=var, weight=weight, bias=bias)
SUPIR/utils/tilevae.py:672
Functionheart_beat_controller
(controller)
llava/serve/controller.py:51
Functionheart_beat_worker
(controller)
llava/serve/model_worker.py:37
Methodhidden_size
(self)
llava/model/multimodal_encoder/clip_encoder.py:79
Functionhinge_d_loss
(logits_real, logits_fake)
sgm/modules/autoencoding/lpips/vqperceptual.py:5
Functionhttp_bot
(state, model_selector, temperature, top_p, max_new_tokens, request: gr.Request)
llava/serve/gradio_web_server.py:156
Functioninit_
(tensor)
sgm/modules/attention.py:76
Methodinit_dlib
Initialize the dlib detectors and predictors.
SUPIR/utils/face_restoration_helper.py:144
Functioninit_empty_weights
Meta initialization context manager. A context manager under which models are initialized with all parameters on the meta device, therefore c
llava/model/language_model/mpt/meta_init_context.py:6
Functioninit_to_zero
(name)
llava/model/language_model/mpt/flash_attn_triton.py:300
Functioninplace_nonlinearity
(x)
SUPIR/utils/tilevae.py:128
Methodinput_key
(self)
sgm/modules/encoders/modules.py:53
Functionis_power_of_two
chat.openai.com/chat Return True if n is a power of 2, otherwise return False. The function is_power_of_two takes an integer n as input
sgm/util.py:36
Methodis_trainable
(self)
sgm/modules/encoders/modules.py:45
Functionisheatmap
(x)
sgm/util.py:124
Functionisimage
(x)
sgm/util.py:118
Functionismap
(x)
sgm/util.py:112
Functionisneighbors
(x)
sgm/util.py:131
Functionkaiming_normal_param_init_fn_
(module: nn.Module, n_layers: int, d_model: Optional[int]=None, init_div_is_residual: Union[int, float, str, b
llava/model/language_model/mpt/param_init_fns.py:162
Functionkaiming_uniform_param_init_fn_
(module: nn.Module, n_layers: int, d_model: Optional[int]=None, init_div_is_residual: Union[int, float, str, b
llava/model/language_model/mpt/param_init_fns.py:155
Methodlengths
(self)
llava/train/train.py:644
Functionlist_image_files
( img_dir: str, exts: Tuple[str]=(".jpg", ".png", ".jpeg"), follow_links: bool=False, log_prog
SUPIR/utils/file.py:19
Functionlist_models
()
llava/serve/controller.py:256
Functionllave_process
(input_image, upscale, temperature, top_p, qs=None)
gradio_demo_face.py:88
Functionllave_process
(input_image, upscale, temperature, top_p, qs=None)
gradio_demo_tiled.py:84
Functionllave_process
(input_image, temperature, top_p, qs=None)
gradio_demo.py:76
Functionload_and_reset
(param_setting)
gradio_demo_face.py:238
Functionload_and_reset
(param_setting)
gradio_demo_tiled.py:174
Functionload_and_reset
(param_setting)
gradio_demo.py:147
Functionload_demo
(url_params, request: gr.Request)
llava/serve/gradio_web_server.py:58
Functionload_demo_refresh_model_list
(request: gr.Request)
llava/serve/gradio_web_server.py:72
Functionload_file_list
(file_list_path: str)
SUPIR/utils/file.py:8
Functionload_model_from_config
(config, ckpt, verbose=True, freeze=True)
sgm/util.py:202
Functionload_partial_from_config
(config)
sgm/util.py:64
Methodlog_images
( self, batch: Dict, N: int = 8, sample: bool = True, ucg_keys: List[s
sgm/models/diffusion.py:273
Methodlog_images
(self, batch: Dict, **kwargs)
sgm/models/autoencoder.py:270
Functionmake_inputs_require_grad
(module, input, output)
llava/train/train.py:819
Functionmake_path_absolute
(path)
sgm/util.py:105
Functionmax_neg_value
(t)
sgm/modules/attention.py:72
Functionmean_flat
https://github.com/openai/guided-diffusion/blob/27c20a8fab9cb472df5d6bdd6c8d11c8f430b924/guided_diffusion/nn.py#L86 Take the mean over all no
sgm/util.py:153
Functionmean_flat
Take the mean over all non-batch dimensions.
sgm/modules/diffusionmodules/util.py:251
Functionmeasure_perplexity
(predicted_indices, num_centroids)
sgm/modules/autoencoding/regularizers/__init__.py:44
Functionmixed_checkpoint
Evaluate a function without caching intermediate activations, allowing for reduced memory at the expense of extra compute in the backward pas
sgm/modules/diffusionmodules/util.py:41
Methodmodality_lengths
(self)
llava/train/train.py:652
Methodmode
(self)
sgm/modules/distributions/distributions.py:9
Methodmode
(self)
sgm/modules/distributions/distributions.py:20
Functionneox_param_init_fn_
From section 2.3.1 of GPT-NeoX-20B: An Open-Source AutoregressiveLanguage Model — Black et. al. (2022) see https://github.com/EleutherAI/gpt-
llava/model/language_model/mpt/param_init_fns.py:142
Methodnll
(self, sample, dims=[1, 2, 3])
sgm/modules/distributions/distributions.py:62
Functionnormal_kl
source: https://github.com/openai/guided-diffusion/blob/27c20a8fab9cb472df5d6bdd6c8d11c8f430b924/guided_diffusion/losses.py#L12 Compute the K
sgm/modules/distributions/distributions.py:75
Methodnum_patches
(self)
llava/model/multimodal_encoder/clip_encoder.py:83
Methodon_train_batch_end
(self, *args, **kwargs)
sgm/models/diffusion.py:172
Methodon_train_batch_end
(self, *args, **kwargs)
sgm/models/autoencoder.py:78
Methodon_train_start
(self, *args, **kwargs)
sgm/models/diffusion.py:168
Methodparam_init_fn
(self, module)
llava/model/language_model/mpt/modeling_mpt.py:222
Methodparam_init_fn
(self, module)
llava/model/language_model/mpt/modeling_mpt.py:291
Functionpartialclass
(cls, *args, **kwargs)
sgm/util.py:98
← previousnext →701–800 of 867, ranked by callers