forked from Ildaron/Laser_control
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,25 @@ | ||
Label https://github.com/tzutalin/labelImg | ||
|
||
1. Label | ||
https://github.com/tzutalin/labelImg | ||
pyrcc5 -o libs/resources.py resources.qrc | ||
python labelImg.py | ||
|
||
|
||
./darknet detector demo cfg/obj.data cfg/yolov4-tiny-custom.cfg yolov4-tiny-custom_best.weights "nvarguscamerasrc ! video/x-raw(memory:NVMM), width=416, height=416, format=(string)NV12, framerate=(fraction)30/1 ! nvvidconv flip-method=2 ! video/x-raw, format=(string)BGRx ! videoconvert ! video/x-raw, format=(string)BGR ! appsink" | ||
|
||
2. Run real-time | ||
./darknet detector demo cfg/obj.data cfg/yolov4-tiny-custom.cfg yolov4-tiny-custom_best.weights test.mp4 -benchmark | ||
|
||
2. Runtime -GPU | ||
./darknet detector demo cfg/obj.data cfg/yolov4-tiny-custom.cfg yolov4-tiny-custom_best.weights "nvarguscamerasrc ! video/x-raw(memory:NVMM), width=416, height=416, format=(string)NV12, framerate=(fraction)30/1 ! nvvidconv flip-method=2 ! video/x-raw, format=(string)BGRx ! videoconvert ! video/x-raw, format=(string)BGR ! appsink" | ||
|
||
2. 1. move to folder | ||
%cd /content/drive/MyDrive/yolov4/darknet | ||
|
||
2. 2.Get access for folder | ||
!chmod +x ./darknet | ||
|
||
2. 3. Start train | ||
! ./darknet detector train data/obj.data yolov4-tiny-custom.cfg yolov4-tiny.conv.29 -dont_show -map | ||
|
||
3. Yolo-tiny costum.cng | ||
здемы мы в двух метсах изменнили класс с 80 до 1 | ||
и изменели количетсво слоев у послденего выхода, сделали | ||
change class from 80 to 1 | ||
|
||
4. start video | ||
|
||
|
||
./darknet detector demo cfg/obj.data cfg/yolov4-tiny-custom.cfg yolov4-tiny-custom_best.weights test.mp4 -benchmark | ||
|
||
|
||
|