●
●
●
●
●
●
●
●
●
●
When specifying the URL for a .zip file in a cloud drive service like Dropbox, be sure it's a link to the file and not a link to
the interactive download page. For example, the URL should look like
https://www.dropbox.com/s/abcdxyz/mountainvsbeach.zip?dl=1
The maximum image file name length is 100 characters including the file extension. If the .zip file contains a file with a
name greater than 100 characters (including the file extension), the example is created in the dataset, but the API
truncates the example name to 100 characters.
The maximum directory name length is 180 characters. If the .zip file contains a directory with a name greater than 180
characters, the label is created in the dataset, but the API truncates the label name to 180 characters.
Unicode characters aren't supported in .zip file names, directory names, or image file names. If you have any non-ASCII
characters in any of these names, you'll see unpredictable names and training the dataset might fail. For example, if the
.zip file contains an image file called HôtelDeVille.jpg, you might be able to upload the example, but the API returns an
error when you try to train the dataset.
Image files must be smaller than 1 MB. If the .zip file contains image files larger than 1 MB, the image won't be loaded
and no error is returned.
Images must be no larger than 2,000 pixels high by 2,000 pixels wide. You can upload images that are larger, but
training the dataset might fail.
The supported image file types are PNG, JPG, and JPEG. If the .zip file contains any unsupported image file types,
those images won't be uploaded and no error is returned.
In the case of duplicate image files in the .zip file, only the first file is uploaded. If there's more than one image file in the
same directory, with the same name and the same file contents, only the first file is uploaded and the others are
skipped.
If the .zip file contains an image file that has a name containing spaces, the spaces are removed from the file name
before the file is uploaded. For example, if you have a file called sandy beach.jpg the example name becomes
sandybeach.jpg.
Each label in the data set should have 14 images or more (10 might be OK) and you can't just duplicate the same
image.