Synthesis AI for Driver Monitoring

Overview

Synthesis AI offers enhanced capabilities to simulate driver behavior in the car cabin environment across a broad set of environments and scenarios without compromising customer privacy. Beginning in 2022, all new cars entering the EU market must be equipped with advanced safety systems. Among the mandatory safety measures is distraction recognition and alert systems (more on our Synthetic Data for Safe Driving blog post).

We provide the ability to mimic driver behavior in virtual car environments so you can quickly test and iterate machine learning models across a broader set of settings and situations without building and deploying fleets of vehicles. This includes thousands of unique identities with granular control of emotion, gaze angle, head pose, accessories, gestures, lighting environments, camera systems (e.g., RGB, NIR, TOF), and more.

Since the data is synthetically generated, the image data comes with an expanded set of pixel-perfect labels, including 3D facial landmarks, 3D body landmarks, gaze, angle, depth maps, sub-segmentation, and surface normals.

This document aims to provide copy-and-paste input examples to our API that serve many of the use-cases in the car-cabin scenario, including:

  • Typical Camera Placements
  • NIR Settings and lighting
  • Eye Gaze Direction
  • Closing Eyes, Yawning Mouths
  • Head Turns and Body Poses


Workflow

The standard workflow for the Synthesis AI Face API is:

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

Hello Car World

Most machine learning tasks benefit from a wide distribution of our human features. To make it easy to get started, the JSON provided contains the following features:

  • 3 identities, 1 render per identitiy (selected via Identities API)
  • Rear-view mirror camera placement
  • NIR emitter & Sensor (tune-able sensor intensity)
  • Transparent Glasses & Sunglasses (10% of images)
  • Hats (10% of images)
  • Face Masks (10% of images)
  • Facial Expressions: Eyes closed, mouth open, combinations (all images)
  • Eye Gaze: +/- 30 degrees (all images)
  • Head Turn: Several combinations of pitch, yaw, roll together
  • Facial Hair (20% of images)
  • Variety of clothing

To process the outputs more easily, we provide a face_api_dataset library in Python, and output documentation.

Quickstart JSON for Car Interior

