|
| 1 | +# Running with NeuralRecon's demo data and data from ios-logger. |
| 2 | + |
| 3 | +Download the demo scene out of ios-logger from here: https://github.com/zju3dv/NeuralRecon/blob/master/DEMO.md |
| 4 | + |
| 5 | +Follow the instructions in the NeuralRecon repo for how to use ios-logger to make your own captures. |
| 6 | + |
| 7 | +Unzip the folder into your arkit dataset path so that it looks somthing like this: |
| 8 | + |
| 9 | +``` |
| 10 | + dataset_path |
| 11 | + scans |
| 12 | + neucon_demodata_b5f1 |
| 13 | + ... |
| 14 | + .... |
| 15 | +``` |
| 16 | + |
| 17 | +Run the extraction script that uses modified versions of the functions provided by the NeuralRecon authors: |
| 18 | + |
| 19 | +```bash |
| 20 | +python ./data_scripts/ios_logger_preprocessing.py --data_config configs/data/neucon_arkit_default.yaml |
| 21 | +``` |
| 22 | + |
| 23 | +Make sure you set your correct `dataset_path` folder. |
| 24 | + |
| 25 | +Run tuple file generation (we've already computed one for you in data_splits): |
| 26 | + |
| 27 | +```bash |
| 28 | +python ./data_scripts/generate_test_tuples.py --num_workers 16 --data_config configs/data/neucon_arkit_default.yaml |
| 29 | +``` |
| 30 | + |
| 31 | +Then run the model using this config file, see the full readme for more. |
| 32 | + |
| 33 | +There is unfortunately a break in the pose in the NR demo scene, so you'll to trim the first 350 frames using `--skip_to_frame 350` when running dense frames and `--skip_to_frame 83` when running default. |
| 34 | + |
| 35 | +Run: |
| 36 | + |
| 37 | +```bash |
| 38 | +CUDA_VISIBLE_DEVICES=0 python test.py --name HERO_MODEL \ |
| 39 | + --output_base_path OUTPUT_PATH \ |
| 40 | + --config_file configs/models/hero_model.yaml \ |
| 41 | + --load_weights_from_checkpoint weights/hero_model.ckpt \ |
| 42 | + --data_config configs/data/neucon_arkit_default.yaml \ |
| 43 | + --num_workers 8 \ |
| 44 | + --batch_size 2 \ |
| 45 | + --fast_cost_volume \ |
| 46 | + --run_fusion \ |
| 47 | + --depth_fuser open3d \ |
| 48 | + --fuse_color \ |
| 49 | + --skip_to_frame 83; |
| 50 | +``` |
| 51 | + |
| 52 | +```bash |
| 53 | +CUDA_VISIBLE_DEVICES=0 python test.py --name HERO_MODEL \ |
| 54 | + --output_base_path OUTPUT_PATH \ |
| 55 | + --config_file configs/models/hero_model.yaml \ |
| 56 | + --load_weights_from_checkpoint weights/hero_model.ckpt \ |
| 57 | + --data_config configs/data/neucon_arkit_dense.yaml \ |
| 58 | + --num_workers 8 \ |
| 59 | + --batch_size 2 \ |
| 60 | + --fast_cost_volume \ |
| 61 | + --run_fusion \ |
| 62 | + --depth_fuser open3d \ |
| 63 | + --fuse_color \ |
| 64 | + --skip_to_frame 350; |
| 65 | +``` |
| 66 | + |
| 67 | +Should get an output that looks like this for default frames: |
| 68 | + |
| 69 | + |
0 commit comments