MCPcopy Create free account

hub / github.com/One-2-3-45/One-2-3-45 / functions

Functions1,158 in github.com/One-2-3-45/One-2-3-45

Functiondegradation_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
Functiondegradation_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
Functiondegradation_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
Functiondepth_grid
A util function for plotting a grid of images. Args: images: (N, H, W, 4) array of RGBA images rows: number of rows in the gr
elevation_estimate/utils/plt_utils.py:100
Functiondetach_data
(dictionary)
reconstruction/utils/misc_utils.py:139
Functiondict_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
Functiondisabled_train
Overwrite model.train with this function to make sure train/eval mode does not change anymore.
ldm/modules/encoders/modules.py:178
Functiondisabled_train
Overwrite model.train with this function to make sure train/eval mode does not change anymore.
ldm/models/diffusion/classifier.py:22
Functiondisabled_train
Overwrite model.train with this function to make sure train/eval mode does not change anymore.
ldm/models/diffusion/ddpm.py:37
Functiondpsr_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
Functiondpsr_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
Functionelu_feature_map
(x)
elevation_estimate/loftr/loftr_module/linear_attention.py:10
Functionembed
(x, eo=embedder_obj)
reconstruction/models/embedder.py:58
Methodencode
(self, *args, **kwargs)
ldm/modules/encoders/modules.py:16
Methodencode
(self, x)
ldm/modules/encoders/modules.py:21
Methodencode
(self, img)
ldm/modules/encoders/modules.py:54
Methodencode
(self, img)
ldm/modules/encoders/modules.py:84
Methodencode
(self, x)
ldm/modules/encoders/modules.py:119
Methodencode
(self, text)
ldm/modules/encoders/modules.py:140
Methodencode
(self, text)
ldm/modules/encoders/modules.py:209
Methodencode
(self, img)
ldm/modules/encoders/modules.py:251
Methodencode
(self, text)
ldm/modules/encoders/modules.py:279
Methodencode
(self, im)
ldm/modules/encoders/modules.py:327
Methodencode
(self, text)
ldm/modules/encoders/modules.py:340
Methodencode
(self, im)
ldm/modules/encoders/modules.py:381
Methodencode
(self, im)
ldm/modules/encoders/modules.py:440
Methodencode
(self, x)
ldm/modules/encoders/modules.py:471
Methodencode
(self, x)
ldm/models/autoencoder.py:269
Methodencode
(self, x, *args, **kwargs)
ldm/models/autoencoder.py:431
Methodencode_to_prequant
(self, x)
ldm/models/autoencoder.py:102
Methodevaluate
Evaluate if new feature vectors are at the manifold.
ldm/modules/evaluate/adm_evaluator.py:305
Functionexample00
()
ldm/data/laion.py:365
Functionexample01
()
ldm/data/laion.py:397
Functionexample02
()
ldm/data/laion.py:438
Functionexample04
()
ldm/data/laion.py:505
Methodextract_depth_maps
extract depth maps from the density volume :param con_volume: [1, 1+C, dX, dY, dZ] can by con_volume or sdf_volume :param c2
reconstruction/models/sparse_neus_renderer.py:940
Methodextract_geometry
(self, sdf_network, bound_min, bound_max, resolution, threshold, device, occupancy_mask=None,
reconstruction/models/sparse_neus_renderer.py:908
Functionfilter_keys
(dict)
reconstruction/utils/misc_utils.py:118
Functionfilter_keys
(x)
ldm/data/laion.py:462
Methodfilter_keys
(self, x)
ldm/data/laion.py:205
Methodfilter_size
(self, x)
ldm/data/laion.py:188
Methodfine
(self, inputs)
reconstruction/models/fields.py:162
Functionforward
(self, depth_pred, depth_gt, mask=None)
reconstruction/loss/depth_loss.py:31
Methodforward
Update: data (dict): { 'image0': (torch.Tensor): (N, 1, H, W) 'image1': (torch.Tensor): (N, 1, H
elevation_estimate/loftr/loftr.py:29
Methodforward
(self, x)
elevation_estimate/loftr/backbone/resnet_fpn.py:32
Methodforward
(self, x)
elevation_estimate/loftr/backbone/resnet_fpn.py:100
Methodforward
(self, x)
elevation_estimate/loftr/backbone/resnet_fpn.py:180
Methodforward
Args: feat0 (torch.Tensor): [M, WW, C] feat1 (torch.Tensor): [M, WW, C] data (dict) Update:
elevation_estimate/loftr/utils/fine_matching.py:15
Methodforward
Args: x: [N, C, H, W]
elevation_estimate/loftr/utils/position_encoding.py:37
Methodforward
Args: feat0 (torch.Tensor): [N, L, C] feat1 (torch.Tensor): [N, S, C] data (dict) mask_c0 (to
elevation_estimate/loftr/utils/coarse_matching.py:87
Methodforward
Multi-Head linear attention proposed in "Transformers are RNNs" Args: queries: [N, L, H, D] keys: [N, S, H, D]
elevation_estimate/loftr/loftr_module/linear_attention.py:20
Methodforward
Multi-head scaled dot-product attention, a.k.a full attention. Args: queries: [N, L, H, D] keys: [N, S, H, D]
elevation_estimate/loftr/loftr_module/linear_attention.py:56
Methodforward
(self, feat_f0, feat_f1, feat_c0, feat_c1, data)
elevation_estimate/loftr/loftr_module/fine_preprocess.py:29
Methodforward
Args: x (torch.Tensor): [N, L, C] source (torch.Tensor): [N, S, C] x_mask (torch.Tensor): [N, L] (optiona
elevation_estimate/loftr/loftr_module/transformer.py:35
Methodforward
Args: feat0 (torch.Tensor): [N, L, C] feat1 (torch.Tensor): [N, S, C] mask0 (torch.Tensor): [N, L] (optio
elevation_estimate/loftr/loftr_module/transformer.py:80
Methodforward
(self, x)
reconstruction/tsparse/modules.py:22
Methodforward
(self, x)
reconstruction/tsparse/modules.py:35
Methodforward
(self, x)
reconstruction/tsparse/modules.py:74
Methodforward
(self, x)
reconstruction/tsparse/modules.py:106
Methodforward
(self, x)
reconstruction/tsparse/modules.py:123
Methodforward
(self, x)
reconstruction/tsparse/modules.py:151
Methodforward
(self, z)
reconstruction/tsparse/modules.py:229
Methodforward
:param x: sparse tensor :return: sparse tensor
reconstruction/tsparse/modules.py:287
Methodforward
(self, z)
reconstruction/tsparse/modules.py:321
Methodforward
(self, x)
reconstruction/models/featurenet.py:21
Methodforward
(self, x)
reconstruction/models/featurenet.py:35
Methodforward
(self, x)
reconstruction/models/featurenet.py:74
Methodforward
(self, x)
reconstruction/models/fields.py:175
Methodforward
(self, x)
reconstruction/models/fields.py:184
Methodforward
(self, points, normals, view_dirs, feature_vectors)
reconstruction/models/fields.py:228
Methodforward
(self, input_pts, input_views)
reconstruction/models/fields.py:308
Methodforward
:param geometry_feat: geometry features indicates sdf [n_rays, n_samples, n_feat] :param rgb_feat: rgbs and image features [n_views,
reconstruction/models/rendering_network.py:75
Methodforward
(self, sample, perturb_overwrite=-1, background_rgb=None, alph
reconstruction/models/trainer_generic.py:1052
Methodforward
Embeds x to (x, sin(2^k x), cos(2^k x), ...) Different from the paper, "x" is also in the output See https://github.com/bmild
reconstruction/models/embedder.py:81
Methodforward
(self, inputs, latent)
reconstruction/models/sparse_sdf_network.py:111
Methodforward
(self)
reconstruction/models/sparse_sdf_network.py:544
Methodforward
:param position: can be 3d coord or interpolated volume latent :param normals: :param view_dirs: :param feature_vect
reconstruction/models/sparse_sdf_network.py:840
Methodforward
:param img_pred: [Npx, nviews, npatch, c] :param img_gt: [Npx, npatch, c] :return:
reconstruction/loss/ncc.py:15
Methodforward
(self, bottom)
reconstruction/loss/color_loss.py:10
Methodforward
:param pred: [N_pts, 3] :param gt: [N_pts, 3] :param weight: [N_pts] :param mask: [N_pts] :return:
reconstruction/loss/color_loss.py:29
Methodforward
:param pred: [N_pts, Npx, 3] :param gt: [N_pts, Npx, 3] :param weight: [N_pts] :param mask: [N_pts] :return:
reconstruction/loss/color_loss.py:76
Methodforward
(self, weight_mean)
reconstruction/loss/color_loss.py:141
Methodforward
(self, depth_pred, depth_gt, mask=None)
reconstruction/loss/depth_loss.py:12
Methodforward
Computes the smoothness loss for a disparity image The color image is used for edge-aware smoothness :param disp: [B, 1, H, W
reconstruction/loss/depth_loss.py:51
Methodforward
(self,model)
ldm/modules/ema.py:25
Methodforward
(self, x)
ldm/modules/x_transformer.py:34
Methodforward
(self, x, seq_dim=1, offset=0)
ldm/modules/x_transformer.py:45
Methodforward
(self, x, **kwargs)
ldm/modules/x_transformer.py:123
Methodforward
(self, x, **kwargs)
ldm/modules/x_transformer.py:134
Methodforward
(self, x)
ldm/modules/x_transformer.py:146
Methodforward
(self, x)
ldm/modules/x_transformer.py:158
Methodforward
(self, x, residual)
ldm/modules/x_transformer.py:164
Methodforward
(self, x, residual)
ldm/modules/x_transformer.py:173
Methodforward
(self, x)
ldm/modules/x_transformer.py:189
Methodforward
(self, x)
ldm/modules/x_transformer.py:210
Methodforward
( self, x, context=None, mask=None, context_mask=N
ldm/modules/x_transformer.py:268
Methodforward
( self, x, context=None, mask=None, context_mask=N
ldm/modules/x_transformer.py:481
Methodforward
( self, x, return_embeddings=False, mask=None, ret
ldm/modules/x_transformer.py:598
Methodforward
(self, x)
ldm/modules/attention.py:42
Methodforward
(self, x)
ldm/modules/attention.py:63
← previousnext →801–900 of 1,158, ranked by callers