Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegaScenes/nvs
/ functions
Functions
1,032 in github.com/MegaScenes/nvs
⨍
Functions
1,032
◇
Types & classes
170
Function
compute_perceptual_similarity_from_list_topk
(pred_imgs_list, tgt_imgs_list, take_every_other, resize=Fals
ldm/modules/evaluate/evaluate_perceptualsim.py:502
Function
compute_scale_and_shift_to_01
(target_disparity, mask)
ldm/data/common.py:164
Method
configure_optimizers
(self)
ldm/models/autoencoder.py:388
Method
configure_optimizers
(self)
ldm/models/diffusion/classifier.py:220
Method
configure_optimizers
(self)
ldm/models/diffusion/ddpm.py:477
Method
configure_optimizers
(self)
ldm/models/diffusion/ddpm.py:1645
Method
configure_optimizers
(self)
ldm/models/diffusion/backup_ddpm.py:475
Method
configure_optimizers
(self)
ldm/models/diffusion/backup_ddpm.py:1399
Method
configure_optimizers
(self)
ldm/models/diffusion/all_functions_ddpm.py:477
Method
configure_optimizers
(self)
ldm/models/diffusion/all_functions_ddpm.py:1500
Function
convert_module_to_f16
(x)
ldm/modules/diffusionmodules/openaimodel.py:26
Function
convert_module_to_f32
(x)
ldm/modules/diffusionmodules/openaimodel.py:29
Method
convert_to_fp16
Convert the torso of the model to float16.
ldm/modules/diffusionmodules/openaimodel.py:730
Method
convert_to_fp16
Convert the torso of the model to float16.
ldm/modules/diffusionmodules/openaimodel.py:969
Method
convert_to_fp32
Convert the torso of the model to float32.
ldm/modules/diffusionmodules/openaimodel.py:738
Method
convert_to_fp32
Convert the torso of the model to float32.
ldm/modules/diffusionmodules/openaimodel.py:976
Method
count_flops
(model, _x, y)
ldm/modules/diffusionmodules/openaimodel.py:377
Method
count_flops
(model, _x, y)
ldm/modules/diffusionmodules/openaimodel.py:411
Function
create_carvekit_interface
()
ldm/util.py:47
Function
create_id3_embedding
Embeds the given videos using the Inflated 3D Convolution ne twork. Downloads the graph of the I3D from tf.hub and adds it to the graph on the
ldm/modules/evaluate/frechet_video_distance.py:66
Function
create_pose_embedding
(rot_mat, trans_mat, K, pos_enc=False, target_res=256)
dataloader/data_helpers.py:220
Method
decode
(self, z)
ldm/modules/encoders/modules.py:553
Method
decode
(self, h, force_not_quantize=False)
ldm/models/autoencoder.py:275
Method
decode
(self, x, *args, **kwargs)
ldm/models/autoencoder.py:436
Method
decode_code
(self, code_b)
ldm/models/autoencoder.py:113
Function
degradation_bsrgan
This is the degradation model of BSRGAN from the paper "Designing a Practical Degradation Model for Deep Blind Image Super-Resolution" --
ldm/modules/image_degradation/bsrgan_light.py:442
Function
degradation_bsrgan
This is the degradation model of BSRGAN from the paper "Designing a Practical Degradation Model for Deep Blind Image Super-Resolution" --
ldm/modules/image_degradation/bsrgan.py:438
Function
degradation_bsrgan_plus
This is an extended degradation model by combining the degradation models of BSRGAN and Real-ESRGAN ---------- img: HXWXC, [0, 1], it
ldm/modules/image_degradation/bsrgan.py:617
Function
degradation_bsrgan_variant
This is the degradation model of BSRGAN from the paper "Designing a Practical Degradation Model for Deep Blind Image Super-Resolution" --
ldm/modules/image_degradation/bsrgan_light.py:534
Function
degradation_bsrgan_variant
This is the degradation model of BSRGAN from the paper "Designing a Practical Degradation Model for Deep Blind Image Super-Resolution" --
ldm/modules/image_degradation/bsrgan.py:530
Function
dict_collation_fn
Take a list of samples (as dictionary) and create a batch, preserving the keys. If `tensors` is True, `ndarray` objects are combined into ten
ldm/data/laion.py:77
Function
disabled_train
Overwrite model.train with this function to make sure train/eval mode does not change anymore.
ldm/modules/encoders/modules.py:182
Function
disabled_train
Overwrite model.train with this function to make sure train/eval mode does not change anymore.
ldm/models/diffusion/classifier.py:22
Function
disabled_train
Overwrite model.train with this function to make sure train/eval mode does not change anymore.
ldm/models/diffusion/ddpm.py:38
Function
disabled_train
Overwrite model.train with this function to make sure train/eval mode does not change anymore.
ldm/models/diffusion/backup_ddpm.py:38
Function
disabled_train
Overwrite model.train with this function to make sure train/eval mode does not change anymore.
ldm/models/diffusion/all_functions_ddpm.py:38
Function
dpsr_degradation
bicubic downsampling + blur Args: x: HxWxC image, [0, 1] k: hxw, double sf: down-scale factor Return: downsam
ldm/modules/image_degradation/bsrgan_light.py:262
Function
dpsr_degradation
bicubic downsampling + blur Args: x: HxWxC image, [0, 1] k: hxw, double sf: down-scale factor Return: downsam
ldm/modules/image_degradation/bsrgan.py:262
Method
encode
(self, *args, **kwargs)
ldm/modules/encoders/modules.py:20
Method
encode
(self, x)
ldm/modules/encoders/modules.py:25
Method
encode
(self, img)
ldm/modules/encoders/modules.py:58
Method
encode
(self, img)
ldm/modules/encoders/modules.py:88
Method
encode
(self, x)
ldm/modules/encoders/modules.py:123
Method
encode
(self, text)
ldm/modules/encoders/modules.py:144
Method
encode
(self, text)
ldm/modules/encoders/modules.py:213
Method
encode
(self, img)
ldm/modules/encoders/modules.py:255
Method
encode
(self, text)
ldm/modules/encoders/modules.py:300
Method
encode
(self, im)
ldm/modules/encoders/modules.py:348
Method
encode
(self, text)
ldm/modules/encoders/modules.py:361
Method
encode
(self, im)
ldm/modules/encoders/modules.py:402
Method
encode
(self, im)
ldm/modules/encoders/modules.py:461
Method
encode
(self, x)
ldm/modules/encoders/modules.py:492
Method
encode
(self, x)
ldm/models/autoencoder.py:270
Method
encode
(self, x, *args, **kwargs)
ldm/models/autoencoder.py:433
Method
encode_to_prequant
(self, x)
ldm/models/autoencoder.py:103
Function
et_to_utc
(filename)
dataloader/data_helpers.py:438
Function
euler_angles_to_rotation_matrix
(yaw_deg, pitch_deg, roll_deg)
dataloader/data_helpers.py:272
Function
euler_angles_to_rotation_matrix
(yaw_deg, pitch_deg, roll_deg)
ldm/data/data_helpers.py:206
Function
euler_to_quaternion
Convert Euler angles to a quaternion
dataloader/data_helpers.py:571
Method
evaluate
Evaluate if new feature vectors are at the manifold.
ldm/modules/evaluate/adm_evaluator.py:305
Function
example00
()
ldm/data/laion.py:365
Function
example01
()
ldm/data/laion.py:397
Function
example02
()
ldm/data/laion.py:438
Function
example04
()
ldm/data/laion.py:505
Function
ext_to_sph
(ext)
dataloader/data_helpers.py:590
Function
filename_to_image
(img_txt)
dataloader/data_helpers.py:352
Function
filter_keys
(x)
ldm/data/laion.py:462
Method
filter_keys
(self, x)
ldm/data/laion.py:205
Method
filter_size
(self, x)
ldm/data/laion.py:188
Method
forward
(self,model)
ldm/modules/ema.py:25
Method
forward
(self, x)
ldm/modules/x_transformer.py:34
Method
forward
(self, x, seq_dim=1, offset=0)
ldm/modules/x_transformer.py:45
Method
forward
(self, x, **kwargs)
ldm/modules/x_transformer.py:123
Method
forward
(self, x, **kwargs)
ldm/modules/x_transformer.py:134
Method
forward
(self, x)
ldm/modules/x_transformer.py:146
Method
forward
(self, x)
ldm/modules/x_transformer.py:158
Method
forward
(self, x, residual)
ldm/modules/x_transformer.py:164
Method
forward
(self, x, residual)
ldm/modules/x_transformer.py:173
Method
forward
(self, x)
ldm/modules/x_transformer.py:189
Method
forward
(self, x)
ldm/modules/x_transformer.py:210
Method
forward
( self, x, context=None, mask=None, context_mask=N
ldm/modules/x_transformer.py:268
Method
forward
( self, x, context=None, mask=None, context_mask=N
ldm/modules/x_transformer.py:481
Method
forward
( self, x, return_embeddings=False, mask=None, ret
ldm/modules/x_transformer.py:598
Method
forward
(self, x)
ldm/modules/attention.py:43
Method
forward
(self, x)
ldm/modules/attention.py:64
Method
forward
(self, x)
ldm/modules/attention.py:89
Method
forward
(self, x)
ldm/modules/attention.py:127
Method
forward
(self, x, context=None, mask=None)
ldm/modules/attention.py:171
Method
forward
(self, x, context=None)
ldm/modules/attention.py:213
Method
forward
(self, x, context=None)
ldm/modules/attention.py:258
Method
forward
(self, X)
ldm/modules/evaluate/evaluate_perceptualsim.py:72
Method
forward
(self, X)
ldm/modules/evaluate/evaluate_perceptualsim.py:124
Method
forward
(self, X)
ldm/modules/evaluate/evaluate_perceptualsim.py:167
Method
forward
(self, X)
ldm/modules/evaluate/evaluate_perceptualsim.py:211
Method
forward
(self, in0, in1, retPerLayer=False)
ldm/modules/evaluate/evaluate_perceptualsim.py:272
Method
forward
(self, x)
ldm/modules/diffusionmodules/openaimodel.py:53
Method
forward
Apply the module to `x` given `emb` timestep embeddings.
ldm/modules/diffusionmodules/openaimodel.py:70
Method
forward
(self, x, emb, context=None)
ldm/modules/diffusionmodules/openaimodel.py:82
Method
forward
(self, x)
ldm/modules/diffusionmodules/openaimodel.py:111
Method
forward
(self,x)
ldm/modules/diffusionmodules/openaimodel.py:132
← previous
next →
701–800 of 1,032, ranked by callers