{
  "humans": [
    {
      "identities": {
        "ids": [
          1,
          2,
          29
        ],
        "renders_per_identity": 1
      },
      "accessories": {
        "glasses": [
          {
            "style": [
              "all"
            ],
            "lens_color": [
              "default",
              "blue",
              "pink",
              "gray",
              "brown",
              "silver",
              "rose_gold",
              "ice_blue",
              "purple",
              "gold",
              "rose_red"
            ],
            "metalness": {
              "type": "list",
              "values": [
                0.0,
                0.0,
                0.0,
                0.1
              ]
            },
            "transparency": {
              "type": "list",
              "values": [
                1.0
              ]
            },
            "sex_matched_only": true,
            "percent": 5
          },
          {
            "style": [
              "all"
            ],
            "lens_color": [
              "white",
              "blue",
              "red",
              "pink",
              "yellow",
              "orange",
              "orange_red",
              "gray",
              "brown",
              "silver",
              "rose_gold",
              "ice_blue",
              "purple",
              "gold",
              "rose_red"
            ],
            "metalness": {
              "type": "list",
              "values": [
                0.4,
                0.4,
                0.4,
                0.8
              ]
            },
            "transparency": {
              "type": "list",
              "values": [
                0.95
              ]
            },
            "sex_matched_only": true,
            "percent": 5
          },
          {
            "style": [
              "none"
            ],
            "percent": 90
          }
        ],
        "headwear": [
          {
            "style": [
              "female_headscarf_1",
              "female_hijab_1",
              "male_beanie_1",
              "male_cap_1",
              "unisex_bucket_hat_aa"
            ],
            "sex_matched_only": true,
            "percent": 10
          },
          {
            "style": [
              "none"
            ],
            "percent": 90
          }
        ],
        "lens_color": [
          "default",
          "blue",
          "pink",
          "gray",
          "brown",
          "silver",
          "rose_gold",
          "ice_blue",
          "purple",
          "gold",
          "rose_red"
        ],
        "metalness": {
          "type": "list",
          "values": [
            0.0,
            0.0,
            0.0,
            0.1
          ]
        },
        "transparency": {
          "type": "list",
          "values": [
            1.0
          ]
        },
        "sex_matched_only": true,
        "percent": 5
    },
    {
      "style": [
        "all"
      ],
      "lens_color": [
        "white",
        "blue",
        "red",
        "pink",
        "yellow",
        "orange",
        "orange_red",
        "gray",
        "brown",
        "silver",
        "rose_gold",
        "ice_blue",
        "purple",
        "gold",
        "rose_red"
      ],
      "metalness": {
        "type": "list",
        "values": [
          0.4,
          0.4,
          0.4,
          0.8
        ]
      },
      "transparency": {
        "type": "list",
        "values": [
          0.95
        ]
      },
      "sex_matched_only": true,
      "percent": 5
    },
    {
      "style": [
        "none"
      ],
      "percent": 90
    }
      ],
      "headwear": [{
        "style": [
          "female_headscarf_1",
          "female_hijab_1",
          "male_beanie_1",
          "male_cap_1",
          "unisex_bucket_hat_aa"
        ],
        "sex_matched_only": true,
        "percent": 10
    },
    {
      "style": [
        "none"
      ],
      "percent": 90
    }
      ],
      "masks": [{
        "style": [
          "all"
        ],
        "position": [
          "1",
          "2",
          "3"
        ],
        "variant": [
          "all"
        ],
        "percent": 10
    },
    {
      "style": [
        "none"
      ],
      "percent": 90
    }
      ],
      "headphones": [{
        "style": [
          "none"
        ],
        "eyebrows": [
          {
            "style": [
              "all"
            ],
            "sex_matched_only": true,
            "match_hair_color": true,
            "percent": 100
          }
        ]
      },
      "body": [
        {
          "enabled": true,
          "percent": 100
        }
      ],
      "clothing": [
        {
          "name": [
            "mouth_large_opened",
            "disgusted"
          ],
          "intensity": {
            "type": "list",
            "values": [
              1.0
            ]
          },
          "percent": 15
        },
        {
          "name": [
            "mouth_large_opened",
            "disgusted"
          ],
          "intensity": {
            "type": "range",
            "values": {
              "min": 0.15,
              "max": 0.9
            }
          },
          "percent": 20
        }
      ],
      "gaze": [{
        "horizontal_angle": {
          "type": "range",
          "values": {
            "min": -30.0,
            "max": 30.0
          }
        },
        "vertical_angle": {
          "type": "range",
          "values": {
            "min": -30.0,
            "max": 30.0
          }
        },
        "geometry": "vehicle"
      },
      "camera_and_light_rigs": [
        {
          "cameras": [
            {
              "specifications": {
                "focal_length": {
                  "type": "list",
                  "values": [
                    3.7
                  ]
                },
                "sensor_width": {
                  "type": "list",
                  "values": [
                    5.4855
                  ]
                },
                "wavelength": "nir",
                "resolution_w": 1280,
                "resolution_h": 960
              }
            }
          ],
          "lights": [
            {
              "wavelength": "nir",
              "size_meters": {
                "type": "list",
                "values": [
                  0.5
                ]
              },
              "intensity": {
                "type": "list",
                "values": [
                  5
                ]
              }
            }
          ],
          "location": {
            "yaw": {
              "type": "range",
              "values": {
                "min": -17.3,
                "max": -17.3
              }
            },
            "pitch": {
              "type": "range",
              "values": {
                "min": -13.5,
                "max": -13.5
              }
            },
            "z": {
              "type": "range",
              "values": {
                "min": 0.85,
                "max": 0.85
              }
            }
          }
        }
      ]
    },
    {
      "identities": {
        "ids": [
          1,
          2
        ],
        "renders_per_identity": 1
      },
      "accessories": {
        "glasses": [
          {
            "style": [
              "all"
            ],
            "lens_color": [
              "default",
              "blue",
              "pink",
              "gray",
              "brown",
              "silver",
              "rose_gold",
              "ice_blue",
              "purple",
              "gold",
              "rose_red"
            ],
            "metalness": {
              "type": "list",
              "values": [
                0.0,
                0.0,
                0.0,
                0.1
              ]
            },
            "transparency": {
              "type": "list",
              "values": [
                1.0
              ]
            },
            "sex_matched_only": true,
            "percent": 5
          },
          {
            "style": [
              "all"
            ],
            "lens_color": [
              "white",
              "blue",
              "red",
              "pink",
              "yellow",
              "orange",
              "orange_red",
              "gray",
              "brown",
              "silver",
              "rose_gold",
              "ice_blue",
              "purple",
              "gold",
              "rose_red"
            ],
            "metalness": {
              "type": "list",
              "values": [
                0.4,
                0.4,
                0.4,
                0.8
              ]
            },
            "transparency": {
              "type": "list",
              "values": [
                0.95
              ]
            },
            "sex_matched_only": true,
            "percent": 5
          },
          {
            "style": [
              "none"
            ],
            "percent": 90
          }
        ],
        "headwear": [
          {
            "style": [
              "female_headscarf_1",
              "female_hijab_1",
              "male_beanie_1",
              "male_cap_1",
              "unisex_bucket_hat_aa"
            ],
            "sex_matched_only": true,
            "percent": 10
          },
          {
            "style": [
              "none"
            ],
            "percent": 90
          }
        ],
        "masks": [
          {
            "style": [
              "all"
            ],
            "position": [
              "1",
              "2",
              "3"
            ],
            "variant": [
              "all"
            ],
            "percent": 10
          },
          {
            "style": [
              "none"
            ],
            "percent": 90
          }
        ],
        "headphones": [
          {
            "style": [
              "none"
            ],
            "percent": 100
          }
        ]
      },
      "facial_attributes": {
        "expression": [
          {
            "name": [
              "eyes_closed"
            ],
            "intensity": {
              "type": "list",
              "values": [
                0.0
              ]
            },
            "percent": 50
          },
          {
            "name": [
              "mouth_large_opened"
            ],
            "intensity": {
              "type": "list",
              "values": [
                0.0
              ]
            },
            "percent": 50
          }
        ],
        "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,
                "max": 45
              }
            },
            "yaw": {
              "type": "range",
              "values": {
                "min": -45,
                "max": 45
              }
            },
            "roll": {
              "type": "range",
              "values": {
                "min": -20,
                "max": 20
              }
            },
            "percent": 100
          }
        ],
        "hair": [
          {
            "style": [
              "all"
            ],
            "color": [
              "all"
            ],
            "sex_matched_only": true,
            "ethnicity_matched_only": false,
            "relative_length": {
              "type": "range",
              "values": {
                "min": 0.8,
                "max": 1.0
              }
            },
            "relative_density": {
              "type": "range",
              "values": {
                "min": 0.8,
                "max": 1.0
              }
            },
            "percent": 100
          }
        },
        "yaw": {
          "type": "range",
          "values": {
            "min": -20,
            "max": 20
          }
        },
        "roll": {
          "type": "range",
          "values": {
            "min": -20,
            "max": 20
          }
        ]
      },
      "body": [
        {
          "enabled": true,
          "percent": 100
        }
      ],
      "clothing": [
        {
          "style": [
            "none"
          ],
          "percent": 80
        }
      ],
      "eyebrows": [{
        "style": [
          "all"
        ],
        "sex_matched_only": true,
        "match_hair_color": true,
        "percent": 100
      }]
    },
    "body": [{
      "enabled": true,
      "match_id_body_type": true,
      "percent": 100
    }],
    "clothing": [{
      "outfit": [
        "work_casual_0",
        "work_casual_1",
        "work_casual_2",
        "work_casual_3",
        "work_casual_4",
        "work_professional_0",
        "work_professional_1",
        "work_professional_2",
        "work_professional_3",
        "work_professional_4",
        "sunday_bbq_0",
        "sunday_bbq_1",
        "sunday_bbq_2",
        "sunday_bbq_3",
        "sunday_bbq_4",
        "jeans_and_hoodie_0",
        "jeans_and_hoodie_1",
        "jeans_and_hoodie_2",
        "jeans_and_hoodie_3",
        "jeans_and_hoodie_4",
        "longsleeve_dress_red",
        "longsleeve_dress_yellow",
        "longsleeve_dress_brown",
        "longsleeve_dress_navy",
        "longsleeve_dress_black",
        "flower_power_red",
        "flower_power_tan",
        "flower_power_white",
        "flower_power_blue",
        "flower_power_black"
      ],
      "sex_matched_only": true,
      "percent": 100
    }],
    "environment": {
      "hdri": {
        "name": ["studio_small_01"],
        "intensity": {
          "type": "list",
          "values": [0.1]
        },
        "rotation": {
          "type": "range",
          "values": {
            "min": 0,
            "max": 0
          }
        }
      }
    },
    "3d_location": [{
      "specifications": {
        "type": "vehicle"
      }
    }],
    "camera_and_light_rigs": [{
      "type": "head_orbit_in_car",
      "location": {
        "pitch": {
          "type": "list",
          "values": [-13.5]
        },
        "yaw": {
          "type": "list",
          "values": [-17.3]
        },
        "roll": {
          "type": "list",
          "values": [0]
        },
        "x": {
          "type": "list",
          "values": [-0.067]
        },
        "y": {
          "type": "list",
          "values": [-0.191]
        },
        "z": {
          "type": "list",
          "values": [0.85]
        }
      },
      "cameras": [{
        "name": "default",
        "specifications": {
          "resolution_h": 960,
          "resolution_w": 1920,
          "focal_length": {
            "type": "list",
            "values": [3.7]
          },
          "sensor_width": {
            "type": "list",
            "values": [5.4855]
          },
          "wavelength": "nir"
        },
        "relative_location": {
          "pitch": {
            "type": "list",
            "values": [0]
          },
          "yaw": {
            "type": "list",
            "values": [0]
          },
          "roll": {
            "type": "list",
            "values": [0]
          },
          "x": {
            "type": "list",
            "values": [0]
          },
          "y": {
            "type": "list",
            "values": [0]
          },
          "z": {
            "type": "list",
            "values": [0]
          }
        },
        "geometry": "vehicle"
      },
      "camera_and_light_rigs": [
        {
          "cameras": [
            {
              "specifications": {
                "focal_length": {
                  "type": "list",
                  "values": [
                    3.7
                  ]
                },
                "sensor_width": {
                  "type": "list",
                  "values": [
                    5.4855
                  ]
                },
                "wavelength": "nir",
                "resolution_w": 1280,
                "resolution_h": 960
              }
            }
          ],
          "lights": [
            {
              "wavelength": "nir",
              "size_meters": {
                "type": "list",
                "values": [
                  0.5
                ]
              },
              "intensity": {
                "type": "list",
                "values": [
                  5
                ]
              }
            }
          ],
          "location": {
            "yaw": {
              "type": "range",
              "values": {
                "min": -17.3,
                "max": -17.3
              }
            },
            "pitch": {
              "type": "range",
              "values": {
                "min": -13.5,
                "max": -13.5
              }
            },
            "z": {
              "type": "range",
              "values": {
                "min": 0.85,
                "max": 0.85
              }
            }
          }
        }
      ]
    }
  ]
}

