mirror of
https://gitlab.com/robossembler/assets-library.git
synced 2025-06-10 19:55:46 +03:00
Merge branch 'detection' into 'master'
Detection See merge request robossembler/forks/robossembler-stuff!7
This commit is contained in:
commit
991a941323
9 changed files with 1194 additions and 0 deletions
1
.gitattributes
vendored
1
.gitattributes
vendored
|
@ -15,3 +15,4 @@
|
||||||
*.stp filter=lfs diff=lfs merge=lfs -text
|
*.stp filter=lfs diff=lfs merge=lfs -text
|
||||||
*.FCStd filter=lfs diff=lfs merge=lfs -text
|
*.FCStd filter=lfs diff=lfs merge=lfs -text
|
||||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.weights filter=lfs diff=lfs merge=lfs -text
|
||||||
|
|
5
world/chess/detection/README.md
Normal file
5
world/chess/detection/README.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
### Object detection для шахматных фигур
|
||||||
|
|
||||||
|
Папка 'detection' требуется в runtime для навыка 'object detection' на основе [darknet-YOLOv4](https://github.com/AlexeyAB/darknet).
|
||||||
|
Для получения darknet из исходников нужно запустить darknet_build.sh, и в папке darknet/build_release/ появится бинарник, который нужно скопировать в нашу папку 'detection'.
|
||||||
|
Для тестирования можно запустить команду run_test.sh, после выполнения которой должен появиться файл с предсказанием позиций фигур: prediction.jpg.
|
10
world/chess/detection/darknet_build.sh
Executable file
10
world/chess/detection/darknet_build.sh
Executable file
|
@ -0,0 +1,10 @@
|
||||||
|
cd ~
|
||||||
|
git clone https://github.com/AlexeyAB/darknet
|
||||||
|
cd darknet
|
||||||
|
mkdir build_release
|
||||||
|
cd build_release
|
||||||
|
cmake ..
|
||||||
|
cmake --build . --target install --parallel 8
|
||||||
|
|
||||||
|
# по итогу в папке ~/darknet/build_release/
|
||||||
|
# появится бинарник darknet
|
6
world/chess/detection/obj.names
Normal file
6
world/chess/detection/obj.names
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
knight
|
||||||
|
king
|
||||||
|
queen
|
||||||
|
rook
|
||||||
|
bishop
|
||||||
|
pawn
|
1
world/chess/detection/run_test.sh
Normal file
1
world/chess/detection/run_test.sh
Normal file
|
@ -0,0 +1 @@
|
||||||
|
./darknet detector test yolov4_objs2.data yolov4_objs2.cfg yolov4.weights -dont_show -ext_output test.jpg -out res.json -thresh 0.5
|
BIN
world/chess/detection/test.jpg
(Stored with Git LFS)
Normal file
BIN
world/chess/detection/test.jpg
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
world/chess/detection/yolov4.weights
(Stored with Git LFS)
Normal file
BIN
world/chess/detection/yolov4.weights
(Stored with Git LFS)
Normal file
Binary file not shown.
1159
world/chess/detection/yolov4_objs2.cfg
Normal file
1159
world/chess/detection/yolov4_objs2.cfg
Normal file
File diff suppressed because it is too large
Load diff
6
world/chess/detection/yolov4_objs2.data
Normal file
6
world/chess/detection/yolov4_objs2.data
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
classes = 6
|
||||||
|
train = i_train.txt
|
||||||
|
valid = i_val.txt
|
||||||
|
names = obj.names
|
||||||
|
backup = backup
|
||||||
|
eval = coco
|
Loading…
Add table
Add a link
Reference in a new issue