val.rec for GluonCV tutorial
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker==3.5.0 | |
psutil | |
progressbar2 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# brew install coreutils, gdd has progress option | |
sudo gdd if=/dev/rdisk3 of=pi4.dmg status=progress bs=4M |

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import os, sys | |
import gluoncv as gcv | |
import mxnet as mx | |
shapes_ref = [] | |
with open('ref.txt', 'r') as fid: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""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.') |
NewerOlder