mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-13 03:14:00 +08:00
* starting docs for pipelines * working on an example * clearing output * starting to implement config changes and add documentation * removing diff * format * templated pipeline notebook a bit * black
4.2 MiB
4.2 MiB
In [1]:
# HIDDEN
import torch
from nerfactory.cameras import cameras
import plotly.graph_objects as go
import mediapy as mediaIn [2]:
# COLLAPSED
from nerfactory.cameras import cameras
from nerfactory.utils import plotly as vis
cx = 20
cy = 10
fx = 20
fy = 20
camera = cameras.PinholeCamera(cx, cy, fx, fy)
fig = vis.vis_camera_rays(camera)
fig.show()In [3]:
# COLLAPSED
from nerfactory.cameras import cameras
height = 10
width = 30
camera = cameras.EquirectangularCamera(height=height, width=width)
fig = vis.vis_camera_rays(camera)
fig.show()