MCPcopy Create free account

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

Functions244 in github.com/Jiawei-Yang/FreeNeRF

↓ 1 callersFunctionlog_lerp
Interpolate log-linearly from `v0` (t=0) to `v1` (t=1).
internal/math.py:125
↓ 1 callersFunctionndc_rays
(H, W, focal, near, rays_o, rays_d)
DietNeRF-pytorch/dietnerf/run_nerf_helpers.py:254
↓ 1 callersFunctionpose_spherical_uniform
(theta_range, phi_range, radius_range)
DietNeRF-pytorch/dietnerf/load_blender.py:37
↓ 1 callersFunctionpsnr_to_mse
Compute MSE given a PSNR (we assume the maximum pixel value is 1).
internal/math.py:47
↓ 1 callersFunctionrender_rays
Volumetric rendering. Args: ray_batch: array of shape [batch_size, ...]. All information necessary for sampling along a ray, includi
DietNeRF-pytorch/dietnerf/run_nerf.py:337
↓ 1 callersFunctionrgba_to_rgb
(rgba_image)
DietNeRF-pytorch/CLIP/clip_utils.py:71
↓ 1 callersFunctionrun_network
Prepares inputs and applies network 'fn'.
DietNeRF-pytorch/dietnerf/run_nerf.py:40
↓ 1 callersFunctionsample_pdf
(bins, weights, N_samples, det=False, pytest=False)
DietNeRF-pytorch/dietnerf/run_nerf_helpers.py:275
↓ 1 callersFunctionshrink
(test_img)
DietNeRF-pytorch/dietnerf/scripts/bulk_shrink_images.py:50
↓ 1 callersFunctionslerp
(p0, p1, t)
DietNeRF-pytorch/dietnerf/geometry.py:6
↓ 1 callersFunctionssim_fn
(x, y)
train.py:322
↓ 1 callersFunctiontrain
()
DietNeRF-pytorch/dietnerf/run_nerf.py:740
↓ 1 callersFunctiontransform_poses_to_hemisphere
Transforms input poses to lie roughly on the upper unit hemisphere.
internal/datasets.py:248
↓ 1 callersMethodtrunk_pts
(self, input_pts)
DietNeRF-pytorch/dietnerf/run_nerf_helpers.py:134
↓ 1 callersMethodtrunk_viewdirs
(self, h)
DietNeRF-pytorch/dietnerf/run_nerf_helpers.py:143
↓ 1 callersFunctionunpad_poses
Remove the homogeneous bottom row from [..., 4, 4] pose matrices.
internal/datasets.py:138
↓ 1 callersFunctionwhitespace_clean
(text)
DietNeRF-pytorch/CLIP/clip/simple_tokenizer.py:56
Method__call__
The mip-NeRF Model. Args: rng: random number generator (or None for deterministic output). rays: util.Rays, a pytree of ray origins,
internal/models.py:43
Method__call__
Evaluate the MLP. Args: rng: random number generator (or None for deterministic output). samples: a tuple containing: - mean:
internal/models.py:188
Method__init__
(self, split, data_dir, config)
internal/datasets.py:357
Method__init__
(self, in_dim: int, out_dim: int, activation: str = "relu", *args, **kwargs)
DietNeRF-pytorch/dietnerf/run_nerf_helpers.py:45
Method__init__
(self, **kwargs)
DietNeRF-pytorch/dietnerf/run_nerf_helpers.py:57
Method__init__
(self, clip_model)
DietNeRF-pytorch/CLIP/clip_utils.py:23
Method__init__
(self, bpe_path: str = default_bpe())
DietNeRF-pytorch/CLIP/clip/simple_tokenizer.py:63
Method__init__
(self, inplanes, planes, stride=1)
DietNeRF-pytorch/CLIP/clip/model.py:12
Method__init__
(self, spacial_dim: int, embed_dim: int, num_heads: int, output_dim: int = None)
DietNeRF-pytorch/CLIP/clip/model.py:56
Method__init__
(self, layers, output_dim, heads, input_resolution=224, width=64)
DietNeRF-pytorch/CLIP/clip/model.py:100
Method__init__
(self, d_model: int, n_head: int, attn_mask: torch.Tensor = None)
DietNeRF-pytorch/CLIP/clip/model.py:174
Method__init__
(self, width: int, layers: int, heads: int, attn_mask: torch.Tensor = None)
DietNeRF-pytorch/CLIP/clip/model.py:198
Method__init__
(self, input_resolution: int, patch_size: int, width: int, layers: int, heads: int, output_dim: int)
DietNeRF-pytorch/CLIP/clip/model.py:215
Method__iter__
(self)
internal/datasets.py:407
Method__next__
Get the next training batch or test example. Returns: batch: dict, has 'rgb' and 'rays'.
internal/datasets.py:410
Function_convert_weights_to_fp16
(l)
DietNeRF-pytorch/CLIP/clip/model.py:398
Method_generate_downsampled_rays
Generating downsampled images.
internal/datasets.py:1090
Method_generate_downsampled_rays
Generating downsampled images.
internal/datasets.py:1436
Method_generate_random_fullimage_rays
Generates random full image rays for DietNeRF loss.
internal/datasets.py:1182
Method_generate_random_fullimage_rays
Generating random rays for full images.
internal/datasets.py:1553
Method_generate_random_rays
Generates random rays.
internal/datasets.py:1134
Method_generate_random_rays
Generating rays for all images.
internal/datasets.py:1497
Method_load_renderings
Load images from disk.
internal/datasets.py:877
Method_load_renderings
Load images from disk.
internal/datasets.py:951
Method_next_test
Sample next test example.
internal/datasets.py:557
Method_next_train
Sample next training batch.
internal/datasets.py:499
Function_resize
(path)
DietNeRF-pytorch/dietnerf/scripts/bulk_shrink_images.py:71
Method_test_init
(self, config)
internal/datasets.py:815
Method_train_init
Initialize training.
internal/datasets.py:799
Methodadjust_rays_to_ndc
(rays, focal, width, height)
internal/datasets.py:1055
Methodbroadcast_scalar_attribute
(x)
internal/datasets.py:845
Functioncompute_alpha_weights
Helper function for computing alpha compositing weights.
internal/mip.py:200
Functioncompute_avg_error
The 'average' error used in the paper.
internal/math.py:63
Functioncompute_census_err
Computes an error between two images using a (ternary) census transform. This error is large when things are very wrong, and will be 0 when the mat
internal/math.py:87
Functioncompute_tv_norm
Returns TV norm for input values. Note: The weighting / masking term was necessary to avoid degenerate solutions on GPU; only observed on individ
internal/math.py:237
Functioncompute_tvnorm_weight
Computes loss weight for tv norm.
internal/math.py:259
Functionconical_frustum_to_gaussian
Approximate a conical frustum as a Gaussian distribution (mean+cov). Assumes the ray is originating from the origin, and base_radius is the radiu
internal/mip.py:74
Functionconstruct_mipnerf
Construct a Neural Radiance Field. Args: rng: jnp.ndarray. Random number generator. rays: an example of input Rays. config: A Config cl
internal/models.py:143
Functionconstruct_ray_warps
Construct a bijection between metric distances and normalized distances. See the text around Equation 11 in https://arxiv.org/abs/2111.12077 for a
internal/mip.py:407
Methodcreate_look_at
Creates lookat matrix.
internal/datasets.py:629
Functioncylinder_to_gaussian
Approximate a cylinder as a Gaussian distribution (mean+cov). Assumes the ray is originating from the origin, and radius is the radius. Does not
internal/mip.py:111
Functiondataclass_map
Behaves like jax.tree_map but doesn't recurse on fields of a dataclass.
internal/utils.py:106
Functiondefine_common_flags
()
internal/configs.py:164
Functiondo_resize
(input_glob_pattern, output_directory, overwrite=False)
DietNeRF-pytorch/dietnerf/scripts/bulk_shrink_images.py:61
Methoddtype
(self)
DietNeRF-pytorch/CLIP/clip/model.py:357
Functionembed_image
(image)
DietNeRF-pytorch/CLIP/clip_utils.py:83
Functionembed_text
(text: str)
DietNeRF-pytorch/CLIP/clip_utils.py:62
Functionfile_exists
(pth)
internal/utils.py:48
Methodforward
(self, x)
DietNeRF-pytorch/dietnerf/run_nerf_helpers.py:151
Methodforward
(self, images_or_text, encode_image=True, num_layers=-1, featurize=True)
DietNeRF-pytorch/CLIP/clip_utils.py:27
Methodforward
(self, x: torch.Tensor)
DietNeRF-pytorch/CLIP/clip/model.py:39
Methodforward
(self, x)
DietNeRF-pytorch/CLIP/clip/model.py:65
Methodforward
(self, x)
DietNeRF-pytorch/CLIP/clip/model.py:148
Methodforward
(self, x: torch.Tensor)
DietNeRF-pytorch/CLIP/clip/model.py:162
Methodforward
(self, x: torch.Tensor)
DietNeRF-pytorch/CLIP/clip/model.py:169
Methodforward
(self, x: torch.Tensor)
DietNeRF-pytorch/CLIP/clip/model.py:191
Methodforward
(self, x: torch.Tensor)
DietNeRF-pytorch/CLIP/clip/model.py:204
Methodforward
(self, x: torch.Tensor)
DietNeRF-pytorch/CLIP/clip/model.py:253
Functiongenspace
A generalization of linspace(), geomspace(), and NeRF's "lindisp". Behaves like jnp.linspace(), except it allows an optional function that "curve
internal/spacing.py:21
Functionget_freq_reg_mask
Returns a frequency mask for position encoding in NeRF. Args: pos_enc_length (int): Length of the position encoding. current_iter (int
internal/math.py:277
Functionget_rays_np
(H, W, focal, c2w)
DietNeRF-pytorch/dietnerf/run_nerf_helpers.py:244
Functionintegrated_pos_enc
Encode `x` with sinusoids scaled by 2^[min_deg:max_deg-1]. Args: x_coord: a tuple containing: x, jnp.ndarray, variables to be encoded. Should
internal/mip.py:160
Functioninterp3
(pose1, pose2, pose3, s12, s3)
DietNeRF-pytorch/dietnerf/geometry.py:33
Functionisdir
(pth)
internal/utils.py:56
Functionlearning_rate_decay
Continuous learning rate decay function. The returned rate is lr_init when step=0 and lr_final when step=max_steps, and is log-linearly interpola
internal/math.py:134
Functionlinear_to_srgb
(linear)
internal/math.py:109
Functionlistdir
(pth)
internal/utils.py:52
Functionload
Load a CLIP model Parameters ---------- name : str A model name listed by `clip.available_models()`, or the path to a model check
DietNeRF-pytorch/CLIP/clip/clip.py:75
Functionload_config
Loads config.
internal/configs.py:170
Functionload_dataset
Loads a split of a dataset using the data_loader specified by `config`.
internal/datasets.py:31
Functionload_exif
Load EXIF data for an image.
internal/utils.py:93
Functionload_img
Load an image and cast to float32.
internal/utils.py:85
Functionload_rn
(name='RN50', jit=False, device=DEVICE, root: str=os.path.expanduser("~/.cache/clip"))
DietNeRF-pytorch/CLIP/clip_utils.py:50
Functionload_vit
(name="ViT-B/32", jit=False, device=DEVICE, root: str=os.path.expanduser("~/.cache/clip"))
DietNeRF-pytorch/CLIP/clip_utils.py:39
Methodload_weights_from_keras
(self, weights)
DietNeRF-pytorch/dietnerf/run_nerf_helpers.py:166
Functionloss_fn
(variables)
train.py:94
Functionlossfun_distortion
Compute iint w[i] w[j] |t[i] - t[j]| di dj.
internal/math.py:265
Functionlossfun_occ_reg
Computes the occulusion regularization loss. Args: rgb (jnp.array): The RGB rays/images. density (jnp.array): The current de
internal/math.py:315
Functionmain
(unused_argv)
eval.py:49
Functionmain
(unused_argv)
train.py:250
Functionmain
(unused_argv)
render.py:98
Functionmake_synthetic_scenes
(start_id, max_train_views=-1, consistency_loss=False)
DietNeRF-pytorch/dietnerf/config_generator.py:31
Functionmake_wandb_histogram
(tensor)
DietNeRF-pytorch/dietnerf/run_nerf.py:557
← previousnext →101–200 of 244, ranked by callers