Skip to content

Latest commit

 

History

History
executable file
·
45 lines (35 loc) · 1.15 KB

using_monodepth_infer.md

File metadata and controls

executable file
·
45 lines (35 loc) · 1.15 KB

Using Monodepth Infer

Included in monodepth_infer:

  • monodepth_single
  • monodepth_batch

Using Batch mode

Runs with a batch size of 1 (cant go higher), on a directory:

Directory must have structure:

dummy_data
├── depth
│   ├── Atlanta_Zoo_Panda.jpg
│   ├── Atlanta_Zoo_Panda.png
│   ├── Atlanta_Zoo_Panda_copy.jpg
│   └── Atlanta_Zoo_Panda_copy.png
└── rgb
    ├── Atlanta_Zoo_Panda.png
    └── Atlanta_Zoo_Panda_copy.png

Given rgb, depth is produced.

Run as: (from monodepth_infer)


usage: monodepth_batch.py [-h] [--path PATH]
                          [--checkpoint_path CHECKPOINT_PATH]
                          [--image_format IMAGE_FORMAT]

Monodepth Batch Inference.

optional arguments:
  -h, --help            show this help message and exit
  --path PATH           path to files. Needs to have a rgb folder containing
                        images.
  --checkpoint_path CHECKPOINT_PATH
                        path to checkpoint
  --image_format IMAGE_FORMAT
                        path to files. Needs to have a rgb folder containing
                        images.