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 an avatar in FBX format.
1.1 MetaPerson Male
./avatar-sdk-full-body-standalone.sh $WORKDIR test_photo/male.jpg results/1.1 \
-computationParams parameters_samples/meta_person_male/computation_parameters/basic_parameters.json \
-exportParams parameters_samples/meta_person_male/export_parameters/export_fbx.json
1.2 MetaPerson Female
./avatar-sdk-full-body-standalone.sh $WORKDIR test_photo/female.jpg results/1.2 \
-computationParams parameters_samples/meta_person_female/computation_parameters/basic_parameters.json \
-exportParams parameters_samples/meta_person_female/export_parameters/export_fbx.json
1.3 FitPerson
./avatar-sdk-full-body-standalone.sh $WORKDIR test_photo/male.jpg results/1.3 \
-computationParams parameters_samples/fit_person/computation_parameters/basic_parameters.json \
-exportParams parameters_samples/fit_person/export_parameters/export_fbx.json
2. Generate an avatar in GLTF format.
2.1 MetaPerson Male
./avatar-sdk-full-body-standalone.sh $WORKDIR test_photo/male.jpg results/2.1 \
-computationParams parameters_samples/meta_person_male/computation_parameters/basic_parameters.json \
-exportParams parameters_samples/meta_person_male/export_parameters/export_gltf.json
2.2 MetaPerson Female
./avatar-sdk-full-body-standalone.sh $WORKDIR test_photo/female.jpg results/2.2 \
-computationParams parameters_samples/meta_person_female/computation_parameters/basic_parameters.json \
-exportParams parameters_samples/meta_person_female/export_parameters/export_gltf.json
2.3 FitPerson
./avatar-sdk-full-body-standalone.sh $WORKDIR test_photo/male.jpg results/2.3 \
-computationParams parameters_samples/fit_person/computation_parameters/basic_parameters.json \
-exportParams parameters_samples/fit_person/export_parameters/export_gltf.json
3. Generate an avatar in FBX format. Textures are not embedded into the FBX. Haircuts, outfits and blendshapes are exported as separate mesh.
3.1 MetaPerson Male
./avatar-sdk-full-body-standalone.sh $WORKDIR test_photo/male.jpg results/3.1 \
-computationParams parameters_samples/meta_person_male/computation_parameters/basic_parameters.json \
-exportParams parameters_samples/meta_person_male/export_parameters/export_fbx_not_embed_data.json
3.2 MetaPerson Female
./avatar-sdk-full-body-standalone.sh $WORKDIR test_photo/female.jpg results/3.2 \
-computationParams parameters_samples/meta_person_female/computation_parameters/basic_parameters.json \
-exportParams parameters_samples/meta_person_female/export_parameters/export_fbx_not_embed_data.json
3.3 FitPerson
./avatar-sdk-full-body-standalone.sh $WORKDIR test_photo/female.jpg results/3.3 \
-computationParams parameters_samples/fit_person/computation_parameters/basic_parameters.json \
-exportParams parameters_samples/fit_person/export_parameters/export_fbx_not_embed_data.json
4. Generate an avatar in GLTF format with all available parameters.
4.1 MetaPerson Male
./avatar-sdk-full-body-standalone.sh $WORKDIR test_photo/male.jpg results/4.1\
-computationParams parameters_samples/meta_person_male/computation_parameters/all_parameters.json \
-exportParams parameters_samples/meta_person_male/export_parameters/export_gltf_all_params.json
4.2 MetaPerson Female
./avatar-sdk-full-body-standalone.sh $WORKDIR test_photo/female.jpg results/4.2 \
-computationParams parameters_samples/meta_person_female/computation_parameters/all_parameters.json \
-exportParams parameters_samples/meta_person_female/export_parameters/export_gltf_all_params.json
4.3 FitPerson
./avatar-sdk-full-body-standalone.sh $WORKDIR test_photo/female.jpg results/4.3 \
-computationParams parameters_samples/fit_person/computation_parameters/all_parameters.json \
-exportParams parameters_samples/fit_person/export_parameters/export_gltf_all_params.json
5. Generate an avatar with a different body shape.
./avatar-sdk-full-body-standalone.sh $WORKDIR test_photo/female.jpg results/5 \
-computationParams parameters_samples/fit_person/computation_parameters/body_shape_parameters.json \
-exportParams parameters_samples/fit_person/export_parameters/export_fbx.json
6. Generate full body avatar mesh in the provided LOD (Level Of Details).
6.1 MetaPerson Male
./avatar-sdk-full-body-standalone.sh $WORKDIR test_photo/male.jpg results/6.1 \
-computationParams parameters_samples/meta_person_male/computation_parameters/basic_parameters.json \
-exportParams parameters_samples/meta_person_male/export_parameters/export_full_body_lod.json
6.2 MetaPerson Female
./avatar-sdk-full-body-standalone.sh $WORKDIR test_photo/female.jpg results/6.2 \
-computationParams parameters_samples/meta_person_female/computation_parameters/basic_parameters.json \
-exportParams parameters_samples/meta_person_female/export_parameters/export_full_body_lod.json
6.3 FitPerson
./avatar-sdk-full-body-standalone.sh $WORKDIR test_photo/female.jpg results/6.3\
-computationParams parameters_samples/fit_person/computation_parameters/basic_parameters.json \
-exportParams parameters_samples/fit_person/export_parameters/export_full_body_lod.json
7. Generate only a head without a body.
7.1 MetaPerson Male
./avatar-sdk-full-body-standalone.sh $WORKDIR test_photo/male.jpg results/7.1\
-computationParams parameters_samples/meta_person_male/computation_parameters/basic_parameters.json \
-exportParams parameters_samples/meta_person_male/export_parameters/export_head_only.json
7.2 MetaPerson Female
./avatar-sdk-full-body-standalone.sh $WORKDIR test_photo/female.jpg results/7.2 \
-computationParams parameters_samples/meta_person_female/computation_parameters/basic_parameters.json \
-exportParams parameters_samples/meta_person_female/export_parameters/export_head_only.json
7.3 FitPerson
./avatar-sdk-full-body-standalone.sh $WORKDIR test_photo/male.jpg results/7.3 \
-computationParams parameters_samples/fit_person/computation_parameters/basic_parameters.json \
-exportParams parameters_samples/fit_person/export_parameters/export_head_only.json
8.1 Use intermediate data (MetaPerson Male).
8.1.1 Generate avatar and store intermediate data
./avatar-sdk-full-body-standalone.sh $WORKDIR test_photo/male.jpg results/8.1 \
-computationParams parameters_samples/meta_person_male/computation_parameters/basic_parameters.json \
-intermediateDataPath results/8.1/intermediate_data
Export the avatar in FBX from the intermediate data.
./avatar-sdk-full-body-standalone.sh $WORKDIR -exportOnly results/8.1 \
-intermediateDataPath results/8.1/intermediate_data \
-exportParams parameters_samples/meta_person_male/export_parameters/export_fbx.json
8.2 Use intermediate data (MetaPerson Female).
Generate avatar and store intermediate data.
./avatar-sdk-full-body-standalone.sh $WORKDIR test_photo/female.jpg results/8.2 \
-computationParams parameters_samples/meta_person_female/computation_parameters/basic_parameters.json \
-intermediateDataPath results/8.2/intermediate_data
Export the avatar in FBX from the intermediate data.
./avatar-sdk-full-body-standalone.sh $WORKDIR -exportOnly results/8.2 \
-intermediateDataPath results/8.2/intermediate_data \
-exportParams parameters_samples/meta_person_female/export_parameters/export_fbx.json
8.3 Use intermediate data (FitPerson).
8.3.1 Generate avatar and store intermediate data.
./avatar-sdk-full-body-standalone.sh $WORKDIR test_photo/female.jpg results/8.3 \
-computationParams parameters_samples/fit_person/computation_parameters/basic_parameters.json \
-intermediateDataPath results/8.3/intermediate_data
8.3.2 Export the avatar in FBX from the intermediate data.
./avatar-sdk-full-body-standalone.sh $WORKDIR -exportOnly results/8.3 \
-intermediateDataPath results/8.3/intermediate_data \
-exportParams parameters_samples/fit_person/export_parameters/export_fbx.json