参考:
https://github.com/facebookresearch/segment-anything-2
安装环境:
git clone https://github.com/facebookresearch/segment-anything-2.git
cd segment-anything-2; pip install -e .
案例代码参考:
1)在线colab
https://colab.research.google.com/github/facebookresearch/segment-anything-2/blob/main/notebooks/image_predictor_example.ipynb#scrollTo=1073a838
https://colab.research.google.com/github/facebookresearch/segment-anything-2/blob/main/not