Human API: Input Specifications

Overview

The Human API is a data generating service that can create millions of labeled images of humans with a specifiable variety of detailed humans placed into different contexts.

A request (also known as a “job”) is typically submitted by using a command line client application provided by Synthesis AI, and a Job ID is returned. This job ID will then show up in the web interface, and is used as the reference for downloading images via the CLI. For those who specify an API when the callback is returned, notifying the user that the job and all of its tasks have completed.

Job requests are described in JSON format, and a single JSON can describe many scenes (aka tasks).

Workflow

The standard workflow for the Synthesis AI Human API is:

  1. Register Account, Download & Setup CLI
  2. Select Identities for the Human API with the Identities API
  3. Create Human API job with input JSON
  4. Download job output with CLI
  5. Parse outputs into your ML pipeline

Important Concepts

Percent Groups per Parameter

Almost all parameters have the concept of percent, and then an array of settings for the parameter, which is the percent of scenes/images these should apply to.

Example:
You might want mouth open & eyes closed to be applied to 70% of images, several other expressions to be applied to 20% of images, and then the remaining 10% of images having neutral.

Note: The percentage allocated across all groups in each section must add up to 100% — an error will be returned if they do not.

In order to accomplish this, 2 percent array elements would be specified, the first for 70% with certain expression settings, and the second for 20% of images with different expression settings. The remaining 10% of images would be implicitly the neutral expression, because that parameter would not be set on them.

Parameters with percent groups are:

  • Body
  • Clothing
  • Expressions
  • Gesture
  • Head Hair
  • Facial Hair
  • Eye Gaze
  • Eyebrows
  • Head Turn
  • Headphones
  • Headwear
  • Masks
  • Glasses

Example JSON of a request with percent groups follows. In this example, 100 renders will be produced, with 40% of them containing 2 types of face masks, and 60% of them containing no face masks:

40% Have Masks, 60% No Masks

{
  "version": 1,
  "humans": [
    {
      "identities": {
        "ids": [
          80
        ],
        "renders_per_identity": 100
      },
      "accessories": {
        "masks": [
          {
            "style": [
              "Duckbill",
              "DuckbillFlat"
            ],
            "percent": 40
          },
          {
            "style": [
              "none"
            ],
            "percent": 60
          }
        ]
      }
    }
  ]
}

Value lists vs. Min/Max Ranges

For parameters with numerical settings, there are two types of collections of values that can be specified: the list, and the range/interval.

Lists are a discrete list of values (repeating allowed) that are randomly selected from for each scene, like [10, 20, 23]. They are not randomly “shuffled”, but rather randomly selected, so duplicates can occur.

To further control distribution in a list, values can be repeated in the proportion they are desired. For example, a list with values [3, 3, 3, 3, 4, 4] would have a two-to-one ratio (on average), of scenes with the value of 3 rather than 4 for that parameter.

On the other hand, ranges are set between two numbers, with a min and a max value specified. Any valid random number between these two, and including these two values will be selected (inclusive of min/max values). The distribution between the two values comes out to usually be a uniform distribution, but duplicates can occur.

Within a single percent array item, only a list or a min/max range can be used for a given parameter. However, two separate percent array items may use different choices for lists vs. ranges.

Example of a JSON request with value lists and ranges for a parameter in 2 different percent arrays follows. In this example, the intensity of the expressions for 20% of the renders will be (randomly) evenly distributed between 0 and 1, and in 80% of the renders, the intensity will be at .25 and .5, and twice as likely still to be .75 (because it’s repeated twice).

Value lists vs. Min/Max Ranges JSON Example

{
  "version": 1,
  "humans": [
    {
      "identities": {
        "ids": [
          80
        ],
        "renders_per_identity": 100
      },
      "facial_attributes": {
        "expression": [
          {
            "name": [
              "all"
            ],
            "intensity": {
              "type": "range",
              "values": {
                "min": 0.0,
                "max": 1.0
              }
            },
            "percent": 20
          },
          {
            "name": [
              "all"
            ],
            "intensity": {
              "type": "list",
              "values": [
                0.25,
                0.5,
                0.75,
                0.75
              ]
            },
            "percent": 80
          }
        ]
      }
    }
  ]
}


Top Level Entries

The JSON request file has two parts, a version section, and a humans array section. The version section specifies the version of the Human API to target, this should be set to 1. The humans array is a collection of scene parameter groupings. These parameter groupings describe how to adjust the subjects in the renders, as well as the camera and environment.

Full, minimal example of a valid request:

{
  "version": 1,
  "humans": [
    {
      "identities": {
        "ids": [
          33
        ],
        "renders_per_identity": 1
      }
    }
  ]
}


Humans Array

The humans array object is a list of sets of scenes to render, each element of the array with a particular specification as documented in the following sections.

A minimal "multiple scene-set" JSON

"humans": [
  {
    "identities": {
      "ids": [80],
      "renders_per_identity": 1
    }
  },
  {
    "identities": {
      "ids": [79],
      "renders_per_identity": 1
    }
  }
]


Identities & Renders Per Identity

Our facial identities each have a numerical ID (e.g. 79, 80), and are consistent between every run. Each ID also has consistent demographic information with it that is returned on output (sex, ethnicity, age). See more in output documentation.

NOTE: IDs are not contiguous. Some IDs do not exist and will yield a job error if requested.

To get a list of IDs that match your demographic requirements, our command line tool provides a humans ids subcommand (read more) to query for ids matching a set of selection parameters.

One or more IDs can be sent in per scene specification (per humans array element). The total number of images generated for the array element will be, in pseudocode:

length(humans.identities.ids) x humans.identities.renders_per_identity.

Identities id Array List

  • Default: no default, required
  • Note: maximum length of 10,000 values

Identities renders_per_identity Value

  • Default: 1
  • Min: 1
  • Max: 1000

Visual examples of varying identities (see also: full input JSON to generate them):


Facial Attributes

The facial attributes section describes parts of the head anatomy. This includes:

  • Expressions
  • Eyebrows
  • Eye Gaze
  • Head Turn
  • Head Hair
  • Facial Hair

JSON example of all facial-attributes sections specified

"facial_attributes": {
   "expression": [{
     "name": ["all"],
     "intensity": { "type": "range", "values": {"min": 0.0, "max": 1.0} },
     "percent": 100
   }],
   "eyebrows": [{
     "match_id_eyebrows": true,
     "style": ["all"],
     "relative_length": { 
       "type": "range", 
       "values": {
         "min": 1.0, 
         "max": 1.0
       }
     },
     "relative_density": { 
       "type": "range", 
       "values": {
         "min": 1.0, 
         "max": 1.0
       }
     },
     "color": ["all"],
     "color_seed": { "type": "list", "values": [0] },
     "match_hair_color": true,
     "sex_matched_only": true,
     "percent": 100
   }],
   "gaze": [{
     "horizontal_angle": { "type": "range", "values": {"min": -30.0, "max": 30.0 }},
     "vertical_angle": { "type": "range", "values": {"min": -30.0, "max": 30.0 }},
     "percent": 100
   }],
   "head_turn": [{
     "pitch": { "type": "range", "values": {"min": -45.0, "max": 45.0 }},
     "yaw": { "type": "range", "values": {"min": -45.0, "max": 45.0 }},
     "roll": { "type": "range", "values": {"min": -45.0, "max": 45.0 }},
     "percent": 100
   }],
   "hair": [{
     "style": ["all"],
     "color": ["all"],
     "sex_matched_only": true,
     "ethnicity_matched_only": true,
     "relative_length": { "type": "range", "values": { "min": 0.5, "max": 1.0 }},
     "relative_density": { "type": "range", "values": { "min": 0.5, "max": 1.0 }},
     "percent": 100
   }],
   "facial_hair": [{
     "style": ["all"],
     "color": ["all"],
     "match_hair_color": true,
     "relative_length": { "type":  "list", "values": [1.0] },
     "relative_density": { "type": "list", "values": [1.0] },
     "percent": 100
   }],
 },

