Skip to content

Commit

Permalink
Add custom datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyu committed Nov 21, 2021
1 parent 96edf32 commit 49128b7
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 1 deletion.
23 changes: 23 additions & 0 deletions opt/configs/custom.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"reso": "[[128, 128, 128], [256, 256, 256], [512, 512, 512]]",
"scale": 1.0,
"n_iters": 102400,
"background_nlayers": 64,
"background_reso": 1024,
"cam_scale_factor": 0.95,
"upsamp_every": 25600,
"lr_sigma": 3e1,
"lr_sh": 1e-2,
"lr_sigma_delay_steps": 0,
"lr_fg_begin_step": 1000,
"thresh_type": "weight",
"weight_thresh": 1.28,
"lambda_tv": 5e-5,
"lambda_tv_sh": 5e-3,
"lambda_tv_background_sigma": 1e-3,
"lambda_tv_background_color": 1e-3,
"lambda_beta": 1e-5,
"lambda_sparsity": 1e-11,
"background_brightness": 1.0,
"tv_early_only": 0
}
24 changes: 24 additions & 0 deletions opt/configs/custom_iphone.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"reso": "[[128, 128, 128], [256, 256, 256], [512, 512, 512]]",
"scale": 1.0,
"n_iters": 102400,
"cam_scale_factor": 1.5,
"background_nlayers": 64,
"background_reso": 1024,
"cam_scale_factor": 0.95,
"upsamp_every": 25600,
"lr_sigma": 3e1,
"lr_sh": 1e-2,
"lr_sigma_delay_steps": 35000,
"lr_fg_begin_step": 10000,
"thresh_type": "weight",
"weight_thresh": 1.28,
"lambda_tv": 5e-5,
"lambda_tv_sh": 5e-3,
"lambda_tv_background_sigma": 1e-3,
"lambda_tv_background_color": 1e-3,
"lambda_beta": 1e-5,
"lambda_sparsity": 1e-11,
"background_brightness": 1.0,
"tv_early_only": 0
}
2 changes: 1 addition & 1 deletion opt/scripts/view_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def get_transform(c2w):

# (3) Rescale the scene using camera distances
scale = 1.0 / np.median(np.linalg.norm(t + translate, axis=-1))
scale *= 1.5
scale *= 0.95
return transform, scale

T, scale = get_transform(all_poses)
Expand Down

0 comments on commit 49128b7

Please sign in to comment.