Download generated files
  • 25 Nov 2024
  • 2 Minutes to read
  • Dark
    Light
  • PDF

Download generated files

  • Dark
    Light
  • PDF

Article summary

Once the Generation session is completed, ensure that the generated images are of good quality. You can then download the images and store them as part of the Dataset of your project.

The previous topic lists the steps to creating a generation session.

You can download the generation session files in two ways:

  1. Download zip

  2. Download file list

Download zip

  1. In the Datagen Projects window, on the project card, click View.

  2. Under Generations, select the files that you want to download.

  3. Select Download zip from the list of options.

This will download a zip file with images and a single metadata.csv file. The 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’ option supports downloading up to 1000 files. If files are not explicitly selected, then the set of file up to 1000 will be downloaded in zip format.

Download file list

  1. In the Datagen Projects window, on the project card, click View.

  2. Under Generations, select the files that you want to download.

  3. Select Download zip from the list of options.

The Download file list option downloads a comma-separated file (CSV) with paths for the generated files. A sample file list is shown 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 procedure to obtain 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 from AWS S3

  1. On the left navigation pane, click Utilities → Get Datagen Bucket Credentials.

  2. In the Datagen Bucket Credentials window, refer to the key details for the credentials.

    The temporary credentials are 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 (for example, aws s3 cp).

    • The credentials expire at the time mentioned in the ‘Expires at’ section. Once the credentials expire, you can follow the same procedure to get a new set of credentials for a specific period.


Was this article helpful?