Delete data on rerun-all

Former-commit-id: 1e413904b9
pull/1161/head
Dakota Benjamin 2017-09-01 11:32:20 -04:00
rodzic d8cecc0215
commit 5f20b72502
2 zmienionych plików z 9 dodań i 8 usunięć

Wyświetl plik

@ -33,7 +33,7 @@ has equivalent procedures for Mac OS X and Windows found at [docs.docker.com](do
docker run -it --rm -v $(pwd)/images:/code/images -v $(pwd)/odm_orthophoto:/code/odm_orthophoto -v $(pwd)/odm_texturing:/code/odm_texturing opendronemap/opendronemap
```
### Native Install (Ubuntu Trusty or Xenial)
### Native Install (Ubuntu 16.04)
** Please note that we need help getting ODM updated to work for 16.10+. Look at #659 or drop into the [gitter][https://gitter.im/OpenDroneMap/OpenDroneMap) for more info.

15
run.py
Wyświetl plik

@ -25,14 +25,15 @@ if __name__ == '__main__':
# If user asks to rerun everything, delete all of the existing progress directories.
# TODO: Move this somewhere it's not hard-coded
if args.rerun_all:
log.ODM_DEBUG("Rerun all -- Removing old data")
os.system("rm -rf "
+ args.project_path + "images_resize/ "
+ args.project_path + "odm_georeferencing/ "
+ args.project_path + "odm_meshing/ "
+ args.project_path + "odm_orthophoto/ "
+ args.project_path + "odm_texturing/ "
+ args.project_path + "opensfm/ "
+ args.project_path + "pmvs/")
+ args.project_path + "/images_resize "
+ args.project_path + "/odm_georeferencing "
+ args.project_path + "/odm_meshing "
+ args.project_path + "/odm_orthophoto "
+ args.project_path + "/odm_texturing "
+ args.project_path + "/opensfm "
+ args.project_path + "/pmvs")
# create an instance of my App BlackBox
# internally configure all tasks