Skip to content
Snippets Groups Projects
Commit 33e49b29 authored by Admin's avatar Admin
Browse files

update readme

parent 06f512be
No related branches found
No related tags found
No related merge requests found
...@@ -74,4 +74,12 @@ The difference between this repo and gdrn conference version mainly including: ...@@ -74,4 +74,12 @@ The difference between this repo and gdrn conference version mainly including:
`./core/gdrn_modeling/test_gdrn.sh <config_path> <gpu_ids> <ckpt_path> (other args)` `./core/gdrn_modeling/test_gdrn.sh <config_path> <gpu_ids> <ckpt_path> (other args)`
## Pose Refinement ## Pose Refinement
TODO: rudy We utilize depth information to further refine the estimated pose.
\ No newline at end of file We provide two types of refinement: fast refinement and iterative refinement.
For fast refinement, we compare the rendered object depth and the observed depth to refine translation.
Run
`./core/gdrn_modeling/test_gdrn_depth_refine.sh <config_path> <gpu_ids> <ckpt_path> (other args)`
For iterative refinement, please checkout to the pose_refine branch for details.
#!/usr/bin/env bash
# test
set -x
this_dir=$(dirname "$0")
# commonly used opts:
# MODEL.WEIGHTS: resume or pretrained, or test checkpoint
CFG=$1
CUDA_VISIBLE_DEVICES=$2
IFS=',' read -ra GPUS <<< "$CUDA_VISIBLE_DEVICES"
# GPUS=($(echo "$CUDA_VISIBLE_DEVICES" | tr ',' '\n'))
NGPU=${#GPUS[@]} # echo "${GPUS[0]}"
echo "use gpu ids: $CUDA_VISIBLE_DEVICES num gpus: $NGPU"
CKPT=$3
if [ ! -f "$CKPT" ]; then
echo "$CKPT does not exist."
exit 1
fi
NCCL_DEBUG=INFO
OMP_NUM_THREADS=1
MKL_NUM_THREADS=1
PYTHONPATH="$this_dir/../..":$PYTHONPATH \
CUDA_VISIBLE_DEVICES=$2 python $this_dir/main_gdrn.py \
--config-file $CFG --num-gpus $NGPU --eval-only \
--opts MODEL.WEIGHTS=$CKPT INPUT.WITH_DEPTH=True TEST.USE_DEPTH_REFINE=True \
${@:4}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment