Docker Image Interface specification
- 15 Feb 2023
- 2 Minutes to read
- Print
- DarkLight
- PDF
Docker Image Interface specification
- Updated on 15 Feb 2023
- 2 Minutes to read
- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
This article describes the interface specification for all types of docker images.
Thumbnail generator
Input location | The input images are presented at location /input/i1, with multiple images(1000+) presented at this location. |
Output location | The docker is expected to produce thumbnails at /output/o1. There should be 1 thumbnail file generated per input file in /input/i1, and the name of the output file must exactly match the name of the input file path relative to the input location. For e.g. If the input file is at /input/i1/dir1/a.jpg, then the output thumbnail must be produced at /output/o1/dir1/a.jpg. |
Output format | Common formats like PNG and JPG are recommended. Irrespective of the output format, the filename must exactly match the filename of the input file. |
Other details |
|
Pre-processor
Input location | The input images are presented at location /input/i1, with multiple images(1000+) presented at this location. |
Output location | The docker is expected to write images after pre-processing to /output/o1. There should be 1 output file generated per input file in /input/i1, and the name of the output file must exactly match the name of the input file with file path relative to /input/i1 preserved. e.g. If the input file is at /input/i1/dir1/a.jpg, then the output file should be at /output/o1/dir1/a.jpg. |
Output format | Same as the input format |
Other details |
|
Featurizer
Input location | The input images are presented at location /input/i1, with multiple images(1000+) presented at this location. |
Output location | The docker is expected to produce output to /output/o1. There should be 1 output file generated per input file in /input/i1, and the name of the output file must be <input_file_name>.npy, and the file path relative to /input/i1 must be preserved. e.g. If input file is at /input/i1/dir1/a.jpg, then the output file should be at /output/o1/dir1/a.jpg.npy. |
Output format | The featurizer must produce output in one of the following forms
In either of the cases, the output file must be produced as a numpy file using numpy.save() or equivalent routine. |
Other details |
|
Attribute generator
Input location | The input images are presented at location /input/i1, with multiple images(1000+) presented at this location. |
Output location | The output must be produced to /output/o1 with a single CSV file as the output. The CSV file can have any name with an extension of .csv |
Output format |
|
Was this article helpful?