Go to the main folder of this repository. Create and activate its conda environment. Prepare its data.
cd score-face
conda env create -f environment.yml
conda activate score-face
mkdir assets
cd assets
gdown --id 1sXrlgTC6U2jzWCIUZTbRcY3AbOJfcbbu
gdown --id 1-mtdSwuefIZA0n85QWScQo2WRvJNWwUy
Go into src folder.
cd ../src
To do optimization in the image space:
python3 main.py --input_obj_path INPUT_OBJ_PATH --optimization_space image --order_views true --two_rounds true --num_corrector_steps 1 --snr 0.15
To do optimization in the texture space:
python3 main.py --input_obj_path INPUT_OBJ_PATH --optimization_space texture --order_views true --two_rounds true --num_corrector_steps 6 --snr 0.015
Optimization in the Image Space
Optimization in the Texture Space
Note: The code under the directory https://github.com/ardarslan/score-face/tree/master/src/score_sde was adapted from https://github.com/yang-song/score_sde_pytorch.