Expression

Expression manipulates the shape of the eyes, mouth, cheeks, etc. according to the name of an expression, and an amount, called intensity.

Note: at the moment, only a single expression can be applied at a time.

There are over 150 available expressions, which can be found in our documentation appendix. The intensity is a '%' that denotes the relative deformation from neutral to each (full) expression.

name:

  • Default: ["none"]
  • Note: Use ["all"] as a shorthand for every option

intensity:

  • Default: 0.75
  • Min: 0
  • Max: 1

Two expressions with fully varying intensities

"expression": [{
  "name": ["eyes_closed_max", "chew"],
  "intensity": { "type": "range", "values": {"min": 0.0, "max": 1.0} },
  "percent": 100
}]

Visual examples of our expressions (see also: full input JSON to generate them):


Eye Gaze

The direction the eyes look, or our gaze value, is described from the -30 to 30 degrees as a difference from looking straight ahead. An eye looking up and to the left, from the character’s point of view, would have a positive horizontal angle and a positive vertical angle.

In the output, we also output the gaze_vector, which is the vector from the centroid of the eye volume, to the location of the pupil in 3d world-space coordinates.

horizontal_angle:

  • Default: 0
  • Min: -30
  • Max: 30

vertical_angle:

  • Default: 0
  • Min: -30
  • Max: 30

Gaze section featuring widest gaze ranges

"gaze": [{
  "horizontal_angle": { "type": "range", "values": {"min": -30.0, "max": 30.0 }},
  "vertical_angle": { "type": "range", "values": {"min": -30.0, "max": 30.0 }},
  "percent": 100
}]

Visual examples of gazes (see also: full input JSON to generate them):


Head Turn

Head turn describes the amount the head rotates about the neck/torso. It ranges from -45 to 45 degrees, in all 3 dimensions as a difference from posing level and straignt ahead. A head pitched/turned up and to the left, from the character’s point of view, would have a positive pitch angle and a positive yaw angle.

Note: Head turn rotatation is applied in the following order: (1) yaw, (2) pitch, (3) roll. These are applied in this order regardless of how the JSON keys are ordered in a job.

yaw:

  • Default: 0
  • Min: -45
  • Max: 45

pitch:

  • Default: 0
  • Min: -45
  • Max: 45

roll:

  • Default: 0
  • Min: -45
  • Max: 45

Head turn section featuring widest head-turn ranges

"head_turn": [{
  "yaw": { "type": "range", "values": {"min": -45.0, "max": 45.0 }},
  "pitch": { "type": "range", "values": {"min": -45.0, "max": 45.0 }},
  "roll": { "type": "range", "values": {"min": -45.0, "max": 45.0 }},
  "percent": 100
}]

Visual examples of head turns (see also: full input JSON to generate them):


Hair

Hair is grown procedurally based on a few parameters: named style, color, length, and density. Style names and color names can be found in the documentation appendix.

Note: We currently recommend limiting relative_length to greater than 0.5 and relative_density to greater than 0.7.

Note 2: At the moment, hair should not be specified if any headwear is specified.

Note 3: hair does not maintain the same color between renders for the same identity in a single job.

Note 4: The all keyword does not contain the none keyword, meaning that if all is requested for styles, colors, etc., a none or empty value will not be included - which means using the all keyword for hair returns zero bald heads.

Randomization color_seed controls variance in color of hair (and facial hair).

  • For consistent renders from one input to the next, always specify color_seed and set it to the same value
  • For randomized renders, specify color_seed as a range

You can also force that the hair style be sex-appropriate for the identity (sex_matched_only), and ethnically appropriate for the identity (ethnicity_matched_only). While these options may “feel” more appropriate, we have found that for machine learning, full variance can generalize better (use-case dependent).

style:

  • Default: ["none"]
  • Note: Use ["all"] as a shorthand for every option

color:

  • Default: ["dark_golden_brown"]
  • Note: Use ["all"] as a shorthand for every option

relative_length:

  • Default: 1.0
  • Min: 0.5
  • Max: 1.0

relative_density:

  • Default: 1.0
  • Min: 0.5
  • Max: 1.0

color_seed:

  • Default: 0.0
  • Min: 0.0
  • Max: 1.0

sex_matched_only:

  • Default: true

ethnicity_matched_only:

  • Default:false
"hair": [{
  "style": ["all"],
  "color": ["all"],
  "sex_matched_only": true,
  "ethnicity_matched_only": true,
  "relative_length": { "type": "range", "values": { "min": 0.5, "max": 0.8 }},
  "relative_density": { "type": "range", "values": { "min": 0.5, "max": 1 }},
  "color_seed": { "type": "range", "values": { "min": 0, "max": 1 }},
  "percent": 100
}]

Visual examples of hairstyles and colors (see also: full input JSON to generate them):

Visual examples of hair lengths applied to a single style (see also: full input JSON to generate them):


Facial Hair

Facial hair is also grown procedurally based on the same parameter types as hair. There are mixes of just mustaches, just beards, and full mustache and beards. Check the documentation appendix for style and color names.

Note: At the moment, facial hair should not be specified if any mask is specified.

Note 2: The all keyword does not contain the none keyword, meaning that if all is requested for styles, colors, etc., a none or empty value will not be included.

Randomization color_seed controls variance in color of facial hair (and head hair).

  • For consistent renders from one input to the next, always specify color_seed and set it to the same value
  • For randomized renders, specify color_seed as a range

You can also force the facial hair color to be the same as the head hair color with the match_hair_color flag, for that particular render.

style:

  • Default: ["none"]
  • Note: Use ["all"] as a shorthand for every option

color:

  • Default: ["dark_golden_brown"]
  • Note: Use ["all"] as a shorthand for every option

relative_length:

  • Default: 1.0
  • Min: 0.5
  • Max: 1.0

relative_density:

  • Default: 1.0
  • Min: 0.5
  • Max: 1.0

color_seed:

  • Default: 0.0
  • Min: 0.0
  • Max: 1.0

match_hair_color:

  • Default: true
"facial_hair": [{
  "style": ["all"],
  "color": ["all"],
  "match_hair_color": true,
  "relative_length": { "type":  "list", "values": [1.0] },
  "relative_density": { "type": "list", "values": [1.0] },
  "color_seed": { "type": "range", "values": { "min": 0, "max": 1 }},
  "percent": 100
}]

Visual examples of facial hair styles and colors (see also: full input JSON to generate them):

Visual examples of facial hair lengths applied to a single style (see also: full input JSON to generate them):


Eyebrows

Each eyebrow associated with an ID has internally assigned and curated values for style, relative_length, and relative_density. The eyebrow color remains natural by defaulting to match the hair color specified in the request — if no hair color is specified, eyebrows revert to the default hair color which is currently dark_golden_brown.

In order to provide an even wider varation of eyebrows shapes and sizes on the models, a number of distributions can be set using overrides. With match_id_eyebrows set to false (i.e., [code Allow Distro]), distribution logic is applied, allowing for variation of values passed in by the user for style, relative_length, and relative_density — conversely, match_id_eyebrows set to true uses default values and any additional values are ignored. Additionally, setting sex_matched_only to false will allow the style list to accept styles from both male and female genders when creating the distribution.

match_hair_color defaults to true, matching eyebrow color to hair color. Alternatively, setting match_hair_color to false allows the color and color_seed values to be overridden by a distrubution.

There are 20 male and 32 female eyebrow styles, which are listed in the eyebrow documentation appendix.

