sean-rice / srnet Goto Github PK
View Code? Open in Web Editor NEWsean rice's neural network research
sean rice's neural network research
when using mnist_train
to train classifier networks, we can see the following in the training log:
[12/29 17:13:19 d2.data.common]: Serializing 60000 elements to byte tensors and concatenating them all ...
[12/29 17:13:58 d2.data.common]: Serialized dataset takes 27546.78 MiB
of course, mnist should not be taking over 25GiB of memory. while mnist still works on the training cluster i use, this should be investigated and fixed; if the problem persists (and scales) to new datasets, it's possible other (still very small) datasets like cifar won't actually fit into worker memory.
The pre-processed *.pt
files we use in srnet/data/datasets/mnist.py
are no longer generated in newer versions of torchvision
; see pytorch/vision#3420
This snippet might be equivalent:
# where `dataset_path` is `d2_datasets / "MNIST"` in the usual case, and `train` is a new parameter to `_make_mnist_dicts()`
mnist = MNIST(dataset_path, train=train)
data, labels_tensor = mnist.data, mnist.targets
data = data.to("cpu")
labels: Sequence[int] = labels_tensor.tolist()
del labels_tensor
n_examples, h, w, = data.shape
assert n_examples == len(labels)
pillow
10 removed some attributes we use.
Old attribute | New attribute |
---|---|
PIL.Image.LINEAR |
PIL.Image.BILINEAR |
PIL.Image.ANTIALIAS |
PIL.Image.LANCZOS |
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.