Skip to content

Instantly share code, notes, and snippets.

View chinglamchoi's full-sized avatar

Ching Lam Choi chinglamchoi

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
println("Which grid do you want to try? 8 or 16?")
num = parse(Int64, readline())
global usergrid = Array{Array{String,1}, 1}(undef, num)
global ansgrid = Array{Array{Int64,1}, 1}(undef, num)
temp = fill("_", num)
tempa = fill(0, num)
for i in 1:num
usergrid[i] = deepcopy(temp)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@chinglamchoi
chinglamchoi / oid_to_yolo.py
Created January 1, 2020 03:43 — forked from EscVM/oid_to_yolo.py
Translate OIDv4 labels to YOLO format
# ---------------
# Date: 7/25/2018
# Place: Biella
# Author: EscVM
# Project: OID v4 to Yolo
# ---------------
import os
from tqdm import tqdm