match_id_eyebrows:

  • Default: true
  • Applies To: style, relative_length, relative_density

style:

  • Default: varies by ID
  • Allow Distro: set match_id_eyebrows=false
  • Note: Use ["all"] as a shorthand for every option

relative_length:

  • Default: varies by ID
  • Allow Distro: set match_id_eyebrows=false
  • Min: 0.7
  • Max: 1.0

relative_density:

  • Default: varies by ID
  • Allow Distro: set match_id_eyebrows=false
  • Min: 0.7
  • Max: 1.0

color:

  • Default: Matches hair color, hair color default is ["dark_golden_brown"]
  • Allow Distro: set match_hair_color=false
  • Note: Use ["all"] as a shorthand for every option

color_seed:

  • Default: 0.0
  • Min: 0.0
  • Max: any postive number

match_hair_color:

  • Default: true, set to false to override

sex_matched_only:

  • Default: true, set to false to override
  • Used With: match_id_eyebrows=false
"eyebrows": [{
  "match_id_eyebrows": false,
  "style": ["all"],
  "relative_length": { "type": "range", "values": { "min": 0.7, "max": 1.0 }},
  "relative_density": { "type": "range", "values": { "min": 0.7, "max": 1.0 }},
  "color": ["all"],
  "color_seed": { "type": "list", "values": [0] },
  "match_hair_color": false,
  "sex_matched_only": false,
  "percent": 100
}]

A few different examples of IDs with their default eyebrows applied, and a random hair color. (see also: full input JSON to generate them):

Visual examples of eyebrow lengths applied to a single style (see also: full input JSON to generate them):

Visual examples of eyebrow densities applied to a single style (see also: full input JSON to generate them):

Eyebrows can also be "style": ["none"]


Accessories

The facial attributes section describes adornments that are additions beyond just the head anatomy.

This includes:

  • Glasses
  • Headwear/Hats
  • Face Masks
  • Headphones

An example of all accessories filled out:

"accessories": {
  "glasses": [{
    "style": ["all"],
    "lens_color": ["default"],
    "transparency": {"type":"range", "values": {"min":0.0,"max":1.0}},
    "metalness": {"type":"range", "values": {"min":0.0,"max":1.0}},
    "sex_matched_only": true,
    "percent": 100
  }],
  "headwear": [{
    "style": ["all"],
    "sex_matched_only": true,
    "percent": 100
  }],
  "masks": [{
    "style": ["all"],
    "percent": 100
  }],
  "headphones": [{
    "style": ["all"],
    "percent": 100
  }]
},


Glasses

Glasses have style names, several values for color, specified in the documentation appendix, transparency and "mirrored-ness", referred to as metalness. For clear glasses, the transparency value 1 is used. For fully mirrored glasses, the metalness value would be 1.

Note: The all keyword does not contain the none keyword, meaning that if all is requested for styles, lens colors, etc., a none or empty value will not be included.

style:

  • Default: ["none"]
  • Note: Use ["all"] as a shorthand for every option

lens_color:

  • Default: ["default"]
  • Note: Use ["all"] as a shorthand for every option

transparency:

  • Default: 1
  • Min: 0.0
  • Max: 1.0 (fully clear/transparent)

metalness:

  • Default: 1
  • Min: 0.0
  • Max: 1.0 (fully mirrored)

sex_matched_only:

  • Default: true

An example of clear, regular glasses json:

"glasses": [{
  "style": ["all"],
  "lens_color": ["default"],
  "metalness": {"type":"list", "values":[0]},
  "transparency": {"type":"list", "values":[1]},
  "sex_matched_only": true,
  "percent": 100
}]

Visual examples of glasses styles (see also: full input JSON to generate them):

Visual examples of glasses colors (see also: full input JSON to generate them):

Visual examples of glasses metalness (see also: full input JSON to generate them):

Visual examples of glasses transparency (see also: full input JSON to generate them):

Glasses move to the top of the head when masks are in position 0 or 1 — in all other mask positions, glasses remain over the eyes. A demonstration of the difference:


Headwear

There are several styles of hats scaled to the size of the head. Simply a style name or list of them is specified. Style names can be found in the documentation appendix.

Note: At the moment, hair should not be specified if any headwear is specified.

Note 2: The all keyword does not contain the none keyword, meaning that if all is requested for styles, etc., a none or empty value will not be included.

You can also force the headwear to be sex-appropriate for the identity (sex_matched_only). Like most sex-appropriate values, while this option may “feel” more appropriate, we have found that for machine learning, full variance can generalize better (use-case dependent).

style

  • Default: ["none"]
  • Note: Use ["all"] as a shorthand for every option

sex_matched_only:

  • Default: true

All headwear style selection:

"headwear": [{
  "style": ["all"],
  "sex_matched_only": true,
  "percent": 100
}]

Visual examples of headwear styles (see also: full input JSON to generate them):


Masks

There are several styles of masks scaled to the size of the head. Simply a style name or list of them is specified. Each mask also has an off-nose version as a different style name. Style names can be found in the documentation appendix.

Position of the mask can be specified as well, defaulting to over the nose. Options include below the chin. Valid position values can be found in the documentation appendix

Note: At the moment, facial hair should not be specified if any mask is specified.

Note 2: The all keyword does not contain the none keyword, meaning that if all is requested for styles etc., a none or empty value will not be included.

You can also force the masks to be sex-appropriate for the identity (sex_matched_only). Like most sex-appropriate values, while this option may “feel” more appropriate, we have found that for machine learning, full variance can generalize better (use-case dependent).

Mask styles each have five variants, designated by values ranging from 0 to 4.

style:

  • Default: ["none"]
  • Note: Use ["all"] as a shorthand for every option

position:

  • Default: "2"
  • Note: Use ["all"] as a shorthand for every option

variant:

  • default: ["0"]
  • Note: Use ["all"] as a shorthand for every option

JSON for just selecting the floral pattern:

"masks": [{
  "style": ["ClothHead"],
  "percent": 100
}]

Visual examples of mask styles in position `2` (see also: full input JSON to generate them):

Visual examples of the `N95` style in different positions (see also: full input JSON to generate them):

Visual examples of the mask variants for all styles:


Headphones

There are several styles of headphones scaled to the size of the head. Simply a style name or list of them is specified. Style names can be found in the documentation appendix.

Note: At the moment, hats should not be specified if any headphones are specified.

style:

  • Default: ["none"]
  • Note: Use ["all"] as a shorthand for every option

Specifying a single headphone style to use:

"headphones": [{
  "style": ["0006_headsetMic"],
  "percent": 100
}]


Visual examples of headphones styles (see also: full input JSON to generate them):


Bodies

Bodies appear by default, if only a head and a neck should appear, the property enabled must be set as false.

The api provides bodies of varying shapes and sizes, and modifies clothing to fit over them. The default value for match_id_body_type is true. With default match_id_body_type, height and fat_content are automatically set and consistent for each ID — the settings are also the same for a given ID from one image to the next and from one job to the next. They are roughly mapped to the height and BMI of the identity.

For machine learning and other uses requiring randomization of body shape and size, set match_id_body_type to false, and set height and associated fat_content. These may result in unusual proportions of head size relative to body size — testing to find a proper balance is recommended.

enabled:

  • Default: true

match_id_body_type:

  • Default: true

height:

  • Default: "median"

fat_content:

  • Default: "median"

percent:

  • Default: 100

You can check the documentation appendix for more info on valid height, valid fat_content, height logic, and bmi logic.

Body enabled and not matched, asking for full distros with all:

"body": [{
  "match_id_body_type": false,
  "height": ["all"],
  "fat_content": ["all"],
  "percent": 100
}]

Visual examples of varying body fat content (see also: full input JSON to generate them):

