Skip to content

Commit

Permalink
DarkNet OpenCL Port
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Sowa authored and Piotr Sowa committed Jan 27, 2019
1 parent 6e1c307 commit d588dcd
Show file tree
Hide file tree
Showing 47 changed files with 2,271 additions and 488 deletions.
29 changes: 0 additions & 29 deletions .idea/codeStyles/Project.xml

This file was deleted.

222 changes: 134 additions & 88 deletions .idea/workspace.xml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ else()
endif()
list (APPEND DARKNET_CFLAGS "-Wfatal-errors")
list (APPEND DARKNET_CFLAGS "-Wno-unused-variable")
list (APPEND DARKNET_CFLAGS "-O0")
list (APPEND DARKNET_CFLAGS "-O2")
endif()

# Find OpenCV
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ ifeq ($(DEBUG), 1)
OPTS=-O0 -g
else
ifeq ($(RPI), 1)
OPTS=-O0
OPTS=-O2
else
OPTS=-O0
OPTS=-O2
endif
endif

Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
[![DarkNet Training](https://img.youtube.com/vi/Mxw7XkFBFPc/0.jpg)](https://www.youtube.com/watch?v=Mxw7XkFBFPc)

https://codingbytodesign.net/2018/05/26/darknet-training/

https://codingbytodesign.net/2018/08/01/darknet-in-opencl/

Thanks!
8 changes: 8 additions & 0 deletions cfg/openimages.data
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
classes= 601
train = /home/pjreddie/data/openimsv4/openimages.train.list
#valid = coco_testdev
valid = data/coco_val_5k.list
names = data/openimages.names
backup = /home/pjreddie/backup/
eval=coco

19 changes: 12 additions & 7 deletions cfg/resnext101-32x4d.cfg
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
[net]
batch=128
subdivisions=8
batch=1
subdivisions=1
# Training
# batch=128
# subdivisions=8

# Testing
batch=1
subdivisions=1

height=256
width=256
channels=3
min_crop=128
max_crop=448
channels=3
momentum=0.9
decay=0.0005

burn_in=1000
learning_rate=0.1
policy=poly
power=4
max_batches=800000
momentum=0.9
decay=0.0005

angle=7
hue=.1
Expand All @@ -24,6 +28,7 @@ exposure=.75
aspect=.75



[convolutional]
batch_normalize=1
filters=64
Expand Down
18 changes: 11 additions & 7 deletions cfg/resnext152-32x4d.cfg
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
[net]
batch=128
subdivisions=16
# batch=1
# subdivisions=1
# Training
# batch=128
# subdivisions=16

# Testing
batch=1
subdivisions=1

height=256
width=256
channels=3
min_crop=128
max_crop=448
channels=3
momentum=0.9
decay=0.0005

burn_in=1000
learning_rate=0.1
policy=poly
power=4
max_batches=800000
momentum=0.9
decay=0.0005

angle=7
hue=.1
Expand Down
10 changes: 8 additions & 2 deletions cfg/vgg-16.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
[net]
batch=128
subdivisions=4
# Training
# batch=128
# subdivisions=4

# Testing
batch=1
subdivisions=1

height=256
width=256
channels=3
Expand Down
Loading

0 comments on commit d588dcd

Please sign in to comment.