19reborn / NeuS2

[ICCV 2023] Official code for NeuS2
Other
641 stars 42 forks source link

how to pass scene argument correctly ? #48

Closed ZJLi2013 closed 1 year ago

ZJLi2013 commented 1 year ago
  1. python3 scripts/run.py --network base.json  --scene ./kitti_scene/baseline.json  --name kitti --n_steps 20000 

    it reports

    RuntimeError: Data path './kitti_scene/baseline.json' does not exist.
  2. then tried

    python3 scripts/run.py --network base.json  --scene ./kitti_scene  --name kitti --n_steps 20000 

it reports

RuntimeError: path::operator/(): expected a relative path!

while kitti_scene is relative to the repo root:

root@ubuntu:/neus2/NeuS2# ls -lt 
total 92
drwxrwxr-x  3 1000 1000  4096 Nov 16 02:48 kitti_scene
drwxrwxr-x  3 1000 1000  4096 Nov 16 02:20 scripts
  1. from the code
    void Testbed::load_training_data(const std::string& data_path) {
    m_data_path = data_path;
    // dynamic scene init log and vis
    m_output_path = data_path + "/output";

looks args.scene should passing the directory which contains a *.json, right ?

so what's the right way to passing scene ? in instant-ngp is ok to passing abs_path to .json

Thanks ZJ

ZJLi2013 commented 1 year ago

solved, here require file_path in transform.json should be relative to transform.json. thanks again