Visual examples of varying body heights. Please note that the current camera location logic centers from the head, so changing heights is not immediately noticeable against some backgrounds, but can be seen here in the length of arm remaining in the image (see also: full input JSON to generate them):

Clothing 2.0 [BETA]

There are many clothing outfits available to choose from. Outfits are normally filtered to gender-normalized choices (for example: no dresses on males, no suit coats on females), but that filter can be dropped by changing the value of sex_matched_only to false. By default a gender-neutral outfit of jeans, t-shirt, and hoodie are applied if nothing is specified. Also, a new feature single_style_per_id has been added which will override a distibution by choosing a single outfit to apply to all of the renders for each ID selected.

There are over 30 available types of clothing outfits, which can be found in our documentation appendix

NOTE: This feature is in beta and the JSON structure is subject to change.

outfit:

  • Default: "work_casual_4"

single_style_per_id:

  • Default: false

sex_matched_only:

  • Default: true

NOTE: The value of body must be set to enabled for clothing to appear.

An example to start with:

"clothing": [{
  "outfit": [
    "work_casual_0"
  ],
  "sex_matched_only": false,
  "percent": 100
}]

Visual examples of clothing types:


Gesture Animations [BETA]

The gesture section defines body motion sequences and static poses. A gesture is identified by , it can be given a position_seed. By default, keyframe_only is true, setting the selected gesture to be created as a static pose of a single render with a single frame. When keyframe_only is false, each render is split into multiple frames that can be played back as an animation. Currently, the frames are designed to be played back at 30fps.

Gestures can be listed as "all" or chosen from the list of gestures found here. The default body gesture is "default", which is a neutral standing position with arms out to the sides lifted away from the body slightly.

name:

  • Default: "default"

keyframe_only:

  • Default: true

position_seed:

  • Default: 0.0
  • Min: 0.0
  • Max: any postive number

Example with distribution of all gestures, half of which when run would return single frame renders chosen from the entire distribution, and half would return look_right as an animated gesture:

"gesture": [{
  "name": ["all"],
  "keyframe_only": true,
  "position_seed": {"type": "list", "values": [1]},
  "percent": 50
},
{
  "name": ["look_right"],
  "keyframe_only": false,
  "position_seed": {"type": "list", "values": [3]},
  "percent": 50
}],

Visual examples of available body gestures in their keyframe:


Camera and Light Rigs

Overview

Placing cameras and lights into a virtual scene is based on creating one or more virtual rigs. A rig defines a local space in which the lights and cameras can be placed by setting an initial origin point and orientation towards the subject. It is then moved with a set of positional transforms and rotations along all three axis. How the rig can be moved from or around it's origin point is determined by its type.

The top level camera_and_light_rigs is an array and not a distribution group. The array allows for multiple rigs to be placed in the scene, but currently only the first rig object (0th index in the array) can hold cameras. The additional indexes in the array are useful to place additonal lights in the scene with their own rig coordinates and typed behavior.

The first rig can hold up to five cameras, each able to have custom render settings, specification, and location relative to the rig. Any rig, including the first, can hold up to three lights each, which are also placed by their relative location to the rig and can be controlled by a number of settings.

Contrived example

"camera_and_light_rigs": [
  {
    "type": "manual",
  },
  {
    "type": "manual",
    "location": {
      "x": { "type": "range", "values": { "min": 0.5, "max": 0.6 }},
      "y": { "type": "range", "values": { "min": 1, "max": 1}},
      "z": { "type": "range", "values": { "min": 2, "max": 2 }}
    },
  }
],

Rig Types

Head Orbit

Description: head_orbit keeps the rig in orbit around the head of the main human. Location transform along the x and y axis are muted in this mode and input will be ignored. Transform z is the distance from the head.

Origin: 0,0,0 is set at the centroid of the human head.

Transform Specifics: The rig is moved away from the origin by transform z units; it will be facing down the z-axis. Next, any rotations are applied. Finally the rig is moved to the head.

Example: The user wants a 90 degree profile of the head and wants to be 5 meters away. The transform would be 0 in the x- and y-axis and 5 for z, with a rotation of +90 along the y-axis.

Example of Head Orbit

"camera_and_light_rigs": [
  {
    "type": "head_orbit",
    "location": {
      "x": { "type": "list", "values": [0] },
      "y": { "type": "list", "values": [0] },
      "z": { "type": "list", "values": [1] },
      "pitch": { "type": "list", "values": [0] },
      "yaw": { "type": "list", "values": [0] },
      "roll": { "type": "list", "values": [0] }
    }
  }
],
Head Orbit with Tracking

Description: head_orbit_with_tracking operates exactly like head_orbit except the head joint’s rotation is taken into account and acts as an additional offset. This can be helpful when working with animated gestures. An example use case: the head looks from its left shoulder to its right shoulder over the course of 100 frames. If no rotation is specified the camera keeps itself oriented straight at the face of the head and will track with it across the whole animation.

Transform Specifics: The rig is moved away from the origin by transform-z units and it will be facing down the z-axis. Next it is rotated relative to the head’s rotation, then if a rotation offset is specified by the user it is further rotated around the origin. Finally the rig is moved to the head.

Example: The user wants a 90 degree profile of the head and wants to be 5 meters away. The transform would be 0 in the x- and y-axis and 5 for z, with a rotation of +90 along the y-axis. This works similar to head_orbit BUT this will track with the head when an animation is used.

Example of Head Orbit with Tracking

"camera_and_light_rigs": [
  {
    "type": "head_orbit_with_tracking",
    "location": {
      "x": { "type": "list", "values": [0] },
      "y": { "type": "list", "values": [0] },
      "z": { "type": "list", "values": [1] },
      "pitch": { "type": "list", "values": [0] },
      "yaw": { "type": "list", "values": [0] },
      "roll": { "type": "list", "values": [0] }
    }
  }
],
Head Orbit in Car

Description: This operates exactly like head_orbit except the head joint is hard coded in and additional steps are taken to move it down to car level. This limits the orbit of the rig around the head of the human. Transform-x and transform-y are muted in this mode. Transform-z is the distance from the head. Rotation is the orbit rotations.

Origin: 0,0,0 is set at the centroid of the human head.

Transform Specifics: The Rig is moved away from the origin by transform z units and it will be facing down the z-axis. Next it is rotated around the origin. Finally the rig is moved to the head.

Example: The user wants a 90 degree profile of the head and wants to be 5 units away. The would Type in Transform {0,0,5} and Rotate {0,90,0}

Example of Head Orbit in Car

"camera_and_light_rigs": [
  {
    "type": "head_orbit_in_car",
    "location": {
      "x": { "type": "list", "values": [0] },
      "y": { "type": "list", "values": [0] },
      "z": { "type": "list", "values": [1] },
      "pitch": { "type": "list", "values": [0] },
      "yaw": { "type": "list", "values": [0] },
      "roll": { "type": "list", "values": [0] }
    }
  }
],
Manual

Description: This is a way for the user to simply define in 3d space where the rig exists. It is the most straight forward of the XformTypes.

Origin: 0,0,0 will set the rig position to the scene origin which is generally by the feet of the human.

Transform Specifics: Transform is applied then rotation is applied.

Example: What you see is what you get. A rig with Transform{1,5,0} and Rotation of{10,0,0} will result in a rig that is placed at 1,5,0 and that rig will be rotated around the x axis by ten degrees.

Example of Manual Type

"camera_and_light_rigs": [
  {
    "type": "manual",
    "location": {
      "x": { "type": "list", "values": [0] },
      "y": { "type": "list", "values": [0] },
      "z": { "type": "list", "values": [1] },
      "pitch": { "type": "list", "values": [0] },
      "yaw": { "type": "list", "values": [0] },
      "roll": { "type": "list", "values": [0] }
    }
  }
],

