# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.

# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.

# data folder
DATASET_ROOT='/hdd/datasets/fipt/real/'
DATASET='real'
# scene name
SCENE='conferenceroom'
LDR_IMG_DIR='Image'
EXP='fipt_real_conferenceroom'
VAL_FRAME=0 
CRF_BASIS=3
# whether has part segmentation
HAS_PART=0
SPP=256
spp=16

python render.py --experiment_name $EXP --device 0\
        --ckpt last_1.ckpt \
        --dataset $DATASET $DATASET_ROOT$SCENE \
        --emitter_path checkpoints/$EXP/bake\
        --output_path 'outputs/'$EXP'/output'\
        --split 'val'\
        --ldr_img_dir $LDR_IMG_DIR \
        --SPP $SPP --spp $spp --crf_basis $CRF_BASIS 

python render_video.py --experiment_name $EXP --device 0\
        --ckpt last_1.ckpt \
        --dataset $DATASET $DATASET_ROOT$SCENE\
        --emitter_path checkpoints/$EXP/bake\
        --output_path 'outputs/'$EXP'/video'\
        --split 'val'\
        --ldr_img_dir $LDR_IMG_DIR \
        --SPP $SPP --spp $spp --crf_basis $CRF_BASIS

# relighting
python render_relight.py --experiment_name $EXP --device 0\
        --ckpt last_1.ckpt --mode traj\
        --dataset $DATASET $DATASET_ROOT$SCENE\
        --emitter_path checkpoints/$EXP/bake\
        --output_path 'outputs/'$EXP'/relight/video_relight_0'\
        --split 'test'\
        --ldr_img_dir $LDR_IMG_DIR \
        --light_cfg 'configs/fipt/conferenceroom/relight_0.yaml' \
        --SPP $SPP --spp $spp --crf_basis $CRF_BASIS 