ethanweber / nerfiller

NeRFiller project https://ethanweber.me/nerfiller/
Apache License 2.0
101 stars 3 forks source link

ModuleNotFoundError: No module named 'kornia' #11

Closed lionlai1989 closed 6 months ago

lionlai1989 commented 6 months ago

Hi, I was running create_nerfstudio_dataset.ipynb and found that kornia is not installed.

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[1], line 11
      9 from nerfiller.utils.mesh_utils import project_mesh_into_perspective_image, dilate, erode, get_mesh_from_perspective_images, get_cube
     10 from nerfiller.utils.camera_utils import c2wh_from_c2w, rot_y, rot_x, rot_z, get_focal_len_from_fov
---> 11 from nerfiller.utils.depth_utils import depth_to_distance
     12 from nerfstudio.cameras.camera_utils import viewmatrix
     13 from nerfiller.utils.image_utils import image_tensor_to_npy, get_inpainted_image_row

      1 import math
      3 import torch
----> 5 from kornia.geometry.conversions import (
      6     convert_points_to_homogeneous,
      7 )
      8 from kornia.geometry.epipolar import (
      9     triangulate_points,
     10 )
     11 from nerfiller.utils.typing import *

ModuleNotFoundError: No module named 'kornia'
ethanweber commented 6 months ago

Thanks for informing me! I just updated the pyproject.toml to include kornia!