Skip to content

Fast and Accurate Recovery of Occluding Contours in Monocular Depth Estimation

License

Notifications You must be signed in to change notification settings

SriSreyas/SharpNet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SharpNet

Fast and Accurate Recovery of Occluding Contours in Monocular Depth Estimation, by Michaël Ramamonjisoa and Vincent Lepetit.

Link to the paper: arXiv

Installation

Make sure you have installed the following requirements:

  • Python3
  • Pytorch
  • OpenCV
  • numpy, scipy, Pillow, matplotlib

Clone the repository and download the trained weights:

git clone https://github.com/MichaelRamamonjisoa/SharpNet.git
cd SharpNet
mkdir models && cd models

Put the trained weights in the models/ directory.

Demo

Try the demo.py script to test our network on your image :

python3 demo.py --image $YOURIMAGEPATH \
--cuda $CUDA_DEVICE_ID\
--model models/final_checkpoint_NYU.pth \
--normals \
--depth \
--boundary \
--bias \
--scale $SCALEFACTOR 

The network was trained using 640x480 images, therefore better results might be observed after rescaling the image with $SCALEFACTOR different than 1.

Here is what you can get on your test image: alt_text

Training

The PBRS dataset is currently offline due to instructions of SUNCG author (see this and this). Therefore reproduction of our training procedure cannot be done properly. However we will provide code for loss computation, finetuning on the NYUv2 Depth dataset as well as our pretrained weights on the PBRS dataset only.

Evaluation

TODO

Citation

If you find SharpNet useful in your research, please consider citing:

@article{ramamonjisoa2019sharpnet,
    Title = {SharpNet: Fast and Accurate Recovery of Occluding Contours in Monocular Depth Estimation},
    Author = {Michael Ramamonjisoa and Vincent Lepetit},
    Journal = {arXiv preprint arXiv:1905.08598},
    Year = {2019}
}

About

Fast and Accurate Recovery of Occluding Contours in Monocular Depth Estimation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%