Skip to content

Instantly share code, notes, and snippets.

@zhreshold
zhreshold / imagenet1000_clsid_to_human.txt
Created September 26, 2017 22:15 — forked from yrevar/imagenet1000_clsidx_to_labels.txt
text: imagenet 1000 class id to human readable labels
{0: 'tench, Tinca tinca',
1: 'goldfish, Carassius auratus',
2: 'great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias',
3: 'tiger shark, Galeocerdo cuvieri',
4: 'hammerhead, hammerhead shark',
5: 'electric ray, crampfish, numbfish, torpedo',
6: 'stingray',
7: 'cock',
8: 'hen',
9: 'ostrich, Struthio camelus',
@zhreshold
zhreshold / demo.py
Created May 9, 2020 00:33
GluonCV object detection Batch Input
import gluoncv as gcv
import mxnet as mx
from matplotlib import pyplot as plt
image_list = ['cat1.jpg', 'dog.jpg']
class ImageListData(mx.gluon.data.Dataset):
def __init__(self, im_list):
self.im_list = im_list
@zhreshold
zhreshold / requirements.txt
Last active April 30, 2020 05:30
MXNet windows ci setup
docker==3.5.0
psutil
progressbar2
@zhreshold
zhreshold / mxnet-white.svg
Last active December 31, 2019 02:12
SVG LOGOs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zhreshold
zhreshold / mac_backup.sh
Last active November 22, 2019 17:03
Clone Raspberry Pi SD Card
# brew install coreutils, gdd has progress option
sudo gdd if=/dev/rdisk3 of=pi4.dmg status=progress bs=4M
@zhreshold
zhreshold / README.md
Last active September 19, 2019 22:04
GluonCV tutorial val.rec

val.rec for GluonCV tutorial

@zhreshold
zhreshold / cr7.jpg
Last active August 7, 2019 04:54
GluonCV notebooks for all hands
cr7.jpg
@zhreshold
zhreshold / resnet18.prototxt
Last active July 11, 2019 06:38
ResNet18 prototxt
name: "ResNet-18"
input: "data"
input_dim: 1
input_dim: 3
input_dim: 224
input_dim: 224
layer {
bottom: "data"
top: "conv1"
@zhreshold
zhreshold / check_platform.py
Last active May 30, 2019 14:39
Check OS/Python/Cpu Info and Network connections
"""Diagnose script for checking OS/hardware/python/pip/mxnet/network.
The output of this script can be a very good hint to issue/problem.
"""
import platform, subprocess, sys, os
import socket, time
try:
from urllib.request import urlopen
from urllib.parse import urlparse
except ImportError:
from urlparse import urlparse
@zhreshold
zhreshold / cam_demo.py
Created May 8, 2019 23:05
GluonCV cam demo pose
from __future__ import division
import argparse, time, logging, os, math, tqdm, cv2
import numpy as np
import mxnet as mx
from mxnet import gluon, nd, image
from mxnet.gluon.data.vision import transforms
import matplotlib.pyplot as plt
import matplotlib