-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathrun_rgb_fitting_cropface630resize1024.sh
38 lines (32 loc) · 1.52 KB
/
run_rgb_fitting_cropface630resize1024.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
set -e
######################### Configuration #########################
# input_dir: the directory of the input images
# output_dir: the directory of the output results
# checkpoints_dir: the directory of the used checkpoints
# topo_assets_dir: the directory of the topo assets, e.g., 3DMM, masks, etc.
#################################################################
input_dir=../examples/fitting_examples/inputs
output_dir=../examples/fitting_examples/outputs-cropface630resize1024
checkpoints_dir=../checkpoints
topo_assets_dir=../topo_assets
#################### Step 1. Preprocess Data ####################
# Read the input images in ${input_dir}
# Save the processed data in ${input_dir}/processed_data and ${input_dir}/processed_data_vis
#################################################################
cd ./RGB_Fitting
python step1_process_data.py \
--input_dir ${input_dir} \
--output_dir ${input_dir}/processed_data \
--checkpoints_dir ${checkpoints_dir} \
--topo_dir ${topo_assets_dir}
###################### Step 2. RGB Fitting ######################
# Read the processed data in ${input_dir}/processed_data
# Save the output results in ${output_dir}
#################################################################
python step2_fit_processed_data_cropface630resize1024.py \
--input_dir ${input_dir}/processed_data \
--output_dir ${output_dir} \
--checkpoints_dir ${checkpoints_dir} \
--topo_dir ${topo_assets_dir} \
--texgan_model_name texgan_cropface630resize1024_ffhq_uv_interpolate.pth