41

Does anyone know the resolution of an image in the ImageNet dataset?

I'm sorry, but I couldn't find it on their website or in any of the papers.

nbro
  • 15,395
  • 32
  • 113
  • 196
Shiqing Fan
  • 688
  • 2
  • 8
  • 14

6 Answers6

42

The images vary in dimensions and resolution. Many applications resize / crop all of the images to 256x256 pixels.

Prune
  • 76,765
  • 14
  • 60
  • 81
33

The average image resolution on ImageNet is 469x387 pixels. Normally it's applied a pre-processing that samples them to 256x256 as @Prune said, but it depends on the task at hand.

ricoms
  • 952
  • 15
  • 22
12

In a brief check of a random ImageNet 2012 folder (Fish)... The largest image is 4288 x 2848 pixels. The smallest image is 75 x 56 pixels. This is representative of the aspect ratio range.

Avi Messica
  • 121
  • 1
  • 3
7

It depends of the picture but you can resize them. The smaller dimension of the picture should be at least 256 px and the aspect ratio should be intact.

A. Attia
  • 1,630
  • 3
  • 20
  • 29
  • To both conserve aspect ratio and have the same size on all images after resizing and padding (asssuming no cropping), the larger dimension must be specified, rather than the smaller one. – Elias Hasle Feb 22 '19 at 10:53
1

224 X 224 is used by most of the networks.

mrtpk
  • 1,398
  • 4
  • 18
  • 38
1

There is a detailed answer to this in the following article: https://towardsdatascience.com/compression-in-the-imagenet-dataset-34c56d14d463

Essentially, most common image size is 500x500, however, there is a large distribution of image sizes. Typically, either the width or the height of an image is 500 pixels, if not both. Aspect ratios of 1:1, 4:3, 3:2 (and 3:4 and 2:3) are most common.