Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@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 / 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
@zhreshold
zhreshold / convert.py
Last active March 12, 2019 02:13
YOLOv3 converter from darknet to GluonCV
import numpy as np
import os, sys
import gluoncv as gcv
import mxnet as mx
shapes_ref = []
with open('ref.txt', 'r') as fid:
@zhreshold
zhreshold / READMD.md
Last active February 20, 2019 19:37
web-data

Web data storage

@zhreshold
zhreshold / demo_ssd.py
Created January 14, 2019 23:48
Demo script with gluon network -> symbol -> SymbolBlock
"""SSD Demo script."""
import os
import argparse
import mxnet as mx
import gluoncv as gcv
from gluoncv.data.transforms import presets
from matplotlib import pyplot as plt
def parse_args():
parser = argparse.ArgumentParser(description='Test with SSD networks.')