MCPcopy Create free account
hub / github.com/MotrixLab/AiOS / _check_frame_path

Function _check_frame_path

detrsmpl/core/visualization/visualize_keypoints2d.py:260–266  ·  view source on GitHub ↗

Check frame path.

(frame_list)

Source from the content-addressed store, hash-verified

258
259
260def _check_frame_path(frame_list):
261 """Check frame path."""
262 for frame_path in frame_list:
263 if check_path_existence(frame_path, 'file') != Existence.FileExist or \
264 not check_path_suffix(frame_path, ['.png', '.jpg', '.jpeg']):
265 raise FileNotFoundError(
266 f'The frame should be .png or .jp(e)g: {frame_path}')
267
268
269def _check_temp_path(temp_folder, frame_list, overwrite):

Callers 1

__init__Method · 0.85

Calls 2

check_path_existenceFunction · 0.90
check_path_suffixFunction · 0.90

Tested by

no test coverage detected