Skip to content

Commit bc7b178

Browse files
committed
cv2 ignore, pin dev dependency to newer pytorch version
1 parent d11f8af commit bc7b178

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

nerfstudio/data/utils/data_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def get_depth_image_from_path(
116116
else:
117117
image = cv2.imread(str(filepath.absolute()), cv2.IMREAD_ANYDEPTH)
118118
image = image.astype(np.float32) * scale_factor
119-
image = cv2.resize(image, (width, height), interpolation=interpolation)
119+
image = cv2.resize(image, (width, height), interpolation=interpolation) # type: ignore
120120
return torch.from_numpy(image[:, :, np.newaxis])
121121

122122

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ dev = [
103103
# NOTE: Disabling projectaria-tools because it doesn't have prebuilt windows wheels
104104
# Syntax comes from here: https://pip.pypa.io/en/stable/reference/requirement-specifiers/
105105
"projectaria-tools>=1.3.1; sys_platform != 'win32'",
106-
# We could pin torch to <=2.1 to fix https://github.com/pytorch/pytorch/issues/118736
107-
"torch>=1.13.1,<2.2",
106+
"torch==2.7.1",
108107
"awscli==1.33.18"
109108
]
110109

0 commit comments

Comments
 (0)