Visual examples of Hello Car World Outputs:


Camera Placement

Our API for in-car cabins allows for flexible camera system placements. The most common driver monitoring cameras are placed at the rear view mirror location, so we provide an example of that in the following JSON.

The JSON modifies the following parameters:

  • horizontal_angle, vertical_angle, depth_meters: places the camera at the rear view mirror
  • offset_horizontal, offset_vertical: looks more towards the center of the vehicle
  • Specifies 25% visual spectrum (RGB) images, 75% NIR images

Some driver monitoring system cameras are also placed behind the wheel, and an example image is provided below.

Note: we move the seat (just as you would in an actual car) for best fit, depending on the body height and weight of the incoming driver.

JSON example of rear-view mirror location

"camera_and_light_rigs": [{
  "type": "head_orbit_in_car",
  "location": {
    "pitch": {
      "type": "list",
      "values": [-13.5]
    },
    "yaw": {
      "type": "list",
      "values": [-17.3]
    },
    "roll": {
      "type": "list",
      "values": [0]
    },
    "x": {
      "type": "list",
      "values": [-0.067]
    },
    "y": {
      "type": "list",
      "values": [-0.191]
    },
    "z": {
      "type": "list",
      "values": [0.85]
    }
  },
  "cameras": [{
    "name": "default",
    "specifications": {
      "resolution_h": 960,
      "resolution_w": 1920,
      "focal_length": {
        "type": "list",
        "values": [3.7]
      },
      "sensor_width": {
        "type": "list",
        "values": [5.4855]
      },
      "wavelength": "nir"
    }
  }]


Visual examples of driver monitoring camera placements:


NIR Settings

Most driver monitoring modules have at least one NIR emitter & sensor for monitoring the driver in nighttime conditions. Our API lets you customize the primary emitter location, as well as up to 3 other emitter locations to get pin-point reflections off the front of the eye. The API also lets you customize the intensity and size of each emitter to fine-tune the look and feel to match your particular camera module.

For a single emitter, use the wavelength: "nir" and colocated_emitter parameters.

For multiple NIR emitters, place additional white directional lights where the NIR emitters would be in the scene. An example json is to the right.

External HDRI settings can also be adjusted to match the camera system and daytime/nighttime conditions. Many NIR cameras do not see to the outside world, so we recommend `vignaioli` HDRI at intensity 0.1

Finally, to have matching visual spectrum (RGB) and NIR images, please contact us (support@synthesis.ai) as we have beta tools to specifically match scenes and sensor settings.

2 NIR Emitter locations

"lights": [{
  "type": "rect",
  "color": {
    "red": {
      "type": "list",
      "values": [255]
    },
    "blue": {
      "type": "list",
      "values": [255]
    },
    "green": {
      "type": "list",
      "values": [255]
    }
  },
  "intensity": {
    "type": "list",
    "values": [0.7]
  },
  "wavelength": "nir",
  "size_meters": {
    "type": "list",
    "values": [0.02]
  },
  "relative_location": {
    "x": {
      "type": "list",
      "values": [-0.372]
    },
    "y": {
      "type": "list",
      "values": [-0.117]
    },
    "z": {
      "type": "range",
      "values": {
        "min": 1,
        "max": 1
      }
    },
    "yaw": {
      "type": "list",
      "values": [-10]
    },
    "roll": {
      "type": "list",
      "values": [0]
    },
    "pitch": {
      "type": "list",
      "values": [-20]
    }
  }
},
{
  "type": "rect",
  "color": {
    "red": {
      "type": "list",
      "values": [255]
    },
    "blue": {
      "type": "list",
      "values": [255]
    },
    "green": {
      "type": "list",
      "values": [255]
    }
  },
  "intensity": {
    "type": "list",
    "values": [0.7]
  },
  "wavelength": "nir",
  "size_meters": {
    "type": "list",
    "values": [0.05]
  },
  "relative_location": {
    "x": {
      "type": "list",
      "values": [-0.372]
    },
    "y": {
      "type": "list",
      "values": [-0.117]
    },
    "z": {
      "type": "range",
      "values": {
        "min": 1,
        "max": 1
      }
    },
    "yaw": {
      "type": "list",
      "values": [-3]
    },
    "roll": {
      "type": "list",
      "values": [0]
    },
    "pitch": {
      "type": "list",
      "values": [15]
    }
  }
}]


Eye Closure

Detecting when the driver's eyes are closed more frequently, and/or for extended periods of time is key to any driver monitoring system. Our API provides expressions which allow for closure of eyes.

These expressions are compatible with both head turns, and glasses, which serve as effective confounds to train against.

Expressions which close the eye include "eyes_closed", "eye_closed_max_left", "eye_closed_max_right", "sad", and "disgusted".

Eye Closure Expressions

"facial_attributes": {
  "expression": [{
    "name": ["eyes_closed", "eye_closed_max_left", "eye_closed_max_right", "sad", "disgusted"],
    "intensity": { "type": "range", "values": {"min": 0.0, "max": 1.0} },
    "percent": 100
  }],
  ...
}


Visual examples of eye closure:


Mouth Openness

Detecting when the driver is yawning is also a key feature to train in driver monitoring systems. Our API provides expressions which allow for opening of the mouth.

These expressions are compatible with both head turns, and face masks, which serve as effective confounds to train against.

Expressions which opening of the mouth include aa, ae_ax_ah, ao, aw, ay, disgusted, d_t_n_19, er_05, ey_eh_uh_04, happy, h_12, k_g_ng_20, mouth_large_opened, mouth_little_opened, mouth_wide_opened, opened_closedteeth_left, opened_closedteeth_right, opened_global_left, opened_global_right, revulsion, and scared.

JSON example of mouth openness

"facial_attributes": {
  "expression": [{
    "name": ["aa", "ae_ax_ah", "ao", "aw", "ay", "disgusted", "d_t_n_19", "er_05", "ey_eh_uh_04", "happy", "h_12", "k_g_ng_20", "mouth_large_opened", "mouth_little_opened", "mouth_wide_opened", "opened_closedteeth_left", "opened_closedteeth_right", "opened_global_left", "opened_global_right", "revulsion", "scared"],
    "intensity": { "type": "range", "values": {"min": 0.0, "max": 1.0} },
    "percent": 100
  }],
  ...
}

Visual examples of driver monitoring mouth openness:


Gaze Direction

Detecting where a driver is looking is not easy under many lighting conditions, particularly when NIR is involved. Our API provides programmatic control of eye gaze which allow for limitless combinations of pupil direction; and also comes with 3d gaze vectors and 3d landmarks.

These gazes are compatible with head turns, glasses, and NIR emitters, which all serve as effective confounds to train against.

JSON example of gaze direction

"facial_attributes": {
  "gaze": [{
    "horizontal_angle": { "type": "range", "values": {"min": -30, "max": 30 }},
    "vertical_angle": { "type": "range", "values": {"min": -10.0, "max": 10.0 }},
    "percent": 100
    }]
  ...
}


Visual examples of eye gaze variation:


Head Turn

Just as with eye gaze, head turn is key to understanding where a driver's attention is focused, and can also be a sign of drowsiness or even consciousness. Our API provides programmatic control of head turn which allow for simulation of many scenarios; and comes with both face and body 3d landmarks.

These head turns are compatible with hats, glasses, and face masks, which serve as effective confounds to train against.

JSON example of head turn

"facial_attributes": {
  "head_turn": [{
    "pitch": {"type": "list", "values": [-45]},
      "yaw": {"type": "list", "values": [0]},
      "roll": {"type": "list", "values": [0]},
      "percent": 100
    }]
  ...
}


Visual examples of driver monitoring head turns:



Putting it All Together

The great part about the API is that you get complete programmatic control. Take a look in our GitHub appendix for more samples.

This particular sample spans the gamut camera placements, NIR settings, eye closure and mouth openness, head turns and gaze directions, as well as accessories, with the idea that you can tune down to what you like.

{
  "humans": [
    {
      "identities": {
        "ids": [
          1,
          2,
          29
        ],
        "renders_per_identity": 1
      },
      "accessories": {
        "glasses": [
          {
            "style": [
              "all"
            ],
            "lens_color": [
              "default",
              "blue",
              "pink",
              "gray",
              "brown",
              "silver",
              "rose_gold",
              "ice_blue",
              "purple",
              "gold",
              "rose_red"
            ],
            "metalness": {
              "type": "list",
              "values": [
                0.0,
                0.0,
                0.0,
                0.1
              ]
            },
            "transparency": {
              "type": "list",
              "values": [
                1.0
              ]
            },
            "sex_matched_only": true,
            "percent": 5
          },
          {
            "style": [
              "all"
            ],
            "lens_color": [
              "white",
              "blue",
              "red",
              "pink",
              "yellow",
              "orange",
              "orange_red",
              "gray",
              "brown",
              "silver",
              "rose_gold",
              "ice_blue",
              "purple",
              "gold",
              "rose_red"
            ],
            "metalness": {
              "type": "list",
              "values": [
                0.4,
                0.4,
                0.4,
                0.8
              ]
            },
            "transparency": {
              "type": "list",
              "values": [
                0.95
              ]
            },
            "sex_matched_only": true,
            "percent": 5
          },
          {
            "style": [
              "none"
            ],
            "percent": 90
          }
        ],
        "headwear": [
          {
            "style": [
              "female_headscarf_1",
              "female_hijab_1",
              "male_beanie_1",
              "male_cap_1",
              "unisex_bucket_hat_aa"
            ],
            "sex_matched_only": true,
            "percent": 10
          },
          {
            "style": [
              "none"
            ],
            "percent": 90
          }
        ],
        "masks": [
          {
            "style": [
              "all"
            ],
            "position": [
              "1",
              "2",
              "3"
            ],
            "variant": [
              "all"
            ],
            "percent": 10
          },
          {
            "style": [
              "none"
            ],
            "percent": 90
          }
        ],
        "headphones": [
          {
            "style": [
              "none"
            ],
            "percent": 100
          }
        ]
      },
      "facial_attributes": {
        "expression": [
          {
            "name": [
              "eyes_closed",
              "compressed",
              "disgusted"
            ],
            "intensity": {
              "type": "list",
              "values": [
                1.0
              ]
            },
            "percent": 15
          },
          {
            "name": [
              "mouth_large_opened"
            ],
            "intensity": {
              "type": "list",
              "values": [
                1.0
              ]
            },
            "percent": 25
          },
          {
            "name": [
              "eyes_closed",
              "disgusted"
            ],
            "intensity": {
              "type": "range",
              "values": {
                "min": 0.15,
                "max": 0.9
              }
            },
            "percent": 10
          },
          {
            "name": [
              "eyes_closed"
            ],
            "intensity": {
              "type": "list",
              "values": [
                1.0
              ]
            },
            "percent": 15
          },
          {
            "name": [
              "mouth_large_opened",
              "disgusted"
            ],
            "intensity": {
              "type": "list",
              "values": [
                1.0
              ]
            },
            "percent": 15
          },
          {
            "name": [
              "mouth_large_opened",
              "disgusted"
            ],
            "intensity": {
              "type": "range",
              "values": {
                "min": 0.15,
                "max": 0.9
              }
            },
            "percent": 20
          }
        ],
        "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": -15,
                "max": 0
              }
            },
            "yaw": {
              "type": "range",
              "values": {
                "min": -20,
                "max": 20
              }
            },
            "roll": {
              "type": "range",
              "values": {
                "min": -20,
                "max": 20
              }
            },
            "percent": 50
          },
          {
            "pitch": {
              "type": "range",
              "values": {
                "min": 0,
                "max": 45
              }
            },
            "yaw": {
              "type": "range",
              "values": {
                "min": -45,
                "max": 45
              }
            },
            "roll": {
              "type": "range",
              "values": {
                "min": -20,
                "max": 20
              }
            },
            "percent": 50
          }
        ],
        "hair": [
          {
            "style": [
              "all"
            ],
            "color": [
              "all"
            ],
            "sex_matched_only": true,
            "ethnicity_matched_only": false,
            "relative_length": {
              "type": "range",
              "values": {
                "min": 0.8,
                "max": 1.0
              }
            },
            "relative_density": {
              "type": "range",
              "values": {
                "min": 0.8,
                "max": 1.0
              }
            },
            "percent": 100
          }
        ],
        "facial_hair": [
          {
            "style": [
              "all"
            ],
            "color": [
              "all"
            ],
            "match_hair_color": true,
            "relative_length": {
              "type": "range",
              "values": {
                "min": 0.05,
                "max": 1.0
              }
            },
            "relative_density": {
              "type": "list",
              "values": [
                1.0
              ]
            },
            "percent": 10
          },
          {
            "style": [
              "all"
            ],
            "match_hair_color": false,
            "relative_length": {
              "type": "range",
              "values": {
                "min": 0.05,
                "max": 1.0
              }
            },
            "relative_density": {
              "type": "list",
              "values": [
                1.0
              ]
            },
            "percent": 10
          },
          {
            "style": [
              "none"
            ],
            "percent": 80
          }
        ],
        "eyebrows": [
          {
            "style": [
              "all"
            ],
            "sex_matched_only": true,
            "match_hair_color": true,
            "percent": 100
          }
        ]
      },
      "body": [
        {
          "enabled": true,
          "percent": 100
        }
      ],
      "clothing": [
        {
          "outfit": [
            "work_casual_0",
            "work_casual_1",
            "work_casual_2",
            "work_casual_3",
            "work_casual_4",
            "work_professional_0",
            "work_professional_1",
            "work_professional_2",
            "work_professional_3",
            "work_professional_4",
            "sunday_bbq_0",
            "sunday_bbq_1",
            "sunday_bbq_2",
            "sunday_bbq_3",
            "sunday_bbq_4",
            "jeans_and_hoodie_0",
            "jeans_and_hoodie_1",
            "jeans_and_hoodie_2",
            "jeans_and_hoodie_3",
            "jeans_and_hoodie_4",
            "longsleeve_dress_red",
            "longsleeve_dress_yellow",
            "longsleeve_dress_brown",
            "longsleeve_dress_navy",
            "longsleeve_dress_black",
            "flower_power_red",
            "flower_power_tan",
            "flower_power_white",
            "flower_power_blue",
            "flower_power_black"
          ],
          "sex_matched_only": true,
          "percent": 100
        }
      ],
      "environment": {
        "hdri": {
          "name": [
            "studio_small_01"
          ],
          "intensity": {
            "type": "list",
            "values": [
              0.1
            ]
          },
          "rotation": {
            "type": "range",
            "values": {
              "min": 0,
              "max": 0
            }
          }
        },
        "lights": [
          {
            "light1": {
              "color_r": {
                "type": "list",
                "values": [
                  255
                ]
              },
              "color_g": {
                "type": "list",
                "values": [
                  255
                ]
              },
              "color_b": {
                "type": "list",
                "values": [
                  255
                ]
              },
              "rotation_x": {
                "type": "list",
                "values": [
                  60
                ]
              },
              "rotation_y": {
                "type": "list",
                "values": [
                  0
                ]
              },
              "rotation_z": {
                "type": "list",
                "values": [
                  0.0
                ]
              },
              "intensity": {
                "type": "list",
                "values": [
                  1
                ]
              },
              "size_meters": {
                "type": "list",
                "values": [
                  0.05
                ]
              },
              "distance_meters": {
                "type": "list",
                "values": [
                  0.0
                ]
              }
            },
            "percent": 100
          },
          {
            "percent": 0
          }
        ],
        "location": {
          "enabled": [
            "false"
          ]
        },
        "geometry": "vehicle"
      },
      "camera_and_light_rigs": [
        {
          "cameras": [
            {
              "specifications": {
                "focal_length": {
                  "type": "list",
                  "values": [
                    3.7
                  ]
                },
                "sensor_width": {
                  "type": "list",
                  "values": [
                    5.4855
                  ]
                },
                "wavelength": "nir",
                "resolution_w": 1280,
                "resolution_h": 960
              }
            }
          ],
          "lights": [
            {
              "wavelength": "nir",
              "size_meters": {
                "type": "list",
                "values": [
                  0.5
                ]
              },
              "intensity": {
                "type": "list",
                "values": [
                  5
                ]
              }
            }
          ],
          "location": {
            "yaw": {
              "type": "range",
              "values": {
                "min": -17.3,
                "max": -17.3
              }
            },
            "pitch": {
              "type": "range",
              "values": {
                "min": -13.5,
                "max": -13.5
              }
            },
            "z": {
              "type": "range",
              "values": {
                "min": 0.85,
                "max": 0.85
              }
            }
          }
        }
      ]
    },
    {
      "identities": {
        "ids": [
          1,
          2
        ],
        "renders_per_identity": 1
      },
      "accessories": {
        "glasses": [
          {
            "style": [
              "all"
            ],
            "lens_color": [
              "default",
              "blue",
              "pink",
              "gray",
              "brown",
              "silver",
              "rose_gold",
              "ice_blue",
              "purple",
              "gold",
              "rose_red"
            ],
            "metalness": {
              "type": "list",
              "values": [
                0.0,
                0.0,
                0.0,
                0.1
              ]
            },
            "transparency": {
              "type": "list",
              "values": [
                1.0
              ]
            },
            "sex_matched_only": true,
            "percent": 5
          },
          {
            "style": [
              "all"
            ],
            "lens_color": [
              "white",
              "blue",
              "red",
              "pink",
              "yellow",
              "orange",
              "orange_red",
              "gray",
              "brown",
              "silver",
              "rose_gold",
              "ice_blue",
              "purple",
              "gold",
              "rose_red"
            ],
            "metalness": {
              "type": "list",
              "values": [
                0.4,
                0.4,
                0.4,
                0.8
              ]
            },
            "transparency": {
              "type": "list",
              "values": [
                0.95
              ]
            },
            "sex_matched_only": true,
            "percent": 5
          },
          {
            "style": [
              "none"
            ],
            "percent": 90
          }
        ],
        "headwear": [
          {
            "style": [
              "female_headscarf_1",
              "female_hijab_1",
              "male_beanie_1",
              "male_cap_1",
              "unisex_bucket_hat_aa"
            ],
            "sex_matched_only": true,
            "percent": 10
          },
          {
            "style": [
              "none"
            ],
            "percent": 90
          }
        ],
        "masks": [
          {
            "style": [
              "all"
            ],
            "position": [
              "1",
              "2",
              "3"
            ],
            "variant": [
              "all"
            ],
            "percent": 10
          },
          {
            "style": [
              "none"
            ],
            "percent": 90
          }
        ],
        "headphones": [
          {
            "style": [
              "none"
            ],
            "percent": 100
          }
        ]
      },
      "facial_attributes": {
        "expression": [
          {
            "name": [
              "eyes_closed"
            ],
            "intensity": {
              "type": "list",
              "values": [
                0.0
              ]
            },
            "percent": 50
          },
          {
            "name": [
              "mouth_large_opened"
            ],
            "intensity": {
              "type": "list",
              "values": [
                0.0
              ]
            },
            "percent": 50
          }
        ],
        "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,
                "max": 45
              }
            },
            "yaw": {
              "type": "range",
              "values": {
                "min": -45,
                "max": 45
              }
            },
            "roll": {
              "type": "range",
              "values": {
                "min": -20,
                "max": 20
              }
            },
            "percent": 100
          }
        ],
        "hair": [
          {
            "style": [
              "all"
            ],
            "color": [
              "all"
            ],
            "sex_matched_only": true,
            "ethnicity_matched_only": false,
            "relative_length": {
              "type": "range",
              "values": {
                "min": 0.8,
                "max": 1.0
              }
            },
            "relative_density": {
              "type": "range",
              "values": {
                "min": 0.8,
                "max": 1.0
              }
            },
            "percent": 100
          }
        ],
        "facial_hair": [
          {
            "style": [
              "all"
            ],
            "color": [
              "all"
            ],
            "match_hair_color": true,
            "relative_length": {
              "type": "range",
              "values": {
                "min": 0.05,
                "max": 1.0
              }
            },
            "relative_density": {
              "type": "list",
              "values": [
                1.0
              ]
            },
            "percent": 10
          },
          {
            "style": [
              "all"
            ],
            "match_hair_color": false,
            "relative_length": {
              "type": "range",
              "values": {
                "min": 0.05,
                "max": 1.0
              }
            },
            "relative_density": {
              "type": "list",
              "values": [
                1.0
              ]
            },
            "percent": 10
          },
          {
            "style": [
              "none"
            ],
            "percent": 80
          }
        ],
        "eyebrows": [
          {
            "style": [
              "all"
            ],
            "sex_matched_only": true,
            "match_hair_color": true,
            "percent": 100
          }
        ]
      },
      "body": [
        {
          "enabled": true,
          "percent": 100
        }
      ],
      "clothing": [
        {
          "outfit": [
            "work_casual_0",
            "work_casual_1",
            "work_casual_2",
            "work_casual_3",
            "work_casual_4",
            "work_professional_0",
            "work_professional_1",
            "work_professional_2",
            "work_professional_3",
            "work_professional_4",
            "sunday_bbq_0",
            "sunday_bbq_1",
            "sunday_bbq_2",
            "sunday_bbq_3",
            "sunday_bbq_4",
            "jeans_and_hoodie_0",
            "jeans_and_hoodie_1",
            "jeans_and_hoodie_2",
            "jeans_and_hoodie_3",
            "jeans_and_hoodie_4",
            "longsleeve_dress_red",
            "longsleeve_dress_yellow",
            "longsleeve_dress_brown",
            "longsleeve_dress_navy",
            "longsleeve_dress_black",
            "flower_power_red",
            "flower_power_tan",
            "flower_power_white",
            "flower_power_blue",
            "flower_power_black"
          ],
          "sex_matched_only": true,
          "percent": 100
        }
      ],
      "environment": {
        "hdri": {
          "name": [
            "studio_small_01"
          ],
          "intensity": {
            "type": "list",
            "values": [
              0.1
            ]
          },
          "rotation": {
            "type": "range",
            "values": {
              "min": 0,
              "max": 0
            }
          }
        },
        "lights": [
          {
            "light1": {
              "color_r": {
                "type": "list",
                "values": [
                  255
                ]
              },
              "color_g": {
                "type": "list",
                "values": [
                  255
                ]
              },
              "color_b": {
                "type": "list",
                "values": [
                  255
                ]
              },
              "rotation_x": {
                "type": "list",
                "values": [
                  60
                ]
              },
              "rotation_y": {
                "type": "list",
                "values": [
                  0
                ]
              },
              "rotation_z": {
                "type": "list",
                "values": [
                  0.0
                ]
              },
              "intensity": {
                "type": "list",
                "values": [
                  1
                ]
              },
              "size_meters": {
                "type": "list",
                "values": [
                  0.05
                ]
              },
              "distance_meters": {
                "type": "list",
                "values": [
                  0.0
                ]
              }
            },
            "percent": 100
          },
          {
            "percent": 0
          }
        ],
        "location": {
          "enabled": [
            "false"
          ]
        },
        "geometry": "vehicle"
      },
      "camera_and_light_rigs": [
        {
          "cameras": [
            {
              "specifications": {
                "focal_length": {
                  "type": "list",
                  "values": [
                    3.7
                  ]
                },
                "sensor_width": {
                  "type": "list",
                  "values": [
                    5.4855
                  ]
                },
                "wavelength": "nir",
                "resolution_w": 1280,
                "resolution_h": 960
              }
            }
          ],
          "lights": [
            {
              "wavelength": "nir",
              "size_meters": {
                "type": "list",
                "values": [
                  0.5
                ]
              },
              "intensity": {
                "type": "list",
                "values": [
                  5
                ]
              }
            }
          ],
          "location": {
            "yaw": {
              "type": "range",
              "values": {
                "min": -17.3,
                "max": -17.3
              }
            },
            "pitch": {
              "type": "range",
              "values": {
                "min": -13.5,
                "max": -13.5
              }
            },
            "z": {
              "type": "range",
              "values": {
                "min": 0.85,
                "max": 0.85
              }
            }
          }
        }
      ]
    }
  ]
}