pub struct NeRFConfig {
pub num_samples_coarse: usize,
pub num_samples_fine: usize,
pub num_freq_bands: usize,
pub hidden_size: usize,
pub num_layers: usize,
pub skip_layer: usize,
pub use_view_dirs: bool,
pub near: f32,
pub far: f32,
}Expand description
NeRF configuration
Fields§
§num_samples_coarse: usizeNumber of samples per ray (coarse)
num_samples_fine: usizeNumber of samples per ray (fine)
num_freq_bands: usizeNumber of frequency bands for positional encoding
Hidden layer size
num_layers: usizeNumber of hidden layers
skip_layer: usizeSkip connection layer
use_view_dirs: boolUse view direction
near: f32Near plane distance
far: f32Far plane distance
Implementations§
Trait Implementations§
Source§impl Clone for NeRFConfig
impl Clone for NeRFConfig
Source§fn clone(&self) -> NeRFConfig
fn clone(&self) -> NeRFConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NeRFConfig
impl Debug for NeRFConfig
Auto Trait Implementations§
impl Freeze for NeRFConfig
impl RefUnwindSafe for NeRFConfig
impl Send for NeRFConfig
impl Sync for NeRFConfig
impl Unpin for NeRFConfig
impl UnwindSafe for NeRFConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more