Avatar SDK Standalone Application  2.0.8
Head 2.0 Avatars
Examples Of Usage (Docker)

If you use the Docker version, install Docker Engine and
load docker image by load_docker_image.sh before running any of these samples.

#!/bin/bash
# Directory to be mounted inside the docker container (absolute path)
# Set it up properly
WORKDIR=`pwd`/data

1. Generate Head 2.0 avatar with "bust/mobile" subtype.

./avatar_sdk_standalone.sh $WORKDIR test_photo/photo.jpg output/1

2. Generate Head 2.0 avatar with "head/mobile" subtype.

./avatar_sdk_standalone.sh $WORKDIR test_photo/photo.jpg output/2 \
-pipelineSubtype head

3. Generate Head 2.0 avatar and save the output to FBX format.

./avatar_sdk_standalone.sh $WORKDIR test_photo/photo.jpg output/3 \
-f fbx

4. Generate Head 2.0 avatar of the "head/mobile" subtype with Level-Of-Details 7 and save the output to OBJ format.

./avatar_sdk_standalone.sh $WORKDIR test_photo/photo.jpg output/4 /
-pipelineSubtype head /
-f obj -lod 7

5. Generate Head 2.0 ("bust/mobile" subtype) avatar with haircuts and blendshapes by using the parameters file.

./avatar_sdk_standalone.sh $WORKDIR test_photo/photo.jpg output/5 \
-paramsFile parameters_samples/bust_mobile_subtype_parameters.json

6. Generate Head 2.0 ("head/mobile" subtype) avatar with haircuts and blendshapes by using the parameters file.

./avatar_sdk_standalone.sh $WORKDIR test_photo/photo.jpg output/6 \
-paramsFile parameters_samples/head_mobile_subtype_parameters.json

7. Generate an avatar with a "cartoonish" effect ("head/mobile" subtype).

./avatar_sdk_standalone.sh $WORKDIR test_photo/photo.jpg output/7 \
-paramsFile parameters_samples/head_mobile_cartoonish.json

8. Generate Head 2.0 avatar and apply morph poses.

./avatar_sdk_standalone.sh $WORKDIR test_photo/photo.jpg output/8 \
-morphPosesDir morph_poses \
-paramsFile parameters_samples/bust_mobile_subtype_parameters.json