Skip to content

Instantly share code, notes, and snippets.

View burakkurtt's full-sized avatar

Burak Kurt burakkurtt

  • Turkey
View GitHub Profile
@burakkurtt
burakkurtt / calculate_mean_ap.py
Created June 13, 2019 18:08 — forked from tarlen5/calculate_mean_ap.py
Calculate mean Average Precision (mAP) for a set of ground truth and predicted bounding boxes for a set of images.
"""
author: Timothy C. Arlen
date: 28 Feb 2018
Calculate Mean Average Precision (mAP) for a set of bounding boxes corresponding to specific
image Ids. Usage:
> python calculate_mean_ap.py
Will display a plot of precision vs recall curves at 10 distinct IoU thresholds as well as output
@burakkurtt
burakkurtt / min-char-rnn.py
Created June 11, 2018 10:43 — forked from karpathy/min-char-rnn.py
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
@burakkurtt
burakkurtt / git-feature-workflow.md
Created October 24, 2017 15:17 — forked from blackfalcon/git-feature-workflow.md
Git basics - a general workflow

There are many Git workflows out there, I heavily suggest also reading the atlassian.com [Git Workflow][article] article as there is more detail then presented here.

The two prevailing workflows are [Gitflow][gitflow] and [feature branches][feature]. IMHO, being more of a subscriber to continuous integration, I feel that the feature branch workflow is better suited.

When using Bash in the command line, it leaves a bit to be desired when it comes to awareness of state. I would suggest following these instructions on [setting up GIT Bash autocompletion][git-auto].

Basic branching

When working with a centralized workflow the concepts are simple, master represented the official history and is always deployable. With each now scope of work, aka feature, the developer is to create a new branch. For clarity, make sure to use descriptive names like transaction-fail-message or github-oauth for your branches.

@burakkurtt
burakkurtt / opencv-uninstall.sh
Last active October 22, 2017 09:56 — forked from lonehack/opencv-uninstall.sh
Ubuntu shellscript for uninstall OpenCV
#!/bin/bash
#########################################################################################################
## OpenCV Uninstallation Script
##
## Code by : Dimas Toha Pramawitra (Lonehack)
## <dms.pram@gmail.com>
## Created : 20 Mar 2016
## Modified : 16 Apr 2016
##