Giter VIP home page Giter VIP logo

imagenet32_scripts's People

Contributors

patrykchrabaszcz 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  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

imagenet32_scripts's Issues

Batch size

Hi,
What batch size did you set on these experiments? Thanks

Trouble Using Data

So when I download the data from the website, I get a tarfile back. I've tried your unpicle code and that won't work when I provide the tar file path. How exactly should I process this data in order to get to the images and labels? I am not following the scripts as I don't see any code where you process or unzip tarfiles.

Problems with loading the data/ matching labels to inputs

Hi there,

I would like to use the downsampled version of ImageNet. I have downloaded the val+train files from https://image-net.org/download-images.php, the "npz format" versions. Then I ran "unzip Imagenet64_val_npz.zip" which resulted in a file called "val_data.npz".

I use python 3.6.8, and trying to load the file with the provided code results in the following error:

def load_data(input_file):

    d = unpickle(input_file)
    x = d['data']
    y = d['labels']

    x = np.dstack((x[:, :4096], x[:, 4096:8192], x[:, 8192:]))
    x = x.reshape((x.shape[0], 64, 64, 3))

    return x, y

def unpickle(file):
    with open(file, 'rb') as fo:
        dict = pickle.load(fo)
    return dict

x, y = load_data("./val64/Imagenet64_val_npz/val_data.npz")
Error: "UnpicklingError: A load persistent id instruction was encountered, but no persistent_load function was specified."

Using x, y = np.load(input_file) works, but the labels seem to be wrong, and the files are also unordered which is fine though. The shapes of x and y are (50000, 64, 64, 3) and (50000,), respectively, so the file downloading, unzipping and loading seems to work (with np.load not with pickle).

These are the first five images in x with the labels y (and the human readable meanings taken from here):
image

-> Does one have to manipulate the labels y to make them "correct" again?

Thank you for your help :)

Validation set duplicate images

Hi,

are you aware that the validation set of 49999 images downloaded from here:
http://image-net.org/small/valid_32x32.tar

has a lot of duplicate images? Reproduction of a few examples:
02273.png and 42263.png
04990.png and 45295.png

overall, there are only ~45047 unique images in the validation set - about 5k of them occur twice, and a few even three times. Is that intended to give some examples more weight for validation score, or rather a bug? + wondering if it also applies to 64x64 version - haven't tested that yet

Thanks

Question About you use the architecture in your paper

Dear PatrykChrabaszcz:
I am using your dataset <ImageNet6464> , I want to re-implement WRN-36-k(1,2) on ImageNet6464 in the Table 1 at page5 . I read your paper and find that at page 3, you describe how to make the WRN-arcitecture. As a result, I draw this two figurs, please help me is it correct??

53767699_573877316450543_4344990402139389952_n
This is a different that in page 4, the writers said that he changed the order of BN, ReLU, Conv. He changed from conv-BN-ReLU to BN-ReLU-conv. Did you do the same procedure in your paper??

Aspect ratio

Thanks for your great work.
I've found that aspect ratio is changed in this work.
Is there a reason of why this is different to general ImageNet preprocessing? (center crop to keep the aspect ratio)

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.