Skip to content

dmuqlzhang/fall_down-detect-yolov4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fall_down-detect-yolov4

Some details

How to use this code (test)?

  1. installed darknet-yolov4, and put darknet_API.py into ./darknet
  2. put cfg into ./darknet
  3. download fall_down-yolov4's weight, and put it in backup folder
  4. Call the darknet_API main function:
    from darknet_API import Detect
    detect = Detect(metaPath=r'./cfg/fall_down.data', configPath=r'./cfg/yolov4-fall_down.cfg',\
                    weightPath=r'./backup/yolov4-fall_down_best.weights',\
                    namesPath=r'./cfg/fall_down.names')
    image = cv2.imread(r'/home/Datasets/20200714085948.jpg', -1)
    draw_img = detect.predict_image(image, save_path='./pred.jpg')
    

How to train yolov4 in darknet (train)?

  1. Convert VOC format data to YOLO format data
  2. Configure file information such as cfg
  3. Call the darknet command:
    ./darknet detector train cfg/fall_down.data cfg/yolov4-fall_down.cfg yolov4.conv.137 -gpus 0 -map -dont_show
    

demo

  • ./result: fall_down-detect demos
fall_down-detect-demo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages