FCOS3D
FCOS3D predicts three-dimensional boxes from a single image.
- 任务
- 3d detection
- 尺寸
- r101 at 1600 px
- 安装
pip install "libreyolo[hf]"- 支持层级
- 兄弟层级,自 v1.6.0 起。一个独立的产品面,有自己的工厂和契约。
- 许可
- 代码采用 MIT,权重采用 No separate artifact grant recorded。商用
Install
bash
pip install "libreyolo[hf]"Predict
Python
from libreyolo import LibreFCOS3D, SAMPLE_IMAGEfrom PIL import Image model = LibreFCOS3D(device="cpu")# Rough pinhole guess so the snippet runs. For real metric boxes, pass# your camera's measured 3x3 matrix for the original image size.w, h = Image.open(SAMPLE_IMAGE).sizef = float(max(w, h))intrinsics = [[f, 0, w / 2], [0, f, h / 2], [0, 0, 1]]result = model.predict(SAMPLE_IMAGE, intrinsics=intrinsics)print(result.boxes3d)FCOS3D runs natively on CPU or CUDA and requires original-image camera intrinsics. MPS is not supported. The default confidence is 0.05, rotated NMS IoU is 0.8 and max_det is 200.
result.boxes3d holds centers, dimensions and wxyz quaternions in camera coordinates, plus confidence, class and intrinsics. Plotting projects cuboids into the image. Training, validation, tracking and export are not supported. See 3D detection.
Licensing
请检查你所下载的具体权重在 Hugging Face 仓库中的许可。LibreYOLO 组织里的每个检查点都附有许可,同一家族内也不一定相同。该仓库是权威来源;以下摘要说明本页上次验证时适用的情况。
这里只说明涉及的许可证,不构成法律意见。如果答案对商用很重要,请自行阅读许可证并咨询法律顾问。
- 原始工作
- FCOS3D, OpenMMLab
- 上游许可
- Apache-2.0 code
- LibreYOLO 代码
- MIT
- 权重
- 采用 No separate artifact grant recorded 许可,重新发布在 huggingface.co/LibreYOLO
- 解读
- The upstream repository declares Apache-2.0. A distinct per-artifact checkpoint license is not recorded in the library source.
Citation
@inproceedings{wang2021fcos3d,
title={{FCOS3D: Fully} Convolutional One-Stage Monocular 3D Object Detection},
author={Wang, Tai and Zhu, Xinge and Pang, Jiangmiao and Lin, Dahua},
booktitle={Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV) Workshops},
year={2021}
}复制自作者在 raw.githubusercontent.com/open-mmlab/mmdetection3d/main/configs/fcos3d/README.md 上提供的引用块。