Code Monkey home page Code Monkey logo

srnet's People

Contributors

sean-rice avatar

Watchers

 avatar  avatar

srnet's Issues

pre-loaded mnist dataset uses absurd amount of memory

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.

errors registering MNIST due to changes in `torchvision.datasets.MNIST`

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.