Skip to content

Commit

Permalink
nerfstudio
Browse files Browse the repository at this point in the history
  • Loading branch information
Temmuz Celik committed Jun 3, 2024
1 parent 7ba02be commit aec476e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion nerfstudio/data/dataparsers/blender_dataparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

import imageio
import numpy as np
import open3d as o3d
#import open3d as o3d
import torch

from nerfstudio.cameras.cameras import Cameras, CameraType
Expand Down
8 changes: 4 additions & 4 deletions nerfstudio/data/dataparsers/nerfstudio_dataparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,10 +397,10 @@ def _generate_dataparser_outputs(self, split="train"):
)
ply_file_path = None

Check failure on line 398 in nerfstudio/data/dataparsers/nerfstudio_dataparser.py

View workflow job for this annotation

GitHub Actions / build

Ruff (F841)

nerfstudio/data/dataparsers/nerfstudio_dataparser.py:398:17: F841 Local variable `ply_file_path` is assigned to but never used

if ply_file_path:
sparse_points = self._load_3D_points(ply_file_path, transform_matrix, scale_factor)
if sparse_points is not None:
metadata.update(sparse_points)
# if ply_file_path:
# sparse_points = self._load_3D_points(ply_file_path, transform_matrix, scale_factor)
# if sparse_points is not None:
# metadata.update(sparse_points)
self.prompted_user = True

dataparser_outputs = DataparserOutputs(
Expand Down
3 changes: 2 additions & 1 deletion nerfstudio/data/dataparsers/scannetpp_dataparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ def _generate_dataparser_outputs(self, split="train"):
image_filenames=image_filenames,
cameras=cameras,
scene_box=scene_box,
mask_filenames=mask_filenames if len(mask_filenames) > 0 else None,
#mask_filenames=mask_filenames if len(mask_filenames) > 0 else None,
mask_filenames=None,
dataparser_scale=scale_factor,
dataparser_transform=transform_matrix,
metadata={},
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ dependencies = [
"msgpack>=1.0.4",
"msgpack_numpy>=0.4.8",
"nerfacc==0.5.2",
"open3d>=0.16.0",
"opencv-python==4.8.0.76",
"Pillow>=10.3.0",
"plotly>=5.7.0",
Expand Down

0 comments on commit aec476e

Please sign in to comment.