Rig Location

A rig's initial origin point is determined by it's type, which is defined above. From there, the placement of the rig is refined by setting coordinate transform values and applying any desired rotation towards or away the object.

Transform in meters.

x:

  • Default: 0.0
  • Min: 0.0
  • Max: 1000.0

y:

  • Default: 0.0
  • Min: 0.0
  • Max: 1000.0

z:

  • Default: 0.0
  • Min: 0.0
  • Max: 1000.0

Rotation in degrees.

pitch:

  • Default: 0.0
  • Min: -180
  • Max: 180

yaw:

  • Default: 0
  • Min: -180
  • Max: 180

roll:

  • Default: 0
  • Min: -180
  • Max: 180

Rig Location

"camera_and_light_rigs": [
  {
    "type": "manual",
    "location": {
      "x": { "type": "list", "values": [0.2. -0.2] },
      "y": { "type": "list", "values": [0.2] },
      "z": { "type": "list", "values": [2] },
      "pitch": { "type": "list", "values": [0] },
      "yaw": { "type": "list", "values": [5] },
      "roll": { "type": "list", "values": [0] }
    }
  }
],


Cameras

Name

A camera name can consist of lowercase alphanumeric characters. It is recommended to name the cameras when more than one are defined in a scene.

name:

  • Default: "default"
  • Limitations: Must be alphanumeric string, no special characters

Camera Example

"cameras": [
  {
    "name": "cam1",
    "specifications": {
      "resolution_h": 1024,
      "resolution_w": 1024,
      "focal_length": { "type": "range", "values": { "min": 100, "max": 100 }},
      "sensor_width": { "type": "range", "values": { "min": 33, "max": 33 }},
      "wavelength": "visible"
    }
  } 
]

Resolution

The resolution height and width can be set for each camera. The default for a camera is 1024 x 1024 if not specified.

resolution_w and resolution_h:

  • Default: 1024
  • Min: 256
  • Max: 4098

Camera Example

"cameras": [
  {
    "name": "default",
    "specifications": {
      "resolution_h": 1024,
      "resolution_w": 1024,
      "focal_length": { "type": "range", "values": { "min": 100, "max": 100 }},
      "sensor_width": { "type": "range", "values": { "min": 33, "max": 33 }},
      "wavelength": "visible"
    }
  } 
]

Focal Length

The focal length (power/zoom) of the lens is specified in mm. We follow the standard as used by the vast majority of DSLR camera lenses and CGI rendering engines.

focal_length:

  • Default: 100.0
  • Min: 1.0
  • Max: 300.0

Camera Example

"cameras": [
  {
    "name": "default",
    "specifications": {
      "resolution_h": 1024,
      "resolution_w": 1024,
      "focal_length": { "type": "range", "values": { "min": 100, "max": 100 }},
      "sensor_width": { "type": "range", "values": { "min": 33, "max": 33 }},
      "wavelength": "visible"
    }
  } 
]

Sensor Width

Camera sensor size may be calculated from its field of view — knowing the focal length of the camera in question is required. Here is the formula for calculating sensor size:

sensor_width = focal_len * tan(hFoV / 2), where hFoV is horizontal FoV and focal_len is in mm (millimeters)

For the purposes of comparison, 1.5mm is a good baseline focal length value for webcams, where a standard DSLR cameras focal length is 18mm.

EXAMPLE: Certain webcams may offer 65deg as standard and 90deg as wide-angle. This video demonstrates what different field of view will look like on a Logitech Brio webcam: . In the case of a webcam, the formula resolves to:

sensor_width = focal_len * tan(hFoV / 2)

=> sensor_width = 1.5mm * tan(65/2 degrees)

=> sensor_width = 0.955605 mm

sensor_width, measured in millimeters, is the "film back" or "back plate" of the optical sensor.

sensor_width:

  • Default: 33.0
  • Min: 0.001
  • Max: 1000.0

Camera Example

"cameras": [
  {
    "name": "default",
    "specifications": {
      "resolution_h": 1024,
      "resolution_w": 1024,
      "focal_length": { "type": "range", "values": { "min": 100, "max": 100 }},
      "sensor_width": { "type": "range", "values": { "min": 33, "max": 33 }},
      "wavelength": "visible"
    }
  } 
]

Wavelength

There are two wavelength settings, visible and nir. The default is the visible range of light. When nir is selected, the camera will be set to also accept a range of wavelengths.

NOTE: For near infrared to work properly, there needs to be at least one camera and one light in the scene set to nir for the render to appear properly. Visible cameras are not affected by near infrared, and NIR cameras will turn out very dark renders without at least one light to emit the NIR wavelengths into the scene.

wavelength

  • Default: "visible"
  • Types: "visible", "nir"

Camera Example

"cameras": [
  {
    "name": "default",
    "specifications": {
      "resolution_h": 1024,
      "resolution_w": 1024,
      "focal_length": { "type": "range", "values": { "min": 100, "max": 100 }},
      "sensor_width": { "type": "range", "values": { "min": 33, "max": 33 }},
      "wavelength": "visible"
    }
  } 
]

Visual examples of camera focal lengths / zoom (see also: full input JSON to generate them):


Camera Location

Camera relative_location takes the same style of inputs as rig location.

Transform in meters.

x:

  • Default: 0.0
  • Min: 0.0
  • Max: 1000.0

y:

  • Default: 0.0
  • Min: 0.0
  • Max: 1000.0

z:

  • Default: 0.0
  • Min: 0.0
  • Max: 1000.0

Rotation in degrees.

pitch:

  • Default: 0.0
  • Min: -180
  • Max: 180

yaw:

  • Default: 0
  • Min: -180
  • Max: 180

roll:

  • Default: 0
  • Min: -180
  • Max: 180

"relative_location": {
  "pitch": { "type": "range", "values": { "min": 0, "max": 0 }},
  "yaw": { "type": "range", "values": { "min": -3, "max": 3}},
  "roll": { "type": "range", "values": { "min": 0, "max": 0 }},
  "x": { "type": "range", "values": { "min": 1, "max": 1 }},
  "y": { "type": "range", "values": { "min": 1, "max": 1 }},
  "z": { "type": "range", "values": { "min": 1, "max": 1 }}
}

Addtional Camera Settings

Advanced specifications section holds a few additional settings:

  • Noise Threshold
  • Denoise
  • Lens Shift / Perspective
  • Window Offsets
Denoise and Noise Threshold

denoise controls whether or not denoise is applied, the default is true

noise_threshold sets the level, currently the default is .017

Offsets and Lens Shifts

window_offset_horizontal and window_offset_vertical is a vray specific parameter related to the camera’s intrinsics, see: vray documentation

window_offset_horizontal and window_offset_vertical:

  • Default: 0
  • Min: -100
  • Max: 100

lens_shift_horizontal and lens_shift_vertical relate to Tilt-shift, see: wikipedia article

lens_shift_horizontal and lens_shift_vertical:

  • Default: 0
  • Min: -100
  • Max: 100

Lights Overview

Lights are able to be customized to a number of different use cases. Five different types are available representing real world configurations such as "rectangle" and "omnidirectional". Each light can be further refined to a size in meters and a brightness intensity. Colors are represented as RGB and allow for variations by setting value ranges. For near infrared setups, the wavelength can be changed to nir. Finally, a light should be given a relative location to offset it from the rig, cameras, and other lights as necessary.

NOTE: For near infrared to work properly, there needs to be at least one camera and one light in the scene set to nir for the render to appear properly. Visible cameras are not affected by near infrared, and NIR cameras will turn out very dark renders without at least one light to emit the NIR wavelengths into the scene.

type

  • Default: "rect"

size_meters

  • Default: 0.25
  • Min: 0
  • Max: 3

