Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

carloradice/depth-and-motion-learning

Repository files navigation

Depth and motion learning

Forked from:

Struttura cartella

In depth_and_motion_learning sono presenti tutti i file python che vengono chiamati dai 2 script bash presenti nella directory principale.

Installazione

config = { 'cublas_include_dir': '/home/radice/customCuda/cuda-10.1.243/include', 'cublas_library_dir': '/usr/lib/x86_64-linux-gnu', 'cuda_binary_dir': '/home/radice/customCuda/cuda-10.1.243/bin', 'cuda_include_dir': '/home/radice/customCuda/cuda-10.1.243/include', 'cuda_library_dir': '/home/radice/customCuda/cuda-10.1.243/lib64', 'cuda_toolkit_path': '/home/radice/customCuda/cuda-10.1.243/', 'cuda_version': '10.1', 'cudnn_include_dir': '/home/radice/customCuda/cuda-10.1.243/include', 'cudnn_library_dir': '/home/radice/customCuda/cuda-10.1.243/lib64', 'cudnn_version': '7.6.5', 'cupti_include_dir': '/home/radice/customCuda/cuda-10.1.243/extras/CUPTI/include', 'cupti_library_dir': '/home/radice/customCuda/cuda-10.1.243/extras/CUPTI/lib64', 'nvvm_library_dir': '/home/radice/customCuda/cuda-10.1.243/nvvm/libdevice' }

Requirements

Tramite pip conda:

Scaricare checkpoint Imagenet

Seguendo la guida di : google-research/google-research#589

Requirements

Tramite conda:

  • python < 3.7
  • tensorflow==1.8.0 (conda install -c conda-forge tensorflow==1.8)
  • torchfile (conda install -c conda-forge torchfile)

Modifiche

  • cambiare: import cPickle as pickle --> import pickle as pickle

Dataset

Oxford

Scaricare dataset da: https://robotcar-dataset.robots.ox.ac.uk/

Effettuare preprocessing.

Kitti

Struttura del dataset

.
├── data
│   ├── 2011_09_26
│   │   ├── 2011_09_26_drive_*
│   │   │   ├── image_02
│   │   │   │   ├── data
│   │   │   │   │   └── *.png
│   │   │   │   └── timestamps.txt
│   │   │   └── image_03
│   │   ├── calib_cam_to_cam.txt
│   │   ├── calib_imu_to_velo.txt
│   │   └── calib_velo_to_cam.txt
│   ├── 2011_09_28
│   ├── 2011_09_29
│   ├── 2011_09_30
│   └── 2011_10_03
├── mask-rcnn
│   ├── 2011_09_26_drive_*
│   │   ├── image_02
│   │   │   └── *.npz
│   │   └── image_03
│   ├── 2011_09_28
│   ├── 2011_09_29
│   ├── 2011_09_30
│   └── 2011_10_03
└── struct2depth
          ├── 2011_09_26_drive_*
          │   ├── image_02
          │   │   └── *.png
          │   │   └── *-fseg.png
          │   │   └── *-cam.txt
          │   └── image_03
          ├── 2011_09_28
          ├── 2011_09_29
          ├── 2011_09_30
          └── 2011_10_03

Costruzione dataset di training

Guardare struct2depth per il formato delle immagini di training.

Nota: prima di esegurire lo script generare le maschere delle immagini tramite mask-rcnn.

Generare il dataset, ad esempio per Oxford Robot Car, con il comando:

python depth_and_motion_learning/generator/gen_data_oxford.py --folder

Per generare il file train.txt contenente i percorsi alle immagini di training, eseguire:

python depth_and_motion_learning/generator/splits_generator.py --folder --dataset

Per generare file di train composti da più routes, dopo aver generato i relativi file train.txt, eseguire:

python depth_and_motion_learning/generator/splits_mixer.py --list --dataset

Training

bash run_train.sh

Testing

bash run_predict.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published