class_docstr: Original NeRF network.
class_docstr_tok: ["Original","NeRF","network","."]
code: def __init__(
      self,
      ray_samples_coarse=128,
      ray_samples_fine=128,
      near=1.0,
      far=3.0,
      n_freq_posenc_xyz=8,
      n_freq_posenc_dir=4,
      scene_bbox=(-1.0, -1.0, -1.0, 1.0, 1.0, 1.0),
      n_filters=256,
      white_background=True,
      coarse_sampling_strategy="stratified",
  ):
      # Ray parameters
      self.ray_samples_coarse = ray_samples_coarse
      self.ray_samples_fine = ray_samples_fine
      self.near = near
      self.far = far
      self.white_background = white_background
      # Network parameters
      self.n_freq_posenc_xyz = n_freq_posenc_xyz
      self.n_freq_posenc_dir = n_freq_posenc_dir
  
      scene_bbox = np.array(scene_bbox).reshape([2, 3])
      area_dims = scene_bbox[1, :] - scene_bbox[0, :]
      scene_scale = 1.0 / (max(area_dims) / 2.0)
      scene_translation = -np.mean(scene_bbox, axis=0)
      self.scene_scale = scene_scale
      self.scene_transl = scene_translation
  
      self.n_filters = n_filters
  
      self.coarse_sampling_strategy = coarse_sampling_strategy
  
      self.xyz_dim = n_freq_posenc_xyz * 2 * 3 + 3
      self.dir_dim = n_freq_posenc_dir * 2 * 3 + 3
      self.coarse_model = None
      self.fine_model = None
      self.optimizer_network = None
      self.network_vars = None
  
      self.coarse_model_backup = None
      self.fine_model_backup = None
  
      self.latest_epoch = None
      self.global_step = None
      self.summary_writer = None
      self.checkpoint = None
      self.manager = None
  
file_path: graphics/tensorflow_graphics/projects/radiance_fields/nerf/model.py
imports: from absl import logging
  import numpy
  import tensorflow
  import tensorflow_graphics.geometry.representation.ray
  import tensorflow_graphics.math.feature_representation
  import tensorflow_graphics.projects.radiance_fields.nerf.layers
  import tensorflow_graphics.projects.radiance_fields.utils
  import tensorflow_graphics.rendering.volumetric.ray_radiance
label_desc: Use image node_id 1 to create a new NeRF object  with example: obj = NeRF(ray_samples_coarse, ray_samples_fine, near, far, n_freq_posenc_xyz, n_freq_posenc_dir, scene_bbox, n_filters, white_background, coarse_sampling_strategy)