在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):skhadem/3D-BoundingBox开源软件地址(OpenSource Url):https://github.com/skhadem/3D-BoundingBox开源编程语言(OpenSource Language):Python 44.6%开源软件介绍(OpenSource Introduction):3D Bounding Box Estimation Using Deep Learning and GeometryIf interested, join the slack workspace where the paper is discussed, issues are worked through, and more! Click this link to join. IntroductionPyTorch implementation for this paper. At the moment, it takes approximately 0.4s per frame, depending on the number of objects detected. An improvement will be speed upgrades soon. Here is the current fastest possible: Requirements
UsageIn order to download the weights:
This will download pre-trained weights for the 3D BoundingBox net and also YOLOv3 weights from the official yolo source.
To see all the options:
Run through all images in default directory (eval/image_2/), optionally with the 2D bounding boxes also drawn. Press SPACE to proceed to next image, and any other key to exit.
There is also a script provided to download the default video from Kitti in ./eval/video. Or,
download any Kitti video and corresponding calibration and use
TrainingFirst, the data must be downloaded from Kitti. Download the left color images, the training labels, and the camera calibration matrices. Total is ~13GB. Unzip the downloads into the Kitti/ directory.
By default, the model is saved every 10 epochs in weights/. The loss is printed every 10 batches. The loss should not converge to 0! The loss function for the orientation is driven to -1, so a negative loss is expected. The hyper-parameters to tune are alpha and w (see paper). I obtained good results after just 10 epochs, but the training script will run until 100. How it worksThe PyTorch neural net takes in images of size 224x224 and predicts the orientation and relative dimension of that object to the class average. Thus, another neural net must give the 2D bounding box and object class. I chose to use YOLOv3 through OpenCV. Using the orientation, dimension, and 2D bounding box, the 3D location is calculated, and then back projected onto the image. There are 2 key assumptions made:
Future Goals
CreditI originally started from a fork of this repo, and some of the original code still exists in the training script. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论