MCPcopy Create free account
hub / github.com/DSL-Lab/StreamSplat / get_predicted_depth_path

Method get_predicted_depth_path

preprocess_depth_davis.py:96–101  ·  view source on GitHub ↗
(self, image_path)

Source from the content-addressed store, hash-verified

94 ])
95
96 def get_predicted_depth_path(self, image_path):
97 pred_dir = image_path.replace("JPEGImages", "depthImages")
98 pred_dir = osp.dirname(pred_dir)
99 os.makedirs(pred_dir, exist_ok=True)
100 base_name = osp.splitext(osp.basename(image_path))[0] + "_pred.png"
101 return osp.join(pred_dir, base_name)
102
103 def __len__(self):
104 return len(self.all_frames)

Callers 1

__getitem__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected