MCPcopy Create free account

hub / github.com/Monalissaa/DisenDiff / functions

Functions238 in github.com/Monalissaa/DisenDiff

Methodforward
(self, x: torch.Tensor)
clip/model.py:156
Methodforward
(self, x: torch.Tensor)
clip/model.py:163
Methodforward
(self, x: torch.Tensor)
clip/model.py:195
Methodforward
(self, x: torch.Tensor)
clip/model.py:208
Methodforward
(self, x: torch.Tensor)
clip/model.py:229
Methodforward
(self, attn, is_cross: bool, place_in_unet: str)
src/attention_controllers.py:183
Methodforward
Apply gaussian filter to input. Arguments: input (torch.Tensor): Input to apply gaussian filter on. Returns:
src/gaussian_smoothing.py:63
Methodforward
Apply average filter to input. Arguments: input (torch.Tensor): Input to apply average filter on. Returns:
src/gaussian_smoothing.py:111
Methodforward
( self, input_ids, timesteps, )
src/iterative_embedding.py:32
Methodforward
(self, text, t=None)
src/custom_modules.py:291
Functionget_all_metrics
(refs, cands, return_per_cap=False)
utils/clipscore/generation_eval_utils.py:17
Functionget_time_words_attention_alpha
(prompts, num_steps, cross_replace_steps: Union[float, Dict[str, Tuple[floa
src/ptp_utils.py:278
Methodget_token_indices
(tokens, token_id)
src/model.py:387
Functionload
Load a CLIP model Parameters ---------- name : str A model name listed by `clip.available_models()`, or the path to a model check
clip/clip.py:73
Methodnew_forward
(self, x, context=None, training=False, mask=None)
src/model.py:231
Methodnum_uncond_att_layers
(self)
src/attention_controllers.py:142
Methodon_keyboard_interrupt
(self, trainer, pl_module)
train.py:477
Methodon_pretrain_routine_start
(self, trainer, pl_module)
train.py:483
Methodon_train_batch_end
(self, trainer, pl_module, outputs, batch, batch_idx, dataloader_idx)
train.py:610
Methodon_train_epoch_end
(self, trainer, pl_module, outputs)
train.py:630
Methodon_train_epoch_start
(self, trainer, pl_module)
train.py:624
Methodp_losses
(self, x_start, cond, t, origin_prompt=None, image_input=None, mask=None, noise=None, mask_background_image=No
src/model.py:347
Methodprocess_output
(output, absolute, smoothing=None, self_filter=False, twice_filter=False)
src/model.py:442
Methodprocess_token
(index, token, cross_maps, res, attn16, out)
src/model.py:406
Methodreset
(self)
src/attention_controllers.py:41
Methodreset
(self)
src/attention_controllers.py:166
Methodset_attn_grad
(self, attn_grad)
clip/model.py:187
Methodset_attn_probs
(self, attn_probs)
clip/model.py:184
Functionset_use_memory_efficient_attention_xformers
( self, use_memory_efficient_attention_xformers: bool, attention_op: Optional[Callable] = None )
src/diffusers_model_pipeline.py:234
Methodstem
(x)
clip/model.py:136
Functionstr2bool
(v)
train.py:118
Functiontext2image_ldm
( model, prompt: List[str], controller, num_inference_steps: int = 50, guidance_scale: Op
src/ptp_utils.py:98
Functiontext2image_ldm_stable
( model, prompt: List[str], controller, num_inference_steps: int = 50, guidance_scale: flo
src/ptp_utils.py:129
Functiontext_under_image
(image: np.ndarray, text: str, text_color: Tuple[int, int, int] = (0, 0, 0))
src/ptp_utils.py:24
Functiontokenize
Returns the tokenized representation of given input string(s) Parameters ---------- texts : Union[str, List[str]] An input s
clip/clip.py:164
Methodtraining_step
(self, batch, batch_idx)
src/model.py:559
Functionview_images
(images, num_rows=1, offset_ratio=0.02)
src/ptp_utils.py:37
Functionworker_init_fn
(_)
train.py:351
← previous201–238 of 238, ranked by callers