Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Jiawei-Yang/FreeNeRF
/ functions
Functions
244 in github.com/Jiawei-Yang/FreeNeRF
⨍
Functions
244
◇
Types & classes
25
Function
makedirs
(pth)
internal/utils.py:60
Function
matmul
jnp.matmul defaults to bfloat16, but this helper function doesn't.
internal/math.py:22
Function
maximize_saturation
Rescale the maximum saturation in `rgb` to be 1.
internal/vis.py:175
Function
mse_to_psnr
Compute PSNR given an MSE (we assume the maximum pixel value is 1).
internal/math.py:42
Method
normalize_vec
(x, eps=1e-9)
internal/datasets.py:636
Function
plot_losses
(losses, dir)
DietNeRF-pytorch/CLIP/clip_utils.py:99
Function
pos_enc
The positional encoding used by the original NeRF paper.
internal/mip.py:27
Method
predict_density
Helper function to output density.
internal/models.py:211
Function
probe
( dataset_type, datadir, half_res, output_path, testskip=8, device='cuda', batch_s
DietNeRF-pytorch/dietnerf/probe_inductive_bias.py:13
Function
render_eval_fn
(variables, _, rays)
eval.py:125
Function
render_eval_fn
(variables, _, rays)
train.py:304
Function
render_eval_fn
(variables, _, rays)
render.py:172
Function
render_image
Render all the pixels of an image (in test mode). Args: render_fn: function, jit-ed render function. rays: a `Rays` pytree, the rays to be
internal/models.py:302
Method
res2grid
(w, h)
internal/datasets.py:827
Function
resample_along_rays
Resampling. Args: rng: random number generator (or None for deterministic resampling). origins: Tensor, [..., 3], ray origins. directio
internal/mip.py:349
Method
rescale_poses
Rescales camera poses according to maximum x/y/z value.
internal/datasets.py:1289
Method
reset_parameters
(self)
DietNeRF-pytorch/dietnerf/run_nerf_helpers.py:49
Function
ret
(inputs)
DietNeRF-pytorch/dietnerf/run_nerf.py:36
Function
safe_cos
jnp.cos() on a TPU may NaN out for large values.
internal/math.py:32
Function
safe_sin
jnp.sin() on a TPU may NaN out for large values.
internal/math.py:37
Function
sample_along_rays
Stratified sampling along the rays. Args: rng: random generator. If `None`, use deterministic sampling. origins: [..., 3], ray origins.
internal/mip.py:297
Method
sample_on_sphere
(n_samples, only_upper=True, radius=4.03112885717555)
internal/datasets.py:622
Function
save_img_f32
Save an image (probably a depthmap) to disk as a float32 TIFF.
internal/utils.py:119
Function
save_img_u8
Save an image (probably RGB) in [0, 1] to disk as a uint8 PNG.
internal/utils.py:111
Function
shard
Split data into shards for multiple devices along the first dimension.
internal/utils.py:66
Function
sinebow
A cyclic and uniform colormap, see http://basecase.org/env/on-rainbows.
internal/vis.py:25
Method
size
(self)
internal/datasets.py:443
Function
sorted_piecewise_constant_pdf
Piecewise-Constant PDF sampling from sorted bins. Args: rng: random number generator (or None for `linspace` sampling). bins: [..., num_bin
internal/math.py:169
Function
srgb_to_linear
(srgb)
internal/math.py:117
Method
stem
(x)
DietNeRF-pytorch/CLIP/clip/model.py:137
Function
test_consistency
(model_name)
DietNeRF-pytorch/CLIP/tests/test_consistency.py:10
Function
to_device
Transfer data to devices (GPU/TPU).
internal/utils.py:72
Function
tokenize
Returns the tokenized representation of given input string(s) Parameters ---------- texts : Union[str, List[str]] An input s
DietNeRF-pytorch/CLIP/clip/clip.py:167
Function
train_step
One optimization step. Args: model: The linen model. config: The configuration. rng: jnp.ndarray, random number generator. state: u
train.py:64
Function
unshard
Collect the sharded tensor to the shape before sharding.
internal/utils.py:77
Function
visualize_coord_fix
Visualize the "cell" each coordinate lives in, and highlight its edges.
internal/vis.py:133
Function
visualize_coord_mod
Visualize the coordinate of each point within its "cell".
internal/vis.py:128
Function
visualize_coord_norm
Visualize the distance of each coordinate from the origin.
internal/vis.py:160
Function
visualize_depth
Visualizes depth maps.
internal/vis.py:301
Function
visualize_normals
Visualize fake normals of `depth` (optionally scaled to be isotropic).
internal/vis.py:113
Function
visualize_rays
Visualize a bundle of rays.
internal/vis.py:184
Function
visualize_suite
A wrapper around other visualizations for easy integration.
internal/vis.py:253
Function
volumetric_rendering
Volumetric Rendering Function. Args: rgbs: jnp.ndarray(float32), color, [batch_size, num_samples, 3] weights: jnp.ndarray(float32), weights
internal/mip.py:216
Function
weighted_percentile
Compute the weighted percentile(s) of a single vector.
internal/math.py:52
← previous
201–244 of 244, ranked by callers