-
Notifications
You must be signed in to change notification settings - Fork 444
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pytorch darknet to caffe code and demo script
- Loading branch information
Showing
9 changed files
with
5,368 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
./examples/ssd/ssd_detect models/darknet_yolov3/yolov3.prototxt models/darknet_yolov3/yolov3.caffemodel -file_type image -wait_time 1500 -mean_value 0.0,0.0,0.0 -normalize_value 0.0039215 -confidence_threshold 0.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Pytorch darknet to caffe | ||
|
||
Modify from [pytorch-caffe-darknet-convert](https://github.com/marvis/pytorch-caffe-darknet-convert),[object_detetction_tools](https://github.com/BingzheWu/object_detetction_tools) | ||
|
||
## Modified items : | ||
|
||
1. yolov3 output layer | ||
2. when pooling layer stide =1 , size =2 , assign size = 1 | ||
3. upsample layer | ||
|
||
## Usage : | ||
|
||
1. Download weights from original darknet web | ||
2. Unmark custom_class in examples\ssd\ssd_detect.cpp | ||
3. Remake project | ||
|
||
``` | ||
> python darknet2caffe.py yolov3.cfg yolov3.weights yolov3.prototxt yolov3.caffemodel | ||
> cd $caffe_root | ||
> sh demo_darknet_yolov3.sh | ||
``` | ||
|
||
|
||
## To do list : | ||
|
||
1. verify accuracy and compare result | ||
2. retrain | ||
|
||
I'm not sure the result was same as darknet now , contribution is welcome |
Oops, something went wrong.