Git Product home page Git Product logo

puzzler's Introduction

The idea

Model inputs: a grid of pixel values sampled from an image, the location and scale of this grid, and a hidden state vector. Model outputs: a new location and scale, and a hidden state vector.

Each iteration, the model gets some information about the image at a certain location and produces a hidden state vector encoding what it learned. This vector is passed to a classifier which tries to classify the image based on the hidden state. At first this will not work well. The hope is that by running the same model recurrently on its own outputs over and over and including intermediate losses, the model will learn to iteratively "ask questions" about the image until it can classify it appropriately. The hidden state vector will have useful information because we backprop through multiple iterations. The hidden state vector is initialized to all zeros, the location to (0.5,0.5), and the scale at whichever value makes it fill the image. The hidden state vector is updated residually for gradient stability.

Requirements

I develop inside of the January 2024 edition of the Nvidia PyTorch Docker image. docker run -it -d -v /workspace:/workspace nvcr.io/nvidia/pytorch:24.01-py3

Repo structure

Implementations are in src, training script is in scripts, and sanity-checks I wrote while implementing stuff are in tests. experiments.md is a log where I track the results of different design choices and hyperparams. The training script expects CIFAR-100 to be in a folder called data, which is included in .gitignore so I don't accidentally attempt to push the dataset.

puzzler's People

Contributors

mkaic avatar

Watchers

 avatar

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.