sdfstudio icon indicating copy to clipboard operation
sdfstudio copied to clipboard

How to reproduce for little views using monosdf ?

Open guangxuwang opened this issue 1 year ago • 4 comments

Describe the bug How to reproduce for four views using monosdf ?My custom dataset is about fish in underwater scene.

Custom datasets is shown as follow: image

To Reproduce Command: ns-train monosdf --pipeline.model.sdf-field.use-grid-feature True --pipeline.model.sdf-field.hidden-dim 256 --pipeline.model.sdf-field.num-layers 2 --pipeline.model.sdf-field.num-layers-color 2 --pipeline.model.sdf-field.use-appearance-embedding True --pipeline.model.sdf-field.geometric-init True --pipeline.model.sdf-field.inside-outside True --pipeline.model.sdf-field.bias 0.8 --pipeline.model.sdf-field.beta-init 0.1 --pipeline.datamanager.train-num-images-to-sample-from 1 --pipeline.datamanager.train-num-times-to-repeat-images 0 --trainer.steps-per-eval-image 5000 --pipeline.model.background-model none --experiment-name monosdf-htnt-scan1 --pipeline.model.mono-depth-loss-mult 0.001 --pipeline.model.mono-normal-loss-mult 0.01 --pipeline.datamanager.train-num-rays-per-batch 2048 --machine.num-gpus 1 sdfstudio-data --data /model/2023/wangguangxu/sdfstudio-master/data/0711/sdf2 --include_mono_prior True --skip_every_for_val_split 30

However,the mesh results is so worse. image

guangxuwang avatar Jul 21 '23 02:07 guangxuwang

Hi, could yo try to disable feature grids by --pipeline.model.sdf-field.use-grid-feature False?

niujinshuchong avatar Jul 24 '23 15:07 niujinshuchong

Hi, could yo try to disable feature grids by --pipeline.model.sdf-field.use-grid-feature False? @niujinshuchong Thank you for your reply! There are some improvements now. Can you give me more advice on the reconstruction of the sparse view?

image

guangxuwang avatar Jul 25 '23 01:07 guangxuwang

Hi, now your results looks very similar to one of the failure cases we shown in MonoSDF paper. Maybe tuning the near and far plane could results in better results but it is not a general solution. Do you maybe have sparse point could from camera calibrations? It can be used to estimate a rough scale of the mono depth map and then use the mono depth as a metric depth after scale recovery.

niujinshuchong avatar Jul 26 '23 21:07 niujinshuchong

so how to define the near and far plane in my meta_data.json?

elenacliu avatar Aug 04 '23 02:08 elenacliu