intensity

  • Default: 0
  • Min: 0
  • Max: 7000

wavelength

  • Default: "visible"
  • Types: "visible", "nir"

Example of Spot Light

"lights": [
  {
    "type": "spot", 
    "size_meters": { "type": "range", "values": {"min": 0.01, "max": 3.0 }},
    "intensity": { "type": "range", "values": {"min": 0.0, "max": 30.0 }},
    "color": {
      "red": { "type": "range", "values": { "min": 0, "max": 255 }},
      "green": { "type": "range", "values": { "min": 0, "max": 255 }},
      "blue": { "type": "range", "values": { "min": 0, "max": 255 }}
    }
    "wavelength": "visible",
    "relative_location": {
      "pitch": { "type": "range", "values": { "min": 0, "max": 180 }},
      "yaw": { "type": "range", "values": { "min": 0, "max": 180 }},
      "roll": { "type": "range", "values": { "min": 0, "max": 180 }},
      "x": { "type": "range", "values": { "min": 0, "max": 1000 }},
      "y": { "type": "range", "values": { "min": 0, "max": 1000 }},
      "z": { "type": "range", "values": { "min": 0, "max": 1000 }}
    },
  }
]


Light Types

Rect

Description: This light casts light out from a given area. That area is as you probably guessed based on the name defined by a rectangle. However for ease of use this is actually limited to just a uniform square of light. The larger the area the softer the shadows.

Available Intensities: 70-7000

Available Sizes: 0-3 meters

Example of Rect Light

"lights": [
  {
    "type": "rect", 
    "size_meters": { "type": "range", "values": {"min": 0.01, "max": 3.0 }},
    "intensity": { "type": "range", "values": {"min": 0.0, "max": 30.0 }},
    "color": {
      "red": { "type": "range", "values": { "min": 0, "max": 255 }},
      "green": { "type": "range", "values": { "min": 0, "max": 255 }},
      "blue": { "type": "range", "values": { "min": 0, "max": 255 }}
    }
    "wavelength": "visible",
    "relative_location": {
      "pitch": { "type": "range", "values": { "min": 0, "max": 180 }},
      "yaw": { "type": "range", "values": { "min": 0, "max": 180 }},
      "roll": { "type": "range", "values": { "min": 0, "max": 180 }},
      "x": { "type": "range", "values": { "min": 0, "max": 1000 }},
      "y": { "type": "range", "values": { "min": 0, "max": 1000 }},
      "z": { "type": "range", "values": { "min": 0, "max": 1000 }}
    },
  }
]

Spot

Description: This light casts light only within a cone. Objects outside of this cone will receive no light.

Available Intensities: 10-150

Available Sizes: 0-3 meters

Example of Spot Light

"lights": [
  {
    "type": "spot", 
    "size_meters": { "type": "range", "values": {"min": 0.01, "max": 3.0 }},
    "intensity": { "type": "range", "values": {"min": 0.0, "max": 30.0 }},
    "color": {
      "red": { "type": "range", "values": { "min": 0, "max": 255 }},
      "green": { "type": "range", "values": { "min": 0, "max": 255 }},
      "blue": { "type": "range", "values": { "min": 0, "max": 255 }}
    }
    "wavelength": "visible",
    "relative_location": {
      "pitch": { "type": "range", "values": { "min": 0, "max": 180 }},
      "yaw": { "type": "range", "values": { "min": 0, "max": 180 }},
      "roll": { "type": "range", "values": { "min": 0, "max": 180 }},
      "x": { "type": "range", "values": { "min": 0, "max": 1000 }},
      "y": { "type": "range", "values": { "min": 0, "max": 1000 }},
      "z": { "type": "range", "values": { "min": 0, "max": 1000 }}
    },
  }
]

Omni

Description: Casts light in all directions uniformly. This is a quick way of illuminating an interior environment. The most common use case for this would be an object in a scene that is giving off light, such as a light bulb.

Available Intensities: 10-150

Available Sizes: 0-3 meters

Example of Omni Light

"lights": [
  {
    "type": "omni", 
    "size_meters": { "type": "range", "values": {"min": 0.01, "max": 3.0 }},
    "intensity": { "type": "range", "values": {"min": 0.0, "max": 30.0 }},
    "color": {
      "red": { "type": "range", "values": { "min": 0, "max": 255 }},
      "green": { "type": "range", "values": { "min": 0, "max": 255 }},
      "blue": { "type": "range", "values": { "min": 0, "max": 255 }}
    }
    "wavelength": "visible",
    "relative_location": {
      "pitch": { "type": "range", "values": { "min": 0, "max": 180 }},
      "yaw": { "type": "range", "values": { "min": 0, "max": 180 }},
      "roll": { "type": "range", "values": { "min": 0, "max": 180 }},
      "x": { "type": "range", "values": { "min": 0, "max": 1000 }},
      "y": { "type": "range", "values": { "min": 0, "max": 1000 }},
      "z": { "type": "range", "values": { "min": 0, "max": 1000 }}
    },
  }
]

Direct

Description: This light is a very far away light where the light source is so far away that the best way to describe it is just a direction in space. The most common use for this light is to replicate the sun.

Available Intensities: 1-40

Available Sizes: 0-3 meters

Example of Direct Light

"lights": [
  {
    "type": "direct", 
    "size_meters": { "type": "range", "values": {"min": 0.01, "max": 3.0 }},
    "intensity": { "type": "range", "values": {"min": 0.0, "max": 30.0 }},
    "color": {
      "red": { "type": "range", "values": { "min": 0, "max": 255 }},
      "green": { "type": "range", "values": { "min": 0, "max": 255 }},
      "blue": { "type": "range", "values": { "min": 0, "max": 255 }}
    }
    "wavelength": "visible",
    "relative_location": {
      "pitch": { "type": "range", "values": { "min": 0, "max": 180 }},
      "yaw": { "type": "range", "values": { "min": 0, "max": 180 }},
      "roll": { "type": "range", "values": { "min": 0, "max": 180 }},
      "x": { "type": "range", "values": { "min": 0, "max": 1000 }},
      "y": { "type": "range", "values": { "min": 0, "max": 1000 }},
      "z": { "type": "range", "values": { "min": 0, "max": 1000 }}
    },
  }
]

Disc

Description: Just like the rectangle light this gives of light based on a geometric shape. The shape in this case is a disc, these are typically quite artistic in use. Often these are used as eye highlights as they give a very nice round highlight that in cinema is referred to as the catch light.

Available Intensities: 70-7000

Available Sizes: 0-3 meters

Example of Disc Light

"lights": [
  {
    "type": "disc", 
    "size_meters": { "type": "range", "values": {"min": 0.01, "max": 3.0 }},
    "intensity": { "type": "range", "values": {"min": 0.0, "max": 30.0 }},
    "color": {
      "red": { "type": "range", "values": { "min": 0, "max": 255 }},
      "green": { "type": "range", "values": { "min": 0, "max": 255 }},
      "blue": { "type": "range", "values": { "min": 0, "max": 255 }}
    }
    "wavelength": "visible",
    "relative_location": {
      "pitch": { "type": "range", "values": { "min": 0, "max": 180 }},
      "yaw": { "type": "range", "values": { "min": 0, "max": 180 }},
      "roll": { "type": "range", "values": { "min": 0, "max": 180 }},
      "x": { "type": "range", "values": { "min": 0, "max": 1000 }},
      "y": { "type": "range", "values": { "min": 0, "max": 1000 }},
      "z": { "type": "range", "values": { "min": 0, "max": 1000 }}
    },
  }
]

Lights Color

Color for lights is set as a range for each color to allow for variation.

red:

  • Default: 255
  • Min: 0
  • Max: 255

green:

  • Default: 255
  • Min: 0
  • Max: 25

