mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-07 00:09:14 +08:00
Keep depth_image on CPU (#3449)
Co-authored-by: J.Y. <132313008+jb-ye@users.noreply.github.com>
This commit is contained in:
1 parent
334a1c8afe
commit
866a069777
1 file changed
+2
@@ -41,6 +41,8 @@ class DepthDataset(InputDataset):
|
|||||||
scale_factor: The scaling factor for the dataparser outputs.
|
scale_factor: The scaling factor for the dataparser outputs.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
exclude_batch_keys_from_device = InputDataset.exclude_batch_keys_from_device + ["depth_image"]
|
||||||
|
|
||||||
def __init__(self, dataparser_outputs: DataparserOutputs, scale_factor: float = 1.0):
|
def __init__(self, dataparser_outputs: DataparserOutputs, scale_factor: float = 1.0):
|
||||||
super().__init__(dataparser_outputs, scale_factor)
|
super().__init__(dataparser_outputs, scale_factor)
|
||||||
# if there are no depth images than we want to generate them all with zoe depth
|
# if there are no depth images than we want to generate them all with zoe depth
|
||||||
|
|||||||
Reference in new issue
Block a user