Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Gdrnpp Bop2022
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Guillaume Duret
Gdrnpp Bop2022
Commits
33e49b29
Commit
33e49b29
authored
2 years ago
by
Admin
Browse files
Options
Downloads
Patches
Plain Diff
update readme
parent
06f512be
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+9
-1
9 additions, 1 deletion
README.md
core/gdrn_modeling/test_gdrn_depth_refine.sh
+26
-0
26 additions, 0 deletions
core/gdrn_modeling/test_gdrn_depth_refine.sh
with
35 additions
and
1 deletion
README.md
+
9
−
1
View file @
33e49b29
...
@@ -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.
This diff is collapsed.
Click to expand it.
core/gdrn_modeling/test_gdrn_depth_refine.sh
0 → 100644
+
26
−
0
View file @
33e49b29
#!/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
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment