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
Function
get_peft_state_maybe_zero_3
(named_params, bias)
videoalign/utils.py:103
Function
green_mark
(x)
demo_utils/utils.py:394
Function
group_files_by_folder
(all_files)
demo_utils/utils.py:574
Method
hacked_get_attr
(self, name: str)
demo_utils/memory.py:19
Method
inference
Perform inference on the given noise and text prompts. Inputs: noise (torch.Tensor): The input noise tensor of shape
pipeline/bidirectional_diffusion_inference.py:34
Method
inference
Perform inference on the given noise and text prompts. Inputs: noise (torch.Tensor): The input noise tensor of shape
pipeline/causal_diffusion_inference.py:49
Method
inference
Perform inference on the given noise and text prompts. Inputs: noise (torch.Tensor): The input noise tensor of shape
pipeline/bidirectional_inference.py:33
Method
inference_with_trajectory
( self, noise: torch.Tensor, initial_latent: Optional[torch.Tensor] = None
pipeline/reward_forcing_training.py:61
Method
init_weight
(self, conv)
wan/modules/vae.py:162
Method
init_weight
(self, conv)
demo_utils/vae_block3.py:106
Method
init_weight
(self, conv)
demo_utils/vae.py:127
Method
init_weight2
(self, conv)
wan/modules/vae.py:174
Method
init_weight2
(self, conv)
demo_utils/vae_block3.py:118
Method
init_weight2
(self, conv)
demo_utils/vae.py:139
Function
init_weights
(m)
wan/modules/t5.py:27
Function
interpolate_numbers
(a, b, n, round_to_int=False, gamma=1.0)
demo_utils/utils.py:239
Function
just_crop
(image, w, h)
demo_utils/utils.py:94
Function
lazy_positional_encoding
(t, repeats=None)
demo_utils/utils.py:513
Function
load_model_as_complete
(model, target_device, unload=True)
demo_utils/memory.py:127
Function
min_resize
(x, m)
demo_utils/utils.py:19
Function
move_optimizer_to_device
(optimizer, device)
demo_utils/utils.py:612
Method
noop_no_sync
()
wan/image2video.py:249
Method
noop_no_sync
()
wan/text2video.py:194
Function
numpy2pytorch
(imgs)
demo_utils/utils.py:422
Function
offload_model_from_device_for_memory_preservation
(model, target_device, preserved_memory_gb=0)
demo_utils/memory.py:101
Method
on_step_end
(self, args, state, control, **kwargs)
videoalign/trainer.py:233
Method
on_train_begin
(self, args, state, control, **kwargs)
videoalign/trainer.py:229
Method
param_groups
(self)
wan/modules/clip.py:418
Method
prediction_step
( self, model, inputs, prediction_loss_only, ignore_keys = None, )
videoalign/trainer.py:501
Function
print_free_mem
()
demo_utils/utils.py:323
Function
print_gpu_parameters
(device, state_dict, log_count=1)
demo_utils/utils.py:333
Function
print_tensor_list_size
(tensors)
demo_utils/utils.py:159
Function
process_vision_info
( conversations: list[dict] | list[list[dict]], )
wan/utils/qwen_vl_utils.py:344
Function
pytorch2numpy
(imgs)
demo_utils/utils.py:411
Method
qkv_fn
(x)
wan/modules/causal_model.py:134
Method
qkv_fn
(x)
wan/modules/model.py:138
Method
readCalibrationCache
(self)
demo_utils/vae_torch2trt.py:209
Function
read_from_json
(file_path)
demo_utils/utils.py:116
Function
repeat_to_batch_size
(tensor: torch.Tensor, batch_size: int)
demo_utils/utils.py:451
Method
reset_parameters
(self)
wan/modules/model.py:493
Function
resize_and_center_crop
(image, target_width, target_height)
demo_utils/utils.py:48
Function
resize_and_center_crop_pytorch
(image, target_width, target_height)
demo_utils/utils.py:66
Function
resize_without_crop
(image, target_width, target_height)
demo_utils/utils.py:85
Method
reward
Inputs: video_paths: List[str], B paths of the videos. prompts: List[str], B prompts for the videos. eval
videoalign/inference.py:242
Function
save_bchw_as_png
(x, output_filename)
demo_utils/utils.py:295
Function
save_bcthw_as_mp4
(x, output_filename, fps=10, crf=0)
demo_utils/utils.py:269
Function
save_bcthw_as_png
(x, output_filename)
demo_utils/utils.py:286
Function
save_video
(tensor, path)
videoalign/utils.py:155
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. Ar
wan/utils/fm_solvers.py:800
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
wan/utils/fm_solvers_unipc.py:741
Function
separate_lora_AB
(parameters, B_patterns=None)
demo_utils/utils.py:135
Function
set_attr_recursive
(obj, attr, value)
demo_utils/utils.py:151
Method
set_begin_index
Sets the begin index for the scheduler. This function should be run from pipeline before the inference. Args: begin_index
wan/utils/fm_solvers.py:216
Method
set_begin_index
Sets the begin index for the scheduler. This function should be run from pipeline before the inference. Args: begin_inde
wan/utils/fm_solvers_unipc.py:149
Method
set_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`):
wan/utils/fm_solvers_unipc.py:160
Function
shard_model
( model, device_id, param_dtype=torch.bfloat16, reduce_dtype=torch.float32, buffer_dtype=t
wan/distributed/fsdp.py:10
Function
soft_append_bcthw
(history, current, overlap=0)
demo_utils/utils.py:255
Function
state_dict_offset_merge
(A, B, C=None)
demo_utils/utils.py:530
Function
state_dict_weighted_merge
(state_dicts, weights)
demo_utils/utils.py:547
Method
step_index
The index counter for current timestep. It will increase 1 after each scheduler step.
wan/utils/fm_solvers.py:202
Method
step_index
The index counter for current timestep. It will increase 1 after each scheduler step.
wan/utils/fm_solvers_unipc.py:135
Function
str2bool
Convert a string to a boolean. Supported true values: 'yes', 'true', 't', 'y', '1' Supported false values: 'no', 'false', 'f', 'n', '0'
wan/utils/utils.py:94
Function
supress_lower_channels
(m, k, alpha=0.01)
demo_utils/utils.py:203
Function
torch_safe_save
(content, path)
demo_utils/utils.py:606
Method
train
(self)
trainer/distillation.py:324
Method
train
(self)
trainer/diffusion.py:248
Method
train
(self)
trainer/gan.py:337
Method
train
(self)
trainer/rewarded_distillation.py:328
Function
uniform_random_by_intervals
(inclusive, exclusive, n, round_to_int=False)
demo_utils/utils.py:246
Method
uninstall_model
(model: torch.nn.Module)
demo_utils/memory.py:55
Function
usp_attn_forward
(self, x, seq_lens, grid_sizes,
wan/distributed/xdit_context_parallel.py:149
Function
usp_dit_forward
x: A list of videos each with shape [C, T, H, W]. t: [B]. context: A list of text embeddings each with s
wan/distributed/xdit_context_parallel.py:66
Function
visualize_txt_as_img
(width, height, text, font_path='font/DejaVuSans.ttf', size=18)
demo_utils/utils.py:348
Function
weighted_mse
(a, b, weight)
demo_utils/utils.py:436
Method
writeCalibrationCache
(self, cache)
demo_utils/vae_torch2trt.py:216
Function
write_PIL_image_with_png_info
(image, metadata, path)
demo_utils/utils.py:595
Function
write_to_json
(data, file_path)
demo_utils/utils.py:108
Function
xlm_roberta_large
XLMRobertaLarge adapted from Huggingface.
wan/modules/xlm_roberta.py:146
Function
zero_module
(module)
demo_utils/utils.py:196
← previous
501–579 of 579, ranked by callers