IBM/pytorchpipe

View on GitHub
configs/default/components/tasks/image_text_to_class/gqa.yml

Summary

Maintainability
Test Coverage
# This file defines the default values for the GQA task.

####################################################################
# 1. CONFIGURATION PARAMETERS that will be LOADED by the component.
####################################################################

# Folder where task will store data (LOADED)
data_folder: '~/data/gqa'

# Defines the set (split) that will be used (LOADED)
# Options: training_0 | training | validation | test_dev | test | challenge | submission (?)
# Note: test_dev should be used for validation.
split: training_0

# Flag indicating whether the task will load and return images (LOADED)
stream_images: True

# Resize parameter (LOADED)
# When present, resizes the images from original size to [height, width]
# Depth remains set to 3.
resize_image: [224, 224]

# Select applied image preprocessing/augmentations (LOADED)
# Use one (or more) of the affine transformations:
# none | normalize | all
# Accepted formats: a,b,c or [a,b,c]
image_preprocessing: none

streams:
  ####################################################################
  # 2. Keymappings associated with INPUT and OUTPUT streams.
  ####################################################################

  # Stream containing batch of indices (OUTPUT)
  # Every task MUST return that stream.
  indices: indices

  # Stream containing batch of sample (original) identifiers (OUTPUT)
  sample_ids: sample_ids

  # Stream containing batch of images (OUTPUT)
  images: images

  # Stream containing batch of image names (OUTPUT)
  image_ids: image_ids

  # Stream containing batch of questions (OUTPUT)
  questions: questions

  # Stream containing targets answers (labels) (OUTPUT)
  answers: answers

  # Stream containing targets answers consisting of many words (OUTPUT)
  full_answers: full_answers

  # Stream containing scene descriptions (OUTPUT)
  #answers: scene_graphs

globals:
  ####################################################################
  # 3. Keymappings of variables that will be RETRIEVED from GLOBALS.
  ####################################################################

  ####################################################################
  # 4. Keymappings associated with GLOBAL variables that will be SET.
  ####################################################################

  # Width of the image (SET)
  input_width: image_width
  # Height of the image (SET)
  input_height: image_height
  # Depth of the image (SET)
  input_depth: image_depth

  ####################################################################
  # 5. Keymappings associated with statistics that will be ADDED.
  ####################################################################