# Path: sunds/typing.py



from typing import Optional
from sunds.typing import Json
import numpy as np
import sunds
import tensorflow_datasets as tfds
    citation="""
    @inproceedings{mildenhall2020nerf,
      title={NeRF: Representing Scenes as Neural Radiance Fields for View Synthesis},
      author={Mildenhall, Ben and Srinivasan, Pratul P and Tancik, Matthew and Barron, Jonathan T and Ramamoorthi, Ravi and Ng, Ren},
      booktitle={European Conference on Computer Vision},
      pages={405--421},
      year={2020},
      organization={Springer}
    }
    """,
)
DL_URL = 'https://drive.google.com/uc?id=18JxhpWD-4ZmuFKLzKlAw-w5PpzZxXOcG&export=download'

IMG_SHAPE = (800, 800)

CAMERA_NAME = 'default_camera'


def camera_intrinsics(scene_data: Json) -> sunds.specs_utils.CameraIntrinsics:
  return sunds.specs_utils.CameraIntrinsics.from_fov(
      img_shape=IMG_SHAPE,
      fov_in_degree=(scene_data['camera_angle_x'],
                     scene_data['camera_angle_x']),
  )


def frame(
    *,
    scene_name: Optional[str] = None,
    frame_name: str,  # pylint: disable=redefined-outer-name

# Path: sunds/typing.py



# Path: sunds/datasets/nerf_synthetic/builder_utils.py
from typing import Optional
from sunds.typing import Json
import numpy as np
import sunds
import tensorflow_datasets as tfds

    citation="""
    @inproceedings{mildenhall2020nerf,
      title={NeRF: Representing Scenes as Neural Radiance Fields for View Synthesis},
      author={Mildenhall, Ben and Srinivasan, Pratul P and Tancik, Matthew and Barron, Jonathan T and Ramamoorthi, Ravi and Ng, Ren},
      booktitle={European Conference on Computer Vision},
      pages={405--421},
      year={2020},
      organization={Springer}
    }
    """,
)
DL_URL = 'https://drive.google.com/uc?id=18JxhpWD-4ZmuFKLzKlAw-w5PpzZxXOcG&export=download'

IMG_SHAPE = (800, 800)

CAMERA_NAME = 'default_camera'


def camera_intrinsics(scene_data: Json) -> sunds.specs_utils.CameraIntrinsics:
  return sunds.specs_utils.CameraIntrinsics.from_fov(
      img_shape=IMG_SHAPE,
      fov_in_degree=(scene_data['camera_angle_x'],
                     scene_data['camera_angle_x']),
  )


def frame(
    *,
    scene_name: Optional[str] = None,
    frame_name: str,  # pylint: disable=redefined-outer-name

    frame_data: Json,