video_object_segmenting_mapper#
Text-guided semantic segmentation of valid objects throughout the video (YOLOE + SAM2).
在整个视频中对有效物体进行文本引导的语义分割(YOLOE + SAM2)。
Type 算子类型: mapper
Tags 标签: gpu, hf, video
🔧 Parameter Configuration 参数配置#
name 参数名 |
type 类型 |
default 默认值 |
desc 说明 |
|---|---|---|---|
|
<class 'str'> |
|
|
|
<class 'str'> |
|
The path to the YOLOE model. |
|
<class 'float'> |
|
Confidence threshold for YOLOE object detection. |
|
<class 'str'> |
|
The floating point type used for model inference. Can be one of ['fp32', 'fp16', 'bf16']. |
|
<class 'bool'> |
|
Whether the final mask requires binarization. If 'if_save_visualization' is set to True, 'if_binarize' will automatically be adjusted to True. |
|
<class 'bool'> |
|
Whether to save visualization results. |
|
<class 'str'> |
|
The path for saving visualization results. |
|
|
||
|
|
📊 Effect demonstration 效果演示#
test#
VideoObjectSegmentingMapper(sam2_hf_model='facebook/sam2.1-hiera-tiny', yoloe_path='yoloe-11l-seg.pt', yoloe_conf=0.2, torch_dtype='bf16', if_binarize=True, if_save_visualization=False)