Skip to content

Commit

Permalink
Improved COLMAP process
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyu committed Nov 21, 2021
1 parent 0485a72 commit 96edf32
Show file tree
Hide file tree
Showing 18 changed files with 20,168 additions and 244 deletions.
31 changes: 30 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,40 @@ NOTE: can no longer use `sh`

See `opt/render_imgs.py`

(in opt/)
`python render_imgs.py <CHECKPOINT.npz> <data_dir>`

## Automatic hypertuning
## Parallel task executor

Including evaluation, ablations, and hypertuning (based on the task_manager one from PlenOctrees)
See `opt/autotune.py`. Configs in `opt/tasks/*.json`

Automatic eval:
`python autotune.py -g '<space delimited GPU ids>' tasks/eval.json`. Configs in `opt/tasks/*.json`

## Using a custom image set

First make sure you have colmap installed. Then

(in opt/)
`bash scripts/proc_colmap.sh <img_dir>`

Where `<img_dir>` should be a directory directly containing png/jpg images from a
normal perspective camera.
For custom datasets we adopt a data format similar to that in NSVF
<https://github.com/facebookresearch/NSVF>

You should be able to use this dataset directly afterwards. The format will be auto-detected.

To view the data use:
`python scripts/view_data.py <img_dir>`

This should launch a server at localhost:8889

## Random tip: how to make pip install faster

You may notice that this CUDA extension takes forever to install.
A suggestion is using ninja. On Ubuntu,
install it with `sudo apt install ninja-build`.
Then set the environment variable `MAX_JOBS` to the number of CPUS to use in parallel (e.g. 12) in your shell startup script.
This will enable parallel compilation and significantly improve iteration speed.
Loading

0 comments on commit 96edf32

Please sign in to comment.