/build_cluttered_mnist

Primary LanguageJupyter NotebookBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

see https://github.com/deepmind/mnist-cluttered see https://github.com/ablavatski/mnist-cluttered

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())