- 11 Sep 2024
- 1 Minute to read
- Print
- DarkLight
- PDF
Download generated files
- Updated on 11 Sep 2024
- 1 Minute to read
- Print
- DarkLight
- PDF
The output of a completed generation session can be downloaded in two ways.
Download as a zip file
Select the files using the checkboxes and click the ‘Download Zip’ button. This will download a zip file with images and a single metadata.csv file. The metadata CSV file has the following columns.
file_name | attributes | boxes |
---|---|---|
abc2343211.jpeg | {} | [{‘xmin’: 0.234, ‘xmax’: 0.43, ‘ymin’: 0.14, ‘ymax’: 0.42}] |
The ‘attributes’ column is currently empty.
The ‘boxes’ column shows the bounding boxes corresponding to the position where the concept is synthesized. The coordinates are normalized to the [0,1] range based on the width and height of the image.
File limit
The ‘Download zip’ operation supports download upto 1000 files only. If files are not explicitly selected, then the first N files(upto 1000) will be downloaded.
Download file list
The ‘Download file list’ option downloads a comma-separated file(CSV) with paths to generated files. A sample file list is as below.
file_name | s3_url | attributes | boxes |
copy10_219.jpeg | akridata_de_demo/8171db98-558e-448d-b2ae-c8c6056ff5f4/66df2b80a67d2157a00e9763/output/images/copy10_219.jpeg | {} | [{'xmin': 0.15380552195680608, 'xmax': 0.585416466168265, 'ymin': 0.1443404999843207, 'ymax': 0.7920114712558955}] |
copy11_220.jpeg | akridata_de_demo/8171db98-558e-448d-b2ae-c8c6056ff5f4/66df2b80a67d2157a00e9763/output/images/copy11_220.jpeg | {} | [{'xmin': 0.09379918446549768, 'xmax': 0.9318081207666831, 'ymin': 0.29955493339408923, 'ymax': 0.5167512247484471}] |
The s3_url provides the path to the image in AWS S3. The image must be downloaded using the ‘aws’ command line tool or programmatically using a client SDK like Boto3. The temporary credentials for this download is described in the next section.
The attributes column is currently empty.
The ‘boxes’ column shows the bounding boxes corresponding to the position where the concept is synthesized. The coordinates are normalized to the [0,1] range based on the width and height of the image.
Credentials to download files in file list from AWS S3
On the left navigation menu, click on ‘Utilities’ → ‘Get Datagen Bucket Credentials‘
The temporary credentials are displayed as shown below.
If you are using the ‘aws’ command line tool, set the AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and AWS_SESSION_TOKEN in your environment and run the aws command(example aws s3 cp).
The credentials expire at the time mentioned in the ‘Expires at’ after which follow the same procedure to get a fresh set of credentials.