MCPcopy Create free account

hub / github.com/LetterLiGo/SafeGen_CCS2024 / functions

Functions7,383 in github.com/LetterLiGo/SafeGen_CCS2024

Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
src/diffusers/pipelines/blip_diffusion/modeling_blip2.py:142
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
src/diffusers/pipelines/blip_diffusion/modeling_blip2.py:256
Methodforward
(self, x)
src/diffusers/pipelines/blip_diffusion/modeling_blip2.py:351
Methodforward
r""" Returns:
src/diffusers/pipelines/blip_diffusion/modeling_blip2.py:377
Methodforward
r""" encoder_hidden_states (`torch.FloatTensor` of shape `(batch_size, sequence_length, hidden_size)`, `optional`): Sequence of h
src/diffusers/pipelines/blip_diffusion/modeling_blip2.py:513
Methodforward
Input shape: Batch x Time x Channel
src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py:334
Methodforward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(seq_len, batch, embed_dim)` attention_mask (
src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py:466
Methodforward
r""" Args: input_ids (`torch.LongTensor` of shape `(batch_size, sequence_length)`): Indices of input sequence toke
src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py:584
Methodforward
( self, input_ids=None, attention_mask=None, position_ids=None, head_m
src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py:725
Methodforward
(self, clip_input, images)
src/diffusers/pipelines/stable_diffusion_safe/safety_checker.py:49
Methodforward
(self, *, image_embeddings, prompt_embeds, text_encoder_hidden_states, do_classifier_free_guidance)
src/diffusers/pipelines/unclip/text_proj.py:55
Methodforward
(self, latent)
src/diffusers/pipelines/unidiffuser/modeling_uvit.py:110
Methodforward
(self, x, skip)
src/diffusers/pipelines/unidiffuser/modeling_uvit.py:131
Methodforward
( self, hidden_states, attention_mask=None, encoder_hidden_states=None,
src/diffusers/pipelines/unidiffuser/modeling_uvit.py:252
Methodforward
( self, hidden_states, attention_mask=None, encoder_hidden_states=None,
src/diffusers/pipelines/unidiffuser/modeling_uvit.py:447
Methodforward
Args: hidden_states ( When discrete, `torch.LongTensor` of shape `(batch size, num latent pixels)`. When continuo
src/diffusers/pipelines/unidiffuser/modeling_uvit.py:728
Methodforward
Args: latent_image_embeds (`torch.FloatTensor` of shape `(batch size, latent channels, height, width)`): Latent i
src/diffusers/pipelines/unidiffuser/modeling_uvit.py:1038
Methodforward
Args: input_ids (`torch.Tensor` of shape `(N, max_seq_len)`): Text tokens to use for inference. prefi
src/diffusers/pipelines/unidiffuser/modeling_text_decoder.py:131
Methodforward
( self, sample: torch.FloatTensor, timestep: Union[torch.Tensor, float, int],
src/diffusers/pipelines/controlnet/multicontrolnet.py:32
Methodforward
(self, clip_input, images)
src/diffusers/pipelines/stable_diffusion/safety_checker.py:50
Methodforward
Arguments: Apply gaussian filter to input. input (torch.Tensor): Input to apply gaussian filter on. Returns:
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_attend_and_excite.py:1093
Methodforward
(self, x)
src/diffusers/pipelines/stable_diffusion/clip_image_project_model.py:28
Methodforward
(self, encoder_inputs, encoder_inputs_mask)
src/diffusers/pipelines/spectrogram_diffusion/continous_encoder.py:71
Methodforward
(self, encoder_input_tokens, encoder_inputs_mask)
src/diffusers/pipelines/spectrogram_diffusion/notes_encoder.py:69
Methodforward
r"""
src/diffusers/pipelines/alt_diffusion/modeling_roberta_series.py:74
Methodforward
r""" The [`UNetFlatConditionModel`] forward method. Args: sample (`torch.FloatTensor`): The noisy input t
src/diffusers/pipelines/versatile_diffusion/modeling_text_unet.py:1003
Methodforward
(self, input_tensor, *args, **kwargs)
src/diffusers/pipelines/versatile_diffusion/modeling_text_unet.py:1391
Methodforward
(self, input_tensor, temb)
src/diffusers/pipelines/versatile_diffusion/modeling_text_unet.py:1461
Methodforward
( self, hidden_states: torch.FloatTensor, temb: Optional[torch.FloatTensor] = None, scale: float = 1.0
src/diffusers/pipelines/versatile_diffusion/modeling_text_unet.py:1546
Methodforward
( self, hidden_states: torch.FloatTensor, temb: Optional[torch.FloatTensor] = None,
src/diffusers/pipelines/versatile_diffusion/modeling_text_unet.py:1674
Methodforward
( self, hidden_states: torch.FloatTensor, res_hidden_states_tuple: Tuple[torch.FloatTe
src/diffusers/pipelines/versatile_diffusion/modeling_text_unet.py:1794
Methodforward
( self, hidden_states: torch.FloatTensor, res_hidden_states_tuple: Tuple[torch.FloatTe
src/diffusers/pipelines/versatile_diffusion/modeling_text_unet.py:1946
Methodforward
(self, hidden_states: torch.FloatTensor, temb: Optional[torch.FloatTensor] = None)
src/diffusers/pipelines/versatile_diffusion/modeling_text_unet.py:2144
Methodforward
( self, hidden_states: torch.FloatTensor, temb: Optional[torch.FloatTensor] = None,
src/diffusers/pipelines/versatile_diffusion/modeling_text_unet.py:2249
Methodforward
( self, hidden_states: torch.FloatTensor, temb: Optional[torch.FloatTensor] = None,
src/diffusers/pipelines/versatile_diffusion/modeling_text_unet.py:2387
Methodforward
(self, clip_input, images, p_threshold=0.5, w_threshold=0.5)
src/diffusers/pipelines/deepfloyd_if/safety_checker.py:26
Methodforward
(self, input_ids, attention_mask)
src/diffusers/pipelines/kandinsky/text_encoder.py:24
Methodforward
(self, pixel_values, return_uncond_vector=False)
src/diffusers/pipelines/paint_by_example/image_encoder.py:38
Methodforward
(self, hidden_states)
src/diffusers/pipelines/paint_by_example/image_encoder.py:63
Methodforward
(self, position)
src/diffusers/pipelines/shap_e/renderer.py:225
Methodforward
For a signed distance field, produce a mesh using marching cubes. :param field: a 3D tensor of field values, where negative values c
src/diffusers/pipelines/shap_e/renderer.py:498
Methodforward
(self, *, position, direction, ts, nerf_level="coarse", rendering_mode="nerf")
src/diffusers/pipelines/shap_e/renderer.py:662
Methodforward
(self, x: torch.Tensor)
src/diffusers/pipelines/shap_e/renderer.py:723
Methodforward
(self, x: torch.Tensor)
src/diffusers/pipelines/shap_e/renderer.py:772
Methodforward
( self, hidden_states: Optional[torch.FloatTensor] = None, hidden_states_1: Optional[t
src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:111
Methodforward
r""" The [`AudioLDM2UNet2DConditionModel`] forward method. Args: sample (`torch.FloatTensor`): The noisy
src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:664
Methodforward
( self, hidden_states: torch.FloatTensor, temb: Optional[torch.FloatTensor] = None,
src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:1075
Methodforward
( self, hidden_states: torch.FloatTensor, temb: Optional[torch.FloatTensor] = None,
src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:1254
Methodforward
( self, hidden_states: torch.FloatTensor, res_hidden_states_tuple: Tuple[torch.FloatTe
src/diffusers/pipelines/audioldm2/modeling_audioldm2.py:1421
Methodforward
(self, x, r, c)
src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_prior.py:160
Methodforward
(self, x, r, effnet, clip=None, x_cat=None, eps=1e-3, return_noise=True)
src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_diffnext.py:214
Methodforward
(self, x, x_skip=None)
src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_diffnext.py:248
Methodforward
(self, x)
src/diffusers/pipelines/wuerstchen/modeling_paella_vq_model.py:49
Methodforward
r""" Args: sample (`torch.FloatTensor`): Input sample. return_dict (`bool`, *optional*, defaults to `True`):
src/diffusers/pipelines/wuerstchen/modeling_paella_vq_model.py:158
Methodforward
(self, x)
src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_common.py:28
Methodforward
(self, x, t)
src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_common.py:40
Methodforward
(self, x)
src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_common.py:74
Methodforward
(self, x, kv)
src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_common.py:91
Methodforward
r""" The [`UNet3DConditionModel`] forward method. Args: sample (`torch.FloatTensor`): The noisy input ten
src/diffusers/models/unet_3d_condition.py:508
Methodforward
The [`PriorTransformer`] forward method. Args: hidden_states (`torch.FloatTensor` of shape `(batch_size, embedding_dim)`
src/diffusers/models/prior_transformer.py:247
Methodforward
r""" The [`VQModel`] forward method. Args: sample (`torch.FloatTensor`): Input sample. return_dict (`bool`, *
src/diffusers/models/vq_model.py:151
Methodforward
r""" The forward method of the `Attention` class. Args: hidden_states (`torch.Tensor`): The hidden states
src/diffusers/models/attention_processor.py:498
Methodforward
(self, f: torch.FloatTensor, zq: torch.FloatTensor)
src/diffusers/models/attention_processor.py:1686
Methodforward
The [`Transformer2DModel`] forward method. Args: hidden_states (`torch.LongTensor` of shape `(batch size, num latent pix
src/diffusers/models/transformer_2d.py:246
Methodforward
r""" The [`UNet1DModel`] forward method. Args: sample (`torch.FloatTensor`): The noisy input tensor with
src/diffusers/models/unet_1d.py:195
Methodforward
(self, conditioning)
src/diffusers/models/controlnet.py:92
Methodforward
The [`ControlNetModel`] forward method. Args: sample (`torch.FloatTensor`): The noisy input tensor.
src/diffusers/models/controlnet.py:659
Methodforward
The [`TransformerTemporal`] forward method. Args: hidden_states (`torch.LongTensor` of shape `(batch size, num latent pi
src/diffusers/models/transformer_temporal.py:121
Methodforward
Args: hidden_states (`torch.FloatTensor` of shape `(batch size, channel, height, width)`): Input hidden_states.
src/diffusers/models/transformer_temporal.py:277
Methodforward
r""" Args: sample (`torch.FloatTensor`): Input sample. sample_posterior (`bool`, *optional*, defaults to `False`):
src/diffusers/models/autoencoder_kl.py:424
Methodforward
r""" Args: xs (`torch.Tensor`): (batch, channel, height, width) input images for multiple adapter models concated
src/diffusers/models/adapter.py:76
Methodforward
r""" This function processes the input tensor `x` through the adapter model and returns a list of feature tensors, each representing i
src/diffusers/models/adapter.py:267
Methodforward
r""" This method processes the input tensor `x` through the FullAdapter model and performs operations including pixel unshuffling, con
src/diffusers/models/adapter.py:322
Methodforward
r""" This method takes the tensor x as input and processes it through FullAdapterXL model. It consists of operations including unshuff
src/diffusers/models/adapter.py:374
Methodforward
r""" This method takes tensor x as input and performs operations downsampling and convolutional layers if the self.downsample and self
src/diffusers/models/adapter.py:422
Methodforward
r""" This method takes input tensor x and applies a convolutional layer, ReLU activation, and another convolutional layer on the input
src/diffusers/models/adapter.py:454
Methodforward
r""" This method takes the input tensor x and performs downscaling and appends it in list of feature tensors. Each feature tensor corr
src/diffusers/models/adapter.py:500
Methodforward
r""" This method takes tensor x as input and performs downsampling if required. Then it applies in convolution layer, a sequence of re
src/diffusers/models/adapter.py:544
Methodforward
r""" This function takes input tensor x and processes it through one convolutional layer, ReLU activation, and another convolutional l
src/diffusers/models/adapter.py:575
Methodforward
r""" The [`UNet2DConditionModel`] forward method. Args: sample (`torch.FloatTensor`): The noisy input ten
src/diffusers/models/unet_2d_condition.py:797
Methodforward
Args: hidden_states ( When discrete, `torch.LongTensor` of shape `(batch size, num latent pixels)`. When continuo
src/diffusers/models/dual_transformer_2d.py:97
Methodforward
r"""The forward method of the `Encoder` class.
src/diffusers/models/vae.py:138
Methodforward
r"""The forward method of the `Decoder` class.
src/diffusers/models/vae.py:281
Methodforward
r"""The forward method of the `UpSample` class.
src/diffusers/models/vae.py:368
Methodforward
r"""The forward method of the `MaskConditionEncoder` class.
src/diffusers/models/vae.py:417
Methodforward
r"""The forward method of the `MaskConditionDecoder` class.
src/diffusers/models/vae.py:533
Methodforward
(self, z: torch.FloatTensor)
src/diffusers/models/vae.py:713
Methodforward
r"""The forward method of the `EncoderTiny` class.
src/diffusers/models/vae.py:875
Methodforward
r"""The forward method of the `DecoderTiny` class.
src/diffusers/models/vae.py:957
Methodforward
r"""The forward method of the `Decoder` class.
src/diffusers/models/autoencoder_kl_temporal_decoder.py:88
Methodforward
r""" Args: sample (`torch.FloatTensor`): Input sample. sample_posterior (`bool`, *optional*, defaults to `False`):
src/diffusers/models/autoencoder_kl_temporal_decoder.py:374
Methodforward
r""" Args: sample (`torch.FloatTensor`): Input sample. mask (`torch.FloatTensor`, *optional*, defaults to `None`): Opt
src/diffusers/models/autoencoder_asym_kl.py:158
Methodforward
(self, hidden_states: torch.FloatTensor, temb: Optional[torch.FloatTensor] = None)
src/diffusers/models/unet_1d_blocks.py:69
Methodforward
( self, hidden_states: torch.FloatTensor, res_hidden_states_tuple: Optional[Tuple[torc
src/diffusers/models/unet_1d_blocks.py:129
Methodforward
(self, x: torch.FloatTensor, temb: Optional[torch.FloatTensor] = None)
src/diffusers/models/unet_1d_blocks.py:164
Methodforward
(self, hidden_states: torch.FloatTensor, temb: torch.FloatTensor)
src/diffusers/models/unet_1d_blocks.py:212
Methodforward
(self, hidden_states: torch.FloatTensor, temb: Optional[torch.FloatTensor] = None)
src/diffusers/models/unet_1d_blocks.py:233
Methodforward
(self, hidden_states: torch.FloatTensor, temb: torch.FloatTensor)
src/diffusers/models/unet_1d_blocks.py:254
Methodforward
(self, hidden_states: torch.FloatTensor)
src/diffusers/models/unet_1d_blocks.py:291
Methodforward
(self, hidden_states: torch.FloatTensor, temb: Optional[torch.FloatTensor] = None)
src/diffusers/models/unet_1d_blocks.py:308
← previousnext →4,101–4,200 of 7,383, ranked by callers