MCPcopy Create free account

hub / github.com/Jiawei-Yang/FreeNeRF / functions

Functions244 in github.com/Jiawei-Yang/FreeNeRF

↓ 7 callersFunctionviewmatrix
Construct lookat view matrix.
internal/datasets.py:166
↓ 6 callersMethod__init__
(self, embed_dim: int, # vision image_resolution: int,
DietNeRF-pytorch/CLIP/clip/model.py:264
↓ 6 callersFunctiondownsample
Area downsample img (factor must evenly divide img height and width).
internal/datasets.py:114
↓ 6 callersFunctionmatte
Set non-accumulated pixels to a Photoshop-esque checker pattern.
internal/vis.py:36
↓ 6 callersFunctionnormalize
Normalization helper function.
internal/datasets.py:175
↓ 5 callersFunctionget_rays
(H, W, focal, c2w, nH=None, nW=None, jitter=False)
DietNeRF-pytorch/dietnerf/run_nerf_helpers.py:199
↓ 5 callersFunctionposes_avg
New pose using average position, z-axis, and up vector of input poses.
internal/datasets.py:157
↓ 4 callersMethod_make_layer
(self, planes, blocks, stride=1)
DietNeRF-pytorch/CLIP/clip/model.py:125
↓ 4 callersFunctionmake_wandb_image
(tensor, preprocess='scale')
DietNeRF-pytorch/dietnerf/run_nerf.py:545
↓ 4 callersFunctionopen_file
(pth, mode='r')
internal/utils.py:44
↓ 4 callersFunctionpad_poses
Pad [..., 3, 4] pose matrices with a homogeneous bottom row [0,0,0,1].
internal/datasets.py:132
↓ 4 callersFunctionrender
Render rays Args: H: int. Height of image in pixels. W: int. Width of image in pixels. focal: float. Focal length of pinhole cam
DietNeRF-pytorch/dietnerf/run_nerf.py:87
↓ 4 callersFunctionvisualize_cmap
Visualize a 1D image and a 1D weighting according to some colormap. Args: value: A 1D image. weight: A weight map, in [0, 1]. colormap:
internal/vis.py:56
↓ 3 callersMethod_generate_rays
Generating rays for all images.
internal/datasets.py:581
↓ 3 callersFunctionconvert_to_ndc
Convert a set of rays to normalized device coordinates (NDC). Args: origins: np.ndarray(float32), [..., 3], world space ray origins. direct
internal/datasets.py:42
↓ 3 callersFunctionembed
(ims)
DietNeRF-pytorch/dietnerf/run_nerf.py:489
↓ 3 callersMethodfeaturize
(self, x, num_layers: int=-1)
DietNeRF-pytorch/CLIP/clip/model.py:134
↓ 3 callersMethodflatten
(x)
internal/datasets.py:804
↓ 3 callersMethodpeek
Peek at the next training batch or test example without dequeuing it. Returns: batch: dict, has 'rgb' and 'rays'.
internal/datasets.py:422
↓ 3 callersFunctionrender_path
(render_poses, hwf, chunk, render_kwargs, gt_imgs=None, savedir=None, render_factor=0)
DietNeRF-pytorch/dietnerf/run_nerf.py:160
↓ 3 callersMethodrun
(self)
internal/datasets.py:434
↓ 3 callersFunctionshift_origins
Shift ray origins to near plane, such that oz = near.
internal/datasets.py:150
↓ 3 callersFunctiontree_sum
(tree)
train.py:56
↓ 2 callersMethod_generate_random_poses
Generates random poses.
internal/datasets.py:617
↓ 2 callersMethod_generate_random_poses
Generates random poses.
internal/datasets.py:1105
↓ 2 callersMethod_generate_random_poses
Calculates random poses for the DTU dataset.
internal/datasets.py:1460
↓ 2 callersMethod_generate_rays
Generating rays for all images.
internal/datasets.py:820
↓ 2 callersMethod_generate_rays
Generating rays for all images.
internal/datasets.py:1380
↓ 2 callersMethod_load_renderings
Load images from disk.
internal/datasets.py:780
↓ 2 callersMethod_load_renderings
Load images from disk.
internal/datasets.py:1231
↓ 2 callersFunction_transform
(n_px)
DietNeRF-pytorch/CLIP/clip/clip.py:60
↓ 2 callersFunctionbytes_to_unicode
Returns list of utf-8 byte and a corresponding list of unicode strings. The reversible bpe codes work on unicode strings. This means you
DietNeRF-pytorch/CLIP/clip/simple_tokenizer.py:16
↓ 2 callersFunctioncast_rays
Cast rays (cone- or cylinder-shaped) and featurize sections of it. Args: t_vals: float array, the "fencepost" distances along the ray. orig
internal/mip.py:133
↓ 2 callersFunctionconvolve2d
(z, f)
internal/vis.py:31
↓ 2 callersMethodencode_text
(self, text)
DietNeRF-pytorch/CLIP/clip/model.py:363
↓ 2 callersFunctionfind_interval
(x)
internal/math.py:222
↓ 2 callersFunctionfocus_pt_fn
Calculate nearest point to all focal axes in poses.
internal/datasets.py:123
↓ 2 callersFunctionget_embedder
(multires, i=0)
DietNeRF-pytorch/dietnerf/run_nerf_helpers.py:89
↓ 2 callersFunctionget_freq_mask
(embedded_shape, current_iter, total_iter)
DietNeRF-pytorch/dietnerf/utils.py:5
↓ 2 callersFunctionget_pairs
Return set of symbol pairs in a word. Word is represented as tuple of symbols (symbols being variable-length strings).
DietNeRF-pytorch/CLIP/clip/simple_tokenizer.py:38
↓ 2 callersFunctiongradient_norm
(parameters)
DietNeRF-pytorch/dietnerf/run_nerf_helpers.py:321
↓ 2 callersFunctioninterp
Interpolate between poses as camera-to-world transformation matrices
DietNeRF-pytorch/dietnerf/geometry.py:13
↓ 2 callersFunctionlift_gaussian
Lift a Gaussian defined along a ray to 3D coordinates.
internal/mip.py:51
↓ 2 callersFunctionload_blender_data
(basedir, half_res=False, testskip=1, num_render_poses=40)
DietNeRF-pytorch/dietnerf/load_blender.py:45
↓ 2 callersFunctionlpips_fn
(x, y)
eval.py:75
↓ 2 callersFunctionpatch_device
(module)
DietNeRF-pytorch/CLIP/clip/clip.py:126
↓ 2 callersFunctionpatch_float
(module)
DietNeRF-pytorch/CLIP/clip/clip.py:146
↓ 2 callersFunctionpose_spherical
(theta, phi, radius)
DietNeRF-pytorch/dietnerf/load_blender.py:29
↓ 2 callersFunctionraw2outputs
Transforms model's predictions to semantically meaningful values. Args: raw: [num_rays, num_samples along ray, 4]. Prediction from model.
DietNeRF-pytorch/dietnerf/run_nerf.py:289
↓ 2 callersFunctionrecenter_poses
Recenter poses around the origin.
internal/datasets.py:143
↓ 2 callersFunctionsafe_trig_helper
Helper function used by safe_cos/safe_sin: mods x before sin()/cos().
internal/math.py:27
↓ 2 callersFunctionsample_rays
(H, W, rays_o, rays_d, N_rand, i, start, precrop_iters, precrop_frac)
DietNeRF-pytorch/dietnerf/run_nerf.py:458
↓ 2 callersFunctionsample_recon_scale
Samples a scale factor for the reconstruction loss.
internal/datasets.py:343
↓ 2 callersFunctionssim_fn
(x, y)
eval.py:71
↓ 2 callersFunctionsubsample_patches
Subsamples patches.
internal/datasets.py:277
↓ 2 callersFunctiontree_norm
(tree)
train.py:60
↓ 1 callersMethod__init__
DietNeRF-pytorch/dietnerf/run_nerf_helpers.py:109
↓ 1 callersFunction_download
(url: str, root: str)
DietNeRF-pytorch/CLIP/clip/clip.py:28
↓ 1 callersMethod_generate_downsampled_images
Generating downsampled images.
internal/datasets.py:749
↓ 1 callersMethod_generate_downsampled_rays
Generating downsampled images.
internal/datasets.py:761
↓ 1 callersMethod_generate_random_fullimage_rays
Generating random rays for full images.
internal/datasets.py:709
↓ 1 callersMethod_generate_random_rays
Generating rays for all images.
internal/datasets.py:656
↓ 1 callersMethod_generate_rays
Generate normalized device coordinate rays for llff.
internal/datasets.py:1046
↓ 1 callersMethod_load_masks
Load masks from disk.
internal/datasets.py:1343
↓ 1 callersMethod_load_renderings_featloss
Loades renderings for DietNeRF's feature loss.
internal/datasets.py:700
↓ 1 callersMethod_test_init
(self, config)
internal/datasets.py:492
↓ 1 callersMethod_train_init
Initialize training.
internal/datasets.py:446
↓ 1 callersFunctionalpha_composite
Alpha composite two RGBA images. Source: http://stackoverflow.com/a/9166671/284318 Keyword Arguments: front -- PIL RGBA Image object
DietNeRF-pytorch/dietnerf/scripts/bulk_shrink_images.py:10
↓ 1 callersFunctionalpha_composite_with_color
Alpha composite an RGBA image with a single color image of the specified color and the same size as the original image. Keyword Arguments:
DietNeRF-pytorch/dietnerf/scripts/bulk_shrink_images.py:38
↓ 1 callersFunctionanneal_nearfar
Anneals near and far plane.
internal/datasets.py:316
↓ 1 callersMethodattention
(self, x: torch.Tensor)
DietNeRF-pytorch/CLIP/clip/model.py:187
↓ 1 callersFunctionavailable_models
Returns the names of available CLIP models
DietNeRF-pytorch/CLIP/clip/clip.py:70
↓ 1 callersFunctionbasic_clean
(text)
DietNeRF-pytorch/CLIP/clip/simple_tokenizer.py:50
↓ 1 callersFunctionbatchify
Constructs a version of 'fn' that applies to smaller batches.
DietNeRF-pytorch/dietnerf/run_nerf.py:31
↓ 1 callersFunctionbatchify_rays
Render rays in smaller minibatches to avoid OOM.
DietNeRF-pytorch/dietnerf/run_nerf.py:65
↓ 1 callersMethodbpe
(self, token)
DietNeRF-pytorch/CLIP/clip/simple_tokenizer.py:80
↓ 1 callersMethodbuild_attention_mask
(self)
DietNeRF-pytorch/CLIP/clip/model.py:348
↓ 1 callersFunctionbuild_model
(state_dict: dict)
DietNeRF-pytorch/CLIP/clip/model.py:419
↓ 1 callersFunctioncompute_ternary_census
Compute the ternary census transform for an image.
internal/math.py:70
↓ 1 callersFunctionconfig_parser
()
DietNeRF-pytorch/dietnerf/run_nerf.py:560
↓ 1 callersFunctionconvert_weights
Convert applicable model parameters to fp16
DietNeRF-pytorch/CLIP/clip/model.py:395
↓ 1 callersMethodcreate_embedding_fn
(self)
DietNeRF-pytorch/dietnerf/run_nerf_helpers.py:61
↓ 1 callersFunctioncreate_nerf
Instantiate NeRF's MLP model.
DietNeRF-pytorch/dietnerf/run_nerf.py:193
↓ 1 callersFunctioncreate_videos
Creates videos out of the images saved to disk. Credits to: https://github.com/google-research/multinerf/blob/main/render.py
render.py:39
↓ 1 callersMethoddecode
(self, tokens)
DietNeRF-pytorch/CLIP/clip/simple_tokenizer.py:129
↓ 1 callersFunctiondefault_bpe
()
DietNeRF-pytorch/CLIP/clip/simple_tokenizer.py:11
↓ 1 callersFunctiondepth_to_normals
Assuming `depth` is orthographic, linearize it to a set of normals.
internal/vis.py:45
↓ 1 callersMethodembed
(self, inputs)
DietNeRF-pytorch/dietnerf/run_nerf_helpers.py:85
↓ 1 callersMethodencode
(self, text)
DietNeRF-pytorch/CLIP/clip/simple_tokenizer.py:121
↓ 1 callersMethodencode_image
(self, image)
DietNeRF-pytorch/CLIP/clip/model.py:360
↓ 1 callersFunctionexpected_sin
Estimates mean and variance of sin(z), z ~ N(x, var).
internal/mip.py:39
↓ 1 callersMethodfeaturize
(self, x: torch.Tensor, num_layers: int=-1)
DietNeRF-pytorch/CLIP/clip/model.py:231
↓ 1 callersMethodforward
(self, image, text)
DietNeRF-pytorch/CLIP/clip/model.py:378
↓ 1 callersMethodforward_prefix
(self, x: torch.Tensor, num_layers: int)
DietNeRF-pytorch/CLIP/clip/model.py:207
↓ 1 callersFunctiongenerate_hemispherical_orbit
Calculates a render path which orbits around the z-axis.
internal/datasets.py:228
↓ 1 callersFunctiongenerate_spiral_path
Calculates a forward facing spiral path for rendering.
internal/datasets.py:180
↓ 1 callersFunctiongenerate_spiral_path_dtu
Calculates a forward facing spiral path for rendering for DTU.
internal/datasets.py:207
↓ 1 callersFunctionget_embed_fn
(model_type, num_layers=-1, spatial=False, checkpoint=False, clip_cache_root=None)
DietNeRF-pytorch/dietnerf/run_nerf.py:481
↓ 1 callersFunctionget_perceptual_metrics
(rgbs, gts, lpips_batch_size=8, device='cuda')
DietNeRF-pytorch/dietnerf/run_nerf_helpers.py:18
↓ 1 callersMethodinitialize_parameters
(self)
DietNeRF-pytorch/CLIP/clip/model.py:319
next →1–100 of 244, ranked by callers