Git Product home page Git Product logo

mnist-cluttered's Introduction

Cluttered MNIST Dataset

A setup script will download MNIST and produce mnist/*.t7 files:

luajit download_mnist.lua

Example usage:

local mnist_cluttered = require 'mnist_cluttered'
-- The observation will have size 1x100x100 with 8 distractors.
local dataConfig = {megapatch_w=100, num_dist=8}
local dataInfo = mnist_cluttered.createData(dataConfig)
local observation, target = unpack(dataInfo.nextExample())

mnist-cluttered's People

Contributors

akfidjeland avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mnist-cluttered's Issues

Funny class vector when generating 3 digits?

Hi,

I was wondering if the following is the intended output?

I set opt.nDigits = 3 and targetFilling = "mark" , and generated an example using,

observation , class_vec = unpack(dataInfo_train.nextExample())

which was a 6 another 6 and a 9,

example

and got the class vector as,

th> class_vec
0
0
0
0
0
0
1
0
0
1
[torch.DoubleTensor of size 10]

I though this was a bit strange because two 6's were generated? I was just wondering if it should be,

th> class_vec
0
0
0
0
0
0
2
0
0
1
[torch.DoubleTensor of size 10]

In general, if I generate 3 digits, two of which are the same, the class vector always show one in each class? Is this intended? If so would it be possible to request a change in the code to give the class vector as the number of digits generated for each class?

A similar thing happens when I generate two digits, and both are the same?

Thanks a lot for your help,

Best regards,

Aj

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.