Skip to content

Instantly share code, notes, and snippets.

View karishmathumu's full-sized avatar

karishmathumu

  • Student at Fraunhofer-Institut für Gießerei-, Composite- und Verarbeitungstechnik
  • Germany
View GitHub Profile
@mjoshi07
mjoshi07 / darknet-helpful-commands.md
Last active August 20, 2024 08:24
Darknet Commands

train the detector

./darknet detector train 'net.data' 'net.cfg' 'net.conv.14' -map -gpus 1,0
  • if more than one gpu, then select how many/which gpu to use
  • to disable Loss-Window use -dont_show flag
  • to see the mAP & Loss-chart during training on remote server without GUI add -dont_show -mjpeg_port 8090 -map flags then open URL http://ip-address:8090 in browser
@YashasSamaga
YashasSamaga / yolov4.py
Last active July 13, 2024 06:42
YOLOv4 on OpenCV DNN
import cv2
import time
CONFIDENCE_THRESHOLD = 0.2
NMS_THRESHOLD = 0.4
COLORS = [(0, 255, 255), (255, 255, 0), (0, 255, 0), (255, 0, 0)]
class_names = []
with open("classes.txt", "r") as f:
class_names = [cname.strip() for cname in f.readlines()]