Giter Club home page Giter Club logo

imagenetv2's Issues

Are the labels the same with ImageNet?

I tried this dataset on some models trained with ImageNet but got extremely bad accuracy. Later, I find that the class index may not match with ImageNet. Did I do something wrong?

I nearly find the following relationship:

Index 0 in V2 ---> 782 screen, CRT screen in original ImageNet
Index 1 in V2 ---> 263 Pembroke, Pembroke Welsh corgi in original ImageNet

Make original dataset public

Could you please public the "original" dataset that is not scaled? I need it because flickr seems lost/change some of the images and it's hard to retrieve all non-scaled images now.

eval.py hanging

I followed the instructions and ran eval.py. It seems that everything works fine until it tries to download "metadata/candidate_metadata_2018-12-13_04-35-19_UTC.pickle" in candidate_data.py. It is hanging here for hours and I also try to use wget to manually get the data but it is 403 forbidden:

wget http://imagenet2datav2.s3.amazonaws.com/metadata/candidate_metadata_2018-12-13_04-35-19_UTC.pickle
--2019-03-10 22:00:38--  http://imagenet2datav2.s3.amazonaws.com/metadata/candidate_m
etadata_2018-12-13_04-35-19_UTC.pickle
Resolving imagenet2datav2.s3.amazonaws.com (imagenet2datav2.s3.amazonaws.com)... 52.2
18.209.74
Connecting to imagenet2datav2.s3.amazonaws.com (imagenet2datav2.s3.amazonaws.com)|52.
218.209.74|:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
2019-03-10 22:00:38 ERROR 403: Forbidden.

Could you help me with this issue please?

Also what I tried to get is the frequency of manual labeled pictures that discussed in the paper.
It is said that the matchedFrequency test set follows the estimation of frequency in original test set. But the imagenet data doesn't have this frequency information. May I know where I can also get the frequency information for the original test set please? (everything I need is to reproduce Figure 15-17 in the paper)

Thanks!

generate_class_info.py uses incorrect constructor for ImageNetData

Hello, I'm trying to get the mapping from class labels to IDs, and presumably this is done by running python generate_class_info_file.py from within the code directory (please let me know if this is wrong).

Upon running this, I hit the following error:

Traceback (most recent call last):
  File "generate_class_info_file.py", line 8, in <module>
    imgnet = imagenet.ImageNetData(load_class_info=False)
TypeError: __init__() got an unexpected keyword argument 'load_class_info'

Indeed, imagenet.ImageNetData does not have a kwarg called "load_class_info". Perhaps this code is outdated?

If there is an easier way for me to simply get the map from label IDs to the original class name strings, please let me know. Thank you!

Wrongly labelled when using dataset.ImageFolder

Hello.

I found that for some OS system (my environment is Ubuntu20.04), the class_to_idx property of dataset.ImageFolder is not aligned with the directories' name, so it leads to wrongly label samples.

For instance, the directory 100 (str) is labelled with 2 (int) class. The easiest way to resolve the above issue is, from the dataset.ImageFolder source code (https://pytorch.org/vision/stable/_modules/torchvision/datasets/folder.html#ImageFolder), modifying the line in find_classes function class_to_idx = {cls_name: i for i, cls_name in enumerate(classes)} with class_to_idx = {cls_name: int(cls_name) for cls_name in classes}.

IS AWS needed for evaluation?

I try to use eval.py to replicate your experiments.

But I get hang on downloading the needed pickle file.

When I check the boto document, it says that you must provide access key and access token for using boto3.

Is AWS needed or there are some other ways to download the data?

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.