Tensorflow 2 Implementation of MVA monocular depth estimation.
Reference code : DenseDepth
- Tensorflow 2.2
- Numpy
- Pilow
- Matplotlib
- Scikit-image 0.15.0
- tqdm
- Trained by NYU RGB-D V2 (650 MB)
- We use NYU Detph V2 dataset and refer to DenseDepth, See DenseDepth Data section
-
- Download pre-trained model weights from above download link above.
- Save downloaded model weights to
checkpoints
directory oryour_own_path
.
-
- Make direcotry
checkpoints
directory. - Locate model weights at
checkpoints
directory. - Locate the own test images at
examples
directory. - Go to
example.ipynb
- Make direcotry
-
- Prepare the dataset for training. (we used the NYU V2 dataset)
- Run following command.
python train.py --bs 4 --lr 0.0001 --epochs 20
-
- Prepare your test images in
examples
directory or your own directory. - Make
checkpoints
directory. - Locate model weights at
checkpoints
directory. - Run following command.
python test.py \ --model_weights /your/own/path \ --images_dir /your/own/path \ --results_dir /your/own/path \ --gpu your_gpu_number
- Prepare your test images in