blue:

  • Default: 255
  • Min: 0
  • Max: 25

"lights": [
  {
    "type": "disc", 
    "size_meters": { "type": "range", "values": {"min": 0.01, "max": 3.0 }},
    "intensity": { "type": "range", "values": {"min": 0.0, "max": 30.0 }},
    "color": {
      "red": { "type": "range", "values": { "min": 0, "max": 255 }},
      "green": { "type": "range", "values": { "min": 0, "max": 255 }},
      "blue": { "type": "range", "values": { "min": 0, "max": 255 }}
    }
  }
]

Lights Location

Transform

x:

  • Default: 0.0
  • Min: 0.0
  • Max: 1000.0

y:

  • Default: 0.0
  • Min: 0.0
  • Max: 1000.0

z:

  • Default: 0.0
  • Min: 0.0
  • Max: 1000.0

Rotation

pitch:

  • Default: 0.0
  • Min: -180
  • Max: 180

yaw:

  • Default: 0
  • Min: -180
  • Max: 180

roll:

  • Default: 0
  • Min: -180
  • Max: 180

"lights": [
  {
    "type": "disc", 
    "relative_location": {
      "pitch": { "type": "range", "values": { "min": 0, "max": 180 }},
      "yaw": { "type": "range", "values": { "min": 0, "max": 180 }},
      "roll": { "type": "range", "values": { "min": 0, "max": 180 }},
      "x": { "type": "range", "values": { "min": 0, "max": 1000 }},
      "y": { "type": "range", "values": { "min": 0, "max": 1000 }},
      "z": { "type": "range", "values": { "min": 0, "max": 1000 }}
    },
  }
]

Environment

HDRI Map

An environment surrounding the face is determined by an HDRI map. HDRI maps provide the primary lighting for the scene in terms of where the sun and surrounding lights are, and how bright they are, as well as color of the background. There are many to choose from, and they can also be rotated and increased/decreased in level/intensity to brighten the scene. For many use-cases, this is the only type of environment that needs to be specified.

name:

  • Default: ["lauter_waterfall"]
  • Note: Use ["all"] as a shorthand for every option

intensity:

  • Default: 0.75
  • Min: 0.0
  • Max: 5.0

rotation:

  • Default: 0
  • Min: -180
  • Max: 180

Higher intensity with static rotation:

"environment": {
  "hdri": {
    "name": [
      "lauter_waterfall"
    ],
    "intensity": {
      "type": "list",
      "values": [2.25]
    },
    "rotation": {
      "type": "list",
      "values": [120]
    }
  }
}

Visual examples of available HDRIs (see also: full input JSON to generate them):


Inputs Reference

Fields Type Enum/Type Min Max Default
"version" number 1
"humans"
"identities"
"ids" array int [80]
"renders_per_identity"
integer 1 1000 1
"facial attributes"
"expression"
"name"
list Expressions "none"
"intensity"
list or range number 0 1 [0.75]
"gaze"
"horizontal_angle"
list or range number -30 30 [0]
"vertical_angle"
list or range number -30 30 [0]
"head_turn"
"pitch"
list or range number -45 45 [0]
"yaw" list or range number -45 45 [0]
"roll" list or range number -45 45 [0]
"hair"
"style"
list Styles "none"
"color"
list Colors "chocolate brown"
"color_seed"
list or range number [0]
"relative_length"
list or range number 0.5 1 [1.0]
"relative_density"
list or range number 0.5 1 [1.0]
"sex_matched_only"
bool true
"ethnicity_matched_only"
bool false
"facial_hair"
"style"
list Styles ["none"]
"color"
list Colors ["chocolate brown"]
"color_seed"
list or range number 0.0 1.0 [1.0]
"relative_length"
list or range number 0.5 1.0 [1.0]
"relative_density"
list or range number 0.5 1.0 [1.0]
"match_hair_color"
bool true
"eyebrows"
"style"
list Styles varies by ID
"match_id_eyebrows"
bool true
"relative_density"
list or range number 0.7 1.0 varies by ID
"relative_length"
list or range number 0.7 1.0 varies by ID
"color"
list "chocolate brown"
"color_seed"
list or range number 0.0 0.0 any postive number
"match_hair_color"
bool true
"sex_matched_only"
bool true
"accessories"
"glasses"
"style"
list Styles
"lens_color"
list Lens Colors
"transparency"
list or range number 0 1 [0]
"metalness"
list or range number 0 1 [1]
"sex_matched_only"
bool true
"headwear"
"style"
list Styles ["none"]
"sex_matched_only"
bool true
"masks"
"style"
list Styles ["none"]
"position"
list Positions ["2"]
"variant"
list Variants ["0"]
"headphones"
"style"
list Styles ["none"]
"environment"
"hdri"
"name"
list HDRIs ["lauter_waterfall"]
"intensity"
list number 0.1 5 [0.75]
"rotation"
list or range number -180 180 [0.0]
"body"
"enabled"
bool false
"match_id_body_type"
bool true
"height"
list Height ["median"]
"fat_content" list Fat Content ["median"]
"skin"
"highest_resolution"
bool false
"gesture"
"name"
list Gestures ["default"]
"mirrored" bool false
"keyframe_only" bool true
"position_seed" list or range number 0.0 0.0 any postive number
"clothing"
"outfit"
list Outfits ["jeans_and_hoodie_4"]
"sex_matched_only"
bool true
"single_style_per_id"
bool false
"camera_and_light_rigs"
list
"type"
"location"
"pitch"
range number -45.0 45.0 0
"yaw"
range number -45.0 45.0 0
"roll"
range number -45.0 45.0 0
"x"
range int 0 1000 0
"y"
range int 0 1000 0
"z"
range int 0 1000 0
"cameras"
list
"name"
"specifications"
"resolution_h"
int 256 4096 512
"resolution_w"
int 256 4096 512
"focal_length"
list or range number 1.0 300.0 [100.0]
"sensor_width"
list or range number 0.0 1,000.0 [33.0]
"wavelength"
string visible
"relative_location"
"pitch"
range number -45.0 45.0 0
"yaw"
range number -45.0 45.0 0
"roll"
range number -45.0 45.0 0
"x"
range int 0 100 0
"y"
range int 0 100 0
"z"
range int 0 100 0
"advanced"
"lens_shift_horizontal"
list or range number -100.0 100.0 [0.0]
"lens_shift_vertical"
list or range number -100.0 100.0 [0.0]
"window_offset_horizontal"
list or range number -100.0 100.0 [0.0]
"window_offset_vertical"
list or range number -100.0 100.0 [0.0]
"noise_threshold"
list or range number 0 1 [0.017]
"denoise"
bool true
"lights"
list
"type"
"wavelength" number 0 1
"intensity" number 4
"size_meters"
int 0
"relative_location"
"pitch"
range number -45.0 45.0 0
"yaw"
range number -45.0 45.0 0
"roll"
range number -45.0 45.0 0
"x"
range int 0 1000 0
"y"
range int 0 1000 0
"z"
range int 0 1000 0
"color"
int 0
"red"
int 0
"green"
int 0
"blue"
int 0

Full and Complex Example

A single image with most of the attributes set follows.

Note: headwear is not specified because we want hair.

View this JSON on GitHub.

