MCPcopy Create free account

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

Functions867 in github.com/Fanghua-Yu/SUPIR

Methoddecode
(self, x: Any, *args, **kwargs)
sgm/models/autoencoder.py:334
Methoddenoise
(self, x, denoiser, sigma, cond, uc)
sgm/modules/diffusionmodules/sampling.py:58
Functiondisabled_train
Overwrite model.train with this function to make sure train/eval mode does not change anymore.
sgm/util.py:14
Functiondo_autocast
(*args, **kwargs)
sgm/util.py:53
Functiondownvote_last_response
(state, model_selector, request: gr.Request)
llava/serve/gradio_web_server.py:101
Methoddtype
(self)
llava/model/multimodal_encoder/clip_encoder.py:64
Methoddummy_feature
(self)
llava/model/multimodal_encoder/clip_encoder.py:60
Methodencode
(self, text)
sgm/modules/encoders/modules.py:399
Methodencode
(self, text)
sgm/modules/encoders/modules.py:441
Methodencode
(self, text)
sgm/modules/encoders/modules.py:506
Methodencode
(self, text)
sgm/modules/encoders/modules.py:608
Methodencode
(self, text)
sgm/modules/encoders/modules.py:680
Methodencode
(self, text)
sgm/modules/encoders/modules.py:840
Methodencode
(self, text)
sgm/modules/encoders/modules.py:863
Methodencode
(self, x)
sgm/modules/encoders/modules.py:928
Methodencode
(self, *args, **kwargs)
sgm/models/autoencoder.py:99
Methodencode
(self, x)
sgm/models/autoencoder.py:320
Methodencode
(self, x: Any, *args, **kwargs)
sgm/models/autoencoder.py:331
Methodeval_pred_list
(self, pred_list)
llava/eval/m4c_evaluator.py:264
Methodeval_pred_list
(self, pred_list)
llava/eval/m4c_evaluator.py:289
Methodeval_pred_list
(self, pred_list)
llava/eval/m4c_evaluator.py:321
Methodexpand2square
(pil_img, background_color=(122, 116, 104))
llava/conversation.py:119
Methodexpand2square
(pil_img, background_color)
llava/train/train.py:671
Functionfirst_time_calculation
just do any calculation with pytorch layers - the first time this is done it allocaltes about 700MB of memory and spends about 2.7 seconds do
SUPIR/utils/devices.py:126
Functionflag_last_response
(state, model_selector, request: gr.Request)
llava/serve/gradio_web_server.py:107
Functionflash_attn_fn
(query, key, value, n_heads, past_key_value=None, softmax_scale=None, attn_bias=None, key_padding_mask=None, i
llava/model/language_model/mpt/attention.py:71
Functionforward
Wraps original forward to enable PrefixLM attention.
llava/model/language_model/mpt/hf_prefixlm_converter.py:71
Functionforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None, position_i
llava/train/llama_flash_attn_monkey_patch.py:16
Methodforward
(self, c, h, h_ori=None)
SUPIR/modules/SUPIR_v0.py:51
Methodforward
(self, c, h, h_ori=None, control_scale=1)
SUPIR/modules/SUPIR_v0.py:91
Methodforward
(self, context, x, control_scale=1)
SUPIR/modules/SUPIR_v0.py:138
Methodforward
(self, x, timesteps, xt, context=None, y=None, **kwargs)
SUPIR/modules/SUPIR_v0.py:499
Methodforward
Apply the model to an input batch. :param x: an [N x C x ...] Tensor of inputs. :param timesteps: a 1-D batch of timesteps.
SUPIR/modules/SUPIR_v0.py:600
Methodforward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
llava/model/language_model/llava_llama.py:56
Methodforward
(self, input_ids: torch.LongTensor, past_key_values: Optional[List[Tuple[torch.FloatTensor]]]=None, attention_
llava/model/language_model/llava_mpt.py:72
Methodforward
qkv: (batch, seqlen, 3, nheads, headdim) bias: optional, shape broadcastible to (batch, nheads, seqlen, seqlen).
llava/model/language_model/mpt/flash_attn_triton.py:404
Methodforward
q: (batch, seqlen_q, nheads, headdim) kv: (batch, seqlen_k, 2, nheads, headdim) bias: optional, shape broadcastib
llava/model/language_model/mpt/flash_attn_triton.py:431
Methodforward
q: (batch_size, seqlen_q, nheads, headdim) k, v: (batch_size, seqlen_k, nheads, headdim) bias: optional, shape br
llava/model/language_model/mpt/flash_attn_triton.py:460
Methodforward
(self, x)
llava/model/language_model/mpt/blocks.py:17
Methodforward
(self, x: torch.Tensor, past_key_value: Optional[Tuple[torch.Tensor]]=None, attn_bias: Optional[torch.Tensor]=
llava/model/language_model/mpt/blocks.py:34
Methodforward
(self, input_ids: torch.LongTensor, past_key_values: Optional[List[Tuple[torch.FloatTensor]]]=None, attention_
llava/model/language_model/mpt/modeling_mpt.py:144
Methodforward
(self, input_ids: torch.LongTensor, past_key_values: Optional[List[Tuple[torch.FloatTensor]]]=None, attention_
llava/model/language_model/mpt/modeling_mpt.py:273
Methodforward
(self, x)
llava/model/language_model/mpt/norm.py:19
Methodforward
(self, x)
llava/model/language_model/mpt/norm.py:43
Methodforward
(self, x)
llava/model/language_model/mpt/norm.py:51
Methodforward
(self, x, past_key_value=None, attn_bias=None, attention_mask=None, is_causal=True, needs_weights=False)
llava/model/language_model/mpt/attention.py:191
Methodforward
(self, x, past_key_value=None, attn_bias=None, attention_mask=None, is_causal=True, needs_weights=False)
llava/model/language_model/mpt/attention.py:245
Methodforward
(self, input: Tensor, unembed: bool=False)
llava/model/language_model/mpt/custom_embedding.py:8
Methodforward
(self, x, *args, **kwargs)
llava/model/multimodal_projector/builder.py:10
Methodforward
(self, x)
llava/model/multimodal_projector/builder.py:28
Methodforward
(self, images)
llava/model/multimodal_encoder/clip_encoder.py:46
Methodforward
(self, model)
sgm/modules/ema.py:33
Methodforward
(self, x)
sgm/modules/attention.py:89
Methodforward
(self, x)
sgm/modules/attention.py:109
Methodforward
(self, x)
sgm/modules/attention.py:136
Methodforward
(self, x)
sgm/modules/attention.py:170
Methodforward
( self, x, context=None, mask=None, additional_tokens=None, n_
sgm/modules/attention.py:222
Methodforward
( self, x, context=None, mask=None, additional_tokens=None, n_
sgm/modules/attention.py:313
Methodforward
( self, x, context=None, additional_tokens=None, n_times_crossframe_attn_in_self=0 )
sgm/modules/attention.py:444
Methodforward
(self, x, context=None)
sgm/modules/attention.py:522
Methodforward
(self, x, context=None)
sgm/modules/attention.py:614
Methodforward
(self, x)
sgm/modules/diffusionmodules/openaimodel.py:58
Methodforward
Apply the module to `x` given `emb` timestep embeddings.
sgm/modules/diffusionmodules/openaimodel.py:75
Methodforward
( self, x, emb, context=None, skip_time_mix=False, time_contex
sgm/modules/diffusionmodules/openaimodel.py:87
Methodforward
(self, x)
sgm/modules/diffusionmodules/openaimodel.py:166
Methodforward
(self, x)
sgm/modules/diffusionmodules/openaimodel.py:208
Methodforward
Apply the block to a Tensor, conditioned on a timestep embedding. :param x: an [N x C x ...] Tensor of features. :param emb:
sgm/modules/diffusionmodules/openaimodel.py:319
Methodforward
(self, x, **kwargs)
sgm/modules/diffusionmodules/openaimodel.py:395
Methodforward
Apply QKV attention. :param qkv: an [N x (H * 3 * C) x T] tensor of Qs, Ks, and Vs. :return: an [N x (H * C) x T] tensor afte
sgm/modules/diffusionmodules/openaimodel.py:440
Methodforward
Apply QKV attention. :param qkv: an [N x (3 * H * C) x T] tensor of Qs, Ks, and Vs. :return: an [N x (H * C) x T] tensor afte
sgm/modules/diffusionmodules/openaimodel.py:472
Methodforward
(self, t)
sgm/modules/diffusionmodules/openaimodel.py:502
Methodforward
Apply the model to an input batch. :param x: an [N x C x ...] Tensor of inputs. :param timesteps: a 1-D batch of timesteps.
sgm/modules/diffusionmodules/openaimodel.py:979
Methodforward
(self, x, timesteps=None, context=None, y=None, **kwargs)
sgm/modules/diffusionmodules/openaimodel.py:1017
Methodforward
Apply the model to an input batch. :param x: an [N x C x ...] Tensor of inputs. :param timesteps: a 1-D batch of timesteps.
sgm/modules/diffusionmodules/openaimodel.py:1215
Methodforward
( ctx, run_function, length_tensors, length_non_tensors, tensor_keys,
sgm/modules/diffusionmodules/util.py:79
Methodforward
(ctx, run_function, length, *args)
sgm/modules/diffusionmodules/util.py:172
Methodforward
(self, x)
sgm/modules/diffusionmodules/util.py:274
Methodforward
(self, *args, **kwargs)
sgm/modules/diffusionmodules/wrappers.py:22
Methodforward
( self, x: torch.Tensor, t: torch.Tensor, c: dict, **kwargs )
sgm/modules/diffusionmodules/wrappers.py:27
Methodforward
( self, x: torch.Tensor, t: torch.Tensor, c: dict, **kwargs )
sgm/modules/diffusionmodules/wrappers.py:45
Methodforward
( self, x: torch.Tensor, t: torch.Tensor, c: dict, control_scale=1, **kwargs )
sgm/modules/diffusionmodules/wrappers.py:84
Methodforward
(self, x)
sgm/modules/diffusionmodules/model.py:64
Methodforward
(self, x)
sgm/modules/diffusionmodules/model.py:81
Methodforward
(self, x, temb)
sgm/modules/diffusionmodules/model.py:128
Methodforward
(self, x, **kwargs)
sgm/modules/diffusionmodules/model.py:194
Methodforward
(self, x, **kwargs)
sgm/modules/diffusionmodules/model.py:258
Methodforward
(self, x, context=None, mask=None, **unused_kwargs)
sgm/modules/diffusionmodules/model.py:266
Methodforward
(self, x)
sgm/modules/diffusionmodules/model.py:571
Methodforward
(self, z, **kwargs)
sgm/modules/diffusionmodules/model.py:710
Methodforward
(self, z: torch.Tensor)
sgm/modules/autoencoding/regularizers/__init__.py:15
Methodforward
(self, z: torch.Tensor)
sgm/modules/autoencoding/regularizers/__init__.py:31
Methodforward
(self, input, reverse=False)
sgm/modules/autoencoding/lpips/util.py:79
Methodforward
Standard forward.
sgm/modules/autoencoding/lpips/model/model.py:86
Methodforward
(self, input, target)
sgm/modules/autoencoding/lpips/loss/lpips.py:46
Methodforward
(self, inp)
sgm/modules/autoencoding/lpips/loss/lpips.py:77
Methodforward
(self, X)
sgm/modules/autoencoding/lpips/loss/lpips.py:123
Methodforward
(self, latent_inputs, latent_predictions, image_inputs, split="train")
sgm/modules/autoencoding/losses/__init__.py:43
Methodforward
( self, regularization_log, inputs, reconstructions, optimizer_idx,
sgm/modules/autoencoding/losses/__init__.py:154
Methodforward
( self, batch: Dict, force_zero_embeddings: Optional[List] = None )
sgm/modules/encoders/modules.py:130
Methodforward
( self, batch: Dict, force_zero_embeddings: Optional[List] = None )
sgm/modules/encoders/modules.py:194
← previousnext →601–700 of 867, ranked by callers