Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Monalissaa/DisenDiff
/ functions
Functions
238 in github.com/Monalissaa/DisenDiff
⨍
Functions
238
◇
Types & classes
39
Method
forward
(self, x: torch.Tensor)
clip/model.py:156
Method
forward
(self, x: torch.Tensor)
clip/model.py:163
Method
forward
(self, x: torch.Tensor)
clip/model.py:195
Method
forward
(self, x: torch.Tensor)
clip/model.py:208
Method
forward
(self, x: torch.Tensor)
clip/model.py:229
Method
forward
(self, attn, is_cross: bool, place_in_unet: str)
src/attention_controllers.py:183
Method
forward
Apply gaussian filter to input. Arguments: input (torch.Tensor): Input to apply gaussian filter on. Returns:
src/gaussian_smoothing.py:63
Method
forward
Apply average filter to input. Arguments: input (torch.Tensor): Input to apply average filter on. Returns:
src/gaussian_smoothing.py:111
Method
forward
( self, input_ids, timesteps, )
src/iterative_embedding.py:32
Method
forward
(self, text, t=None)
src/custom_modules.py:291
Function
get_all_metrics
(refs, cands, return_per_cap=False)
utils/clipscore/generation_eval_utils.py:17
Function
get_time_words_attention_alpha
(prompts, num_steps, cross_replace_steps: Union[float, Dict[str, Tuple[floa
src/ptp_utils.py:278
Method
get_token_indices
(tokens, token_id)
src/model.py:387
Function
load
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
Method
new_forward
(self, x, context=None, training=False, mask=None)
src/model.py:231
Method
num_uncond_att_layers
(self)
src/attention_controllers.py:142
Method
on_keyboard_interrupt
(self, trainer, pl_module)
train.py:477
Method
on_pretrain_routine_start
(self, trainer, pl_module)
train.py:483
Method
on_train_batch_end
(self, trainer, pl_module, outputs, batch, batch_idx, dataloader_idx)
train.py:610
Method
on_train_epoch_end
(self, trainer, pl_module, outputs)
train.py:630
Method
on_train_epoch_start
(self, trainer, pl_module)
train.py:624
Method
p_losses
(self, x_start, cond, t, origin_prompt=None, image_input=None, mask=None, noise=None, mask_background_image=No
src/model.py:347
Method
process_output
(output, absolute, smoothing=None, self_filter=False, twice_filter=False)
src/model.py:442
Method
process_token
(index, token, cross_maps, res, attn16, out)
src/model.py:406
Method
reset
(self)
src/attention_controllers.py:41
Method
reset
(self)
src/attention_controllers.py:166
Method
set_attn_grad
(self, attn_grad)
clip/model.py:187
Method
set_attn_probs
(self, attn_probs)
clip/model.py:184
Function
set_use_memory_efficient_attention_xformers
( self, use_memory_efficient_attention_xformers: bool, attention_op: Optional[Callable] = None )
src/diffusers_model_pipeline.py:234
Method
stem
(x)
clip/model.py:136
Function
str2bool
(v)
train.py:118
Function
text2image_ldm
( model, prompt: List[str], controller, num_inference_steps: int = 50, guidance_scale: Op
src/ptp_utils.py:98
Function
text2image_ldm_stable
( model, prompt: List[str], controller, num_inference_steps: int = 50, guidance_scale: flo
src/ptp_utils.py:129
Function
text_under_image
(image: np.ndarray, text: str, text_color: Tuple[int, int, int] = (0, 0, 0))
src/ptp_utils.py:24
Function
tokenize
Returns the tokenized representation of given input string(s) Parameters ---------- texts : Union[str, List[str]] An input s
clip/clip.py:164
Method
training_step
(self, batch, batch_idx)
src/model.py:559
Function
view_images
(images, num_rows=1, offset_ratio=0.02)
src/ptp_utils.py:37
Function
worker_init_fn
(_)
train.py:351
← previous
201–238 of 238, ranked by callers