{
    "version": 1,
    "humans": [
        {
        "identities": {
            "ids": [
            23,
            80
            ],
            "renders_per_identity": 5
        },
        "facial_attributes": {
            "expression": [
            {
                "name": [
                "none"
                ],
                "intensity": {
                "type": "list",
                "values": [
                    0.75
                ]
                },
                "percent": 100
            }
            ],
            "gaze": [
            {
                "horizontal_angle": {
                "type": "list",
                "values": [
                    0
                ]
                },
                "vertical_angle": {
                "type": "list",
                "values": [
                    0
                ]
                },
                "percent": 100
            }
            ],
            "head_turn": [
            {
                "pitch": {
                "type": "list",
                "values": [
                    -10,
                    0,
                    10
                ]
                },
                "yaw": {
                "type": "list",
                "values": [
                    -10,
                    0,
                    10
                ]
                },
                "roll": {
                "type": "list",
                "values": [
                    -10,
                    0,
                    10
                ]
                },
                "percent": 100
            }
            ],
            "hair": [
            {
                "style": [
                "none"
                ],
                "color": [
                "chocolate_brown"
                ],
                "color_seed": {
                "type": "list",
                "values": [
                    0
                ]
                },
                "relative_density": {
                "type": "list",
                "values": [
                    1.0
                ]
                },
                "relative_length": {
                "type": "list",
                "values": [
                    1.0
                ]
                },
                "sex_matched_only": true,
                "ethnicity_matched_only": false,
                "percent": 100
            }
            ],
            "facial_hair": [
            {
                "style": [
                "none"
                ],
                "color": [
                "chocolate_brown"
                ],
                "color_seed": {
                "type": "list",
                "values": [
                    0
                ]
                },
                "match_hair_color": true,
                "relative_density": {
                "type": "list",
                "values": [
                    1.0
                ]
                },
                "relative_length": {
                "type": "list",
                "values": [
                    1.0
                ]
                },
                "percent": 100
            }
            ],
            "eyebrows": [
            {
                "match_id_eyebrows": true,
                "style": [
                "male_manicured_thick_1",
                "female_manicured_curve_1"
                ],
                "relative_length": {
                "type": "range",
                "values": {
                    "min": 1.0,
                    "max": 1.0
                }
                },
                "relative_density": {
                "type": "range",
                "values": {
                    "min": 1.0,
                    "max": 1.0
                }
                },
                "color": [
                "all"
                ],
                "color_seed": {
                "type": "list",
                "values": [
                    0
                ]
                },
                "match_hair_color": true,
                "sex_matched_only": true,
                "percent": 100
            }
            ]
        },
        "accessories": {
            "glasses": [
            {
                "style": [
                "none"
                ],
                "lens_color": [
                "default"
                ],
                "transparency": {
                "type": "list",
                "values": [
                    1
                ]
                },
                "metalness": {
                "type": "list",
                "values": [
                    0
                ]
                },
                "sex_matched_only": true,
                "percent": 100
            }
            ],
            "headwear": [
            {
                "style": [
                "none"
                ],
                "sex_matched_only": true,
                "percent": 100
            }
            ],
            "masks": [
            {
                "style": [
                "none"
                ],
                "position": [
                "2"
                ],
                "variant": [
                "0"
                ],
                "percent": 100
            }
            ],
            "headphones": [
            {
                "style": [
                "none"
                ],
                "percent": 100
            }
            ]
        },
        "body": [
            {
            "enabled": true,
            "match_id_body_type": true,
            "height": [
                "median"
            ],
            "fat_content": [
                "median"
            ],
            "percent": 100
            }
        ],
        "gesture": [
            {
            "name": [
                "default"
            ],
            "keyframe_only": false,
            "mirrored": false,
            "position_seed": 0,
            "percent": 100
            }
        ],
        "agent": {
            "style": [
            "00021_Yvonne004"
            ],
            "enabled": [
            "false"
            ],
            "position_seed": 0
        },
        "clothing": [
            {
            "outfit": [
                "jeans_and_hoodie_2"
            ],
            "sex_matched_only": true,
            "single_style_per_id": false,
            "percent": 100
            }
        ],
        "environment": {
            "hdri": {
            "name": [
                "lauter_waterfall"
            ],
            "intensity": {
                "type": "list",
                "values": [
                0.75
                ]
            },
            "rotation": {
                "type": "list",
                "values": [
                0
                ]
            }
            },
            "location": {
            "enabled": [
                "false"
            ],
            "id": [
                "0"
            ],
            "indoor_light_enabled": [
                "false"
            ],
            "head_position_seed": {
                "type": "list",
                "values": [
                0
                ]
            },
            "facing_direction": {
                "type": "list",
                "values": [
                0
                ]
            }
            }
        },
        "camera_and_light_rigs": [
            {
            "type": "head_orbit",
            "location": {
                "pitch": {
                "type": "range",
                "values": {
                    "min": -20,
                    "max": 20
                }
                },
                "yaw": {
                "type": "range",
                "values": {
                    "min": -20,
                    "max": 20
                }
                },
                "roll": {
                "type": "range",
                "values": {
                    "min": 0,
                    "max": 0
                }
                },
                "x": {
                "type": "range",
                "values": {
                    "min": -0.05,
                    "max": 0.05
                }
                },
                "y": {
                "type": "range",
                "values": {
                    "min": -0.05,
                    "max": 0.05
                }
                },
                "z": {
                "type": "range",
                "values": {
                    "min": 2,
                    "max": 5
                }
                }
            },
            "cameras": [
                {
                "name": "mycamera",
                "specifications": {
                    "resolution_h": 1024,
                    "resolution_w": 1024,
                    "focal_length": {
                    "type": "range",
                    "values": {
                        "min": 100,
                        "max": 100
                    }
                    },
                    "sensor_width": {
                    "type": "range",
                    "values": {
                        "min": 33,
                        "max": 33
                    }
                    },
                    "wavelength": "visible"
                },
                "relative_location": {
                    "pitch": {
                    "type": "range",
                    "values": {
                        "min": -5,
                        "max": 5
                    }
                    },
                    "yaw": {
                    "type": "range",
                    "values": {
                        "min": -5,
                        "max": 5
                    }
                    },
                    "roll": {
                    "type": "range",
                    "values": {
                        "min": 0,
                        "max": 0
                    }
                    },
                    "x": {
                    "type": "range",
                    "values": {
                        "min": -0.05,
                        "max": 0.05
                    }
                    },
                    "y": {
                    "type": "range",
                    "values": {
                        "min": -0.05,
                        "max": 0.05
                    }
                    },
                    "z": {
                    "type": "range",
                    "values": {
                        "min": -0.05,
                        "max": 0.05
                    }
                    }
                }
                }
            ],
            "lights": [
                {
                "type": "spot",
                "wavelength": "visible",
                "intensity": {
                    "type": "range",
                    "values": {
                    "min": 0.0,
                    "max": 30.0
                    }
                },
                "size_meters": {
                    "type": "range",
                    "values": {
                    "min": 1,
                    "max": 3.0
                    }
                },
                "relative_location": {
                    "pitch": {
                    "type": "range",
                    "values": {
                        "min": -10,
                        "max": 10
                    }
                    },
                    "yaw": {
                    "type": "range",
                    "values": {
                        "min": -10,
                        "max": 10
                    }
                    },
                    "roll": {
                    "type": "range",
                    "values": {
                        "min": -10,
                        "max": 10
                    }
                    },
                    "x": {
                    "type": "range",
                    "values": {
                        "min": 0,
                        "max": 0
                    }
                    },
                    "y": {
                    "type": "range",
                    "values": {
                        "min": -1,
                        "max": 1
                    }
                    },
                    "z": {
                    "type": "range",
                    "values": {
                        "min": 1.5,
                        "max": 3
                    }
                    }
                },
                "color": {
                    "red": {
                    "type": "range",
                    "values": {
                        "min": 0,
                        "max": 255
                    }
                    },
                    "green": {
                    "type": "range",
                    "values": {
                        "min": 0,
                        "max": 255
                    }
                    },
                    "blue": {
                    "type": "range",
                    "values": {
                        "min": 0,
                        "max": 255
                    }
                    }
                }
                }
            ]
            }
        ]
        }
    ]
    }