Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JaydenLyh/Reward-Forcing
/ functions
Functions
579 in github.com/JaydenLyh/Reward-Forcing
⨍
Functions
579
◇
Types & classes
123
Method
critic_loss
Generate image/videos from noise and train the critic with generated samples. The noisy input to the generator is backward simulated.
model/sid.py:188
Method
critic_loss
Generate image/videos from noise and train the critic with generated samples. The noisy input to the generator is backward simulated.
model/dmd.py:237
Function
crop_or_pad_yield_mask
(x, length)
demo_utils/utils.py:480
Method
cross_attn_ffn
(x, context, context_lens, e, crossattn_cache=None)
wan/modules/causal_model.py:342
Method
cross_attn_ffn
(x, context, context_lens, e)
wan/modules/model.py:346
Method
cross_attn_ffn
(x, context)
wan/modules/model.py:428
Method
custom_forward
(*inputs, **kwargs)
wan/modules/causal_model.py:828
Method
custom_forward
(*inputs, **kwargs)
wan/modules/model.py:724
Function
d_resize
(x, y)
demo_utils/utils.py:36
Function
dim3
(x)
demo_utils/utils.py:476
Function
dim4
(x)
demo_utils/utils.py:472
Function
dim5
(x)
demo_utils/utils.py:468
Function
duplicate_prefix_to_suffix
(x, count, zero_out=False)
demo_utils/utils.py:429
Function
encode
(self, videos: torch.Tensor)
inference.py:116
Method
extend
(self, prompt, system_prompt, seed=-1, *args, **kwargs)
wan/utils/prompt_extend.py:196
Method
extend
(self, prompt, system_prompt, seed=-1, *args, **kwargs)
wan/utils/prompt_extend.py:366
Function
extend_dim
(x, dim, minimal_length, zero_pad=False)
demo_utils/utils.py:495
Method
extend_with_img
(self, prompt, system_prompt, image: U
wan/utils/prompt_extend.py:232
Method
extend_with_img
(self, prompt, system_prompt, image: U
wan/utils/prompt_extend.py:397
Function
fake_diffusers_current_device
(model: torch.nn.Module, target_device: torch.device)
demo_utils/memory.py:61
Method
forward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
videoalign/trainer.py:71
Method
forward
(self, text_prompts: List[str])
utils/wan_wrapper.py:38
Method
forward
( self, noisy_image_or_video: torch.Tensor, conditional_dict: dict, timestep: torch.Te
utils/wan_wrapper.py:220
Method
forward
r""" Args: x(Tensor): Shape [B, L, num_heads, C / num_heads] seq_lens(Tensor): Shape [B] grid_sizes(Tensor
wan/modules/causal_model.py:110
Method
forward
r""" Args: x(Tensor): Shape [B, L, C] e(Tensor): Shape [B, F, 6, C] seq_lens(Tensor): Shape [B], length of
wan/modules/causal_model.py:303
Method
forward
r""" Args: x(Tensor): Shape [B, L1, C] e(Tensor): Shape [B, F, 1, C]
wan/modules/causal_model.py:375
Method
forward
( self, *args, **kwargs )
wan/modules/causal_model.py:1021
Method
forward
(self, x)
wan/modules/clip.py:43
Method
forward
(self, x)
wan/modules/clip.py:49
Method
forward
x: [B, L, C].
wan/modules/clip.py:74
Method
forward
(self, x)
wan/modules/clip.py:146
Method
forward
x: [B, L, C].
wan/modules/clip.py:186
Method
forward
(self, x, interpolation=False, use_31_block=False)
wan/modules/clip.py:279
Method
forward
(self, ids)
wan/modules/clip.py:315
Method
forward
imgs: [B, 3, H, W] of torch.float32. - mean: [0.48145466, 0.4578275, 0.40821073] - std: [0.26862954, 0.2613025
wan/modules/clip.py:406
Method
forward
(self, x)
wan/modules/t5.py:48
Method
forward
(self, x)
wan/modules/t5.py:61
Method
forward
x: [B, L1, C]. context: [B, L2, C] or None. mask: [B, L2] or [B, L1, L2] or None.
wan/modules/t5.py:86
Method
forward
(self, x)
wan/modules/t5.py:136
Method
forward
(self, x, mask=None, pos_bias=None)
wan/modules/t5.py:170
Method
forward
(self, x, mask=None, encoder_states=None, enco
wan/modules/t5.py:206
Method
forward
(self, lq, lk)
wan/modules/t5.py:233
Method
forward
(self, ids, mask=None)
wan/modules/t5.py:303
Method
forward
(self, ids, mask=None, encoder_states=None, encoder_mask=None)
wan/modules/t5.py:351
Method
forward
(self, encoder_ids, encoder_mask, decoder_ids, decoder_mask)
wan/modules/t5.py:408
Method
forward
(self, x, cache_x=None)
wan/modules/vae.py:28
Method
forward
(self, x)
wan/modules/vae.py:51
Method
forward
Fix bfloat16 support for nearest neighbor interpolation.
wan/modules/vae.py:59
Method
forward
(self, x, feat_cache=None, feat_idx=[0])
wan/modules/vae.py:101
Method
forward
(self, x, feat_cache=None, feat_idx=[0])
wan/modules/vae.py:202
Method
forward
(self, x)
wan/modules/vae.py:240
Method
forward
(self, x, feat_cache=None, feat_idx=[0])
wan/modules/vae.py:318
Method
forward
(self, x, feat_cache=None, feat_idx=[0])
wan/modules/vae.py:423
Method
forward
x: [B, L, C].
wan/modules/xlm_roberta.py:27
Method
forward
(self, x, mask)
wan/modules/xlm_roberta.py:66
Method
forward
ids: [B, L] of torch.LongTensor.
wan/modules/xlm_roberta.py:118
Method
forward
r""" Args: x(Tensor): Shape [B, L, C]
wan/modules/model.py:78
Method
forward
r""" Args: x(Tensor): Shape [B, L, C]
wan/modules/model.py:94
Method
forward
r""" Args: x(Tensor): Shape [B, L, num_heads, C / num_heads] seq_lens(Tensor): Shape [B] grid_sizes(Tensor
wan/modules/model.py:127
Method
forward
r""" Args: x(Tensor): Shape [B, L1, C] context(Tensor): Shape [B, L2, C] context_lens(Tensor): Shape [B]
wan/modules/model.py:161
Method
forward
r""" Args: x(Tensor): Shape [B, L1, C] context(Tensor): Shape [B, L2, C] context_lens(Tensor): Shape [B]
wan/modules/model.py:199
Method
forward
r""" Args: x(Tensor): Shape [B, L1, C] context(Tensor): Shape [B, L2, C] context_lens(Tensor): Shape [B]
wan/modules/model.py:240
Method
forward
r""" Args: x(Tensor): Shape [B, L, C] e(Tensor): Shape [B, 6, C] seq_lens(Tensor): Shape [B], length of ea
wan/modules/model.py:315
Method
forward
r""" Args: x(Tensor): Shape [B, L, C] e(Tensor): Shape [B, 6, C] seq_lens(Tensor): Shape [B], length of ea
wan/modules/model.py:397
Method
forward
(self, image_embeds)
wan/modules/model.py:479
Method
forward
(self)
wan/modules/model.py:490
Method
forward
( self, *args, **kwargs )
wan/modules/model.py:626
Method
forward
(self, x, feat_cache=None, feat_idx=[0])
demo_utils/vae_block3.py:45
Method
forward
( self, z: torch.Tensor, *feat_cache: List[torch.Tensor] )
demo_utils/vae_block3.py:147
Method
forward
( self, x: torch.Tensor, feat_cache: List[torch.Tensor] )
demo_utils/vae_block3.py:242
Method
forward
(self, x, feat_cache_1, feat_cache_2)
demo_utils/vae.py:29
Method
forward
(self, x, is_first_frame, feat_cache)
demo_utils/vae.py:73
Method
forward
( self, z: torch.Tensor, is_first_frame: torch.Tensor, *feat_c
demo_utils/vae.py:168
Method
forward
( self, x: torch.Tensor, is_first_frame: torch.Tensor, feat_ca
demo_utils/vae.py:254
Method
forward
(self, *test_inputs)
demo_utils/vae.py:381
Method
forward
(self, x)
demo_utils/taehv.py:21
Method
forward
(self, x, past)
demo_utils/taehv.py:33
Method
forward
(self, x)
demo_utils/taehv.py:43
Method
forward
(self, x)
demo_utils/taehv.py:54
Method
forward
(self, x)
demo_utils/taehv.py:236
Function
frame_mark
(x)
demo_utils/utils.py:401
Function
freeze_module
(m)
demo_utils/utils.py:213
Method
generate
r""" Generates video frames from input image and text prompt using diffusion process. Args: input_prompt (`str`):
wan/image2video.py:129
Function
generate_random_prompt_from_tags
(tags_str, min_length=3, max_length=32)
demo_utils/utils.py:232
Function
generate_timestamp
()
demo_utils/utils.py:587
Method
generate_video
(self, pipeline, prompts, image=None)
trainer/distillation.py:294
Method
generate_video
(self, pipeline, prompts, image=None)
trainer/diffusion.py:235
Method
generate_video
(self, pipeline, prompts, image=None)
trainer/gan.py:324
Method
generate_video
(self, pipeline, prompts, image=None)
trainer/rewarded_distillation.py:298
Method
generator_loss
Generate image/videos from noise and compute the DMD loss. The noisy input to the generator is backward simulated. This remov
model/causvid.py:255
Method
generator_loss
Generate image/videos from noise and compute the DMD loss. The noisy input to the generator is backward simulated. This remov
model/diffusion.py:44
Method
generator_loss
Generate image/videos from noise and compute the DMD loss. The noisy input to the generator is backward simulated. This remov
model/re_dmd.py:197
Method
generator_loss
Generate image/videos from noise and compute the DMD loss. The noisy input to the generator is backward simulated. This remov
model/sid.py:147
Method
generator_loss
Generate image/videos from noise and compute the DMD loss. The noisy input to the generator is backward simulated. This remov
model/dmd.py:196
Method
generator_loss
Generate image/videos from noisy latents and compute the ODE regression loss. Input: - ode_latent: a tensor containing th
model/ode_regression.py:102
Method
getBatchSize
(self)
demo_utils/vae_torch2trt.py:154
Function
get_active_parameters
(m)
demo_utils/utils.py:122
Method
get_batch_size
(self)
demo_utils/vae_torch2trt.py:151
Method
get_eval_dataloader
Returns the evaluation [`~torch.utils.data.DataLoader`]. Subclass and override this method if you want to inject some custom behavio
videoalign/trainer.py:258
Function
get_latest_safetensors
(folder_path)
demo_utils/utils.py:221
← previous
next →
401–500 of 579, ranked by callers