video_depth_estimation_mapper#
Perform depth estimation on the video.
对视频执行深度估计。
Type 算子类型: mapper
Tags 标签: gpu, video
🔧 Parameter Configuration 参数配置#
name 参数名 |
type 类型 |
default 默认值 |
desc 说明 |
|---|---|---|---|
|
<class ‘str’> |
|
The path to the Video-Depth-Anything model. If the model is a ‘metric’ model, the code will automatically switch to metric mode, and the user should input the path for storing point clouds. |
|
<class ‘str’> |
|
The path for storing point clouds (for a ‘metric’ model). |
|
<class ‘int’> |
|
The maximum resolution threshold for videos; videos exceeding this threshold will be resized. |
|
<class ‘str’> |
|
The floating point type used for model inference. Can be one of [‘fp32’, ‘fp16’] |
|
<class ‘bool’> |
|
Whether to save visualization results. |
|
<class ‘str’> |
|
The path for saving visualization results. |
|
<class ‘bool’> |
|
If True, the colorful palette will not be applied. |
|
|
||
|
|
📊 Effect demonstration 效果演示#
test#
VideoDepthEstimationMapper(video_depth_model_path='video_depth_anything_vits.pth', point_cloud_dir_for_metric=DATA_JUICER_ASSETS_CACHE, max_res=1280, torch_dtype='fp16', if_save_visualization=True, save_visualization_dir=DATA_JUICER_ASSETS_CACHE, grayscale=False)
📥 input data 输入数据#
📤 output data 输出数据#
test_metric#
VideoDepthEstimationMapper(video_depth_model_path='metric_video_depth_anything_vits.pth', point_cloud_dir_for_metric=DATA_JUICER_ASSETS_CACHE, max_res=1280, torch_dtype='fp16', if_save_visualization=True, save_visualization_dir=DATA_JUICER_ASSETS_CACHE, grayscale=False)