项目作者: wbhu

项目描述 :
Source code for "Mononizing Binocular Videos" (SIGGRAPH Asia 2020)
高级语言: Python
项目地址: git://github.com/wbhu/Mono3D.git
创建时间: 2020-08-24T14:52:44Z
项目社区:https://github.com/wbhu/Mono3D

开源协议:Other

下载


Mononizing Binocular Videos

ACM Transactions on Graphics (SIGGRAPH Asia 2020 issue), Vol. 39, No. 6, December 2020, pp. 228:1—228:16.

[ Project Webpage ] [ arXiv ] [ Video ]

Mono3D is the implementation of mono-nizing binocular videos into a regular monocular video with the stereo information implicitly encoded, such that the original binocular videos can be restored with high quality.

teaser

Online demo

[ Mononized view ] [ Restored left view ] [ Restored right view ]

Environment

Please refer to env.yaml.

  • Please carefully install following two packages with specific version, because the pretrained model is based on that version and newer versions are incompatible.
    ```
  • mmcv==0.6.2
  • mmdet==2.2.1 (build from source)
    ```

Dataset

We cannot release the whole 3D movie dataset due to copyright issues. But the binocular image dataset and part of the binocular video dataset used in the paper are publicly available: [ Flickr1024 ] and [ Inria ].

Prepare Flickr1024 for training the image version model

  1. Download Flickr1024 from the website: https://yingqianwang.github.io/Flickr1024/
  2. Download data list from https://drive.google.com/drive/folders/14oeXizbqTCxbmkZblt7YbWjaU2IIqNJf?usp=sharing
  3. Organise the dataset as following (${DATASET is the root dir for maintaining our dataset}):

    1. ${DATASET}
    2. |-- Flickr1024
    3. | |-- Train
    4. | |-- |-- 0001_L.png
    5. | | |-- 0001_R.png
    6. | | |-- 0002_L.png
    7. | | |-- 0002_R.png
    8. | | |-- ...
    9. | |-- Validation
    10. | |-- |-- 0001_L.png
    11. | | |-- 0001_R.png
    12. | | |-- 0002_L.png
    13. | | |-- 0002_R.png
    14. | | |-- ...
    15. | |-- Test
    16. | |-- |-- 0001_L.png
    17. | | |-- 0001_R.png
    18. | | |-- 0002_L.png
    19. | | |-- 0002_R.png
    20. | | |-- ...
    21. | |-- list
    22. | |-- |-- train.txt
    23. | | |-- val.txt
    24. | | |-- test.txt

Demo

  1. $ PYTHONPATH=. python main/demo.py --left ./imgs/demo_L.png

Training

  1. $ sh scripts/train.sh mono3d_img config/Flickr1024/mono3d_img.yaml

Evaluation

Evaluation on the testing set of Flickr1024

  1. $ sh scripts/test.sh mono3d_img config/Flickr1024/mono3d_img.yaml

You are granted with the LICENSE for both academic and commercial usages.

Acknowledgments

Thanks to Yingqian Wang for releasing the great dataset, Flickr1024.

Citation

  1. @article{hu-2020-mononizing,
  2. author = {Wenbo Hu and Menghan Xia and Chi-Wing Fu and Tien-Tsin Wong},
  3. title = {Mononizing Binocular Videos},
  4. journal = {ACM Transactions on Graphics (SIGGRAPH Asia 2020 issue)},
  5. month = {December},
  6. year = {2020},
  7. volume = {39},
  8. number = {6},
  9. pages = {228:1-228:16}
  10. }