Skip to content

Commit

Permalink
Use data_path/pmvs as defaut output dir
Browse files Browse the repository at this point in the history
  • Loading branch information
paulinus committed Nov 26, 2015
1 parent 8207415 commit b1fd78b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions bin/export_pmvs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ if __name__ == "__main__":
args = parser.parse_args()

data = dataset.DataSet(args.dataset)
base_output_path = args.output
if base_output_path is None:
base_output_path = os.path.join(os.path.dirname(args.dataset), 'pmvs')
if args.output:
base_output_path = args.output
else:
base_output_path = os.path.join(data.data_path, 'pmvs')

print "Converting dataset [%s] to PMVS dir [%s]" % (data.data_path, base_output_path)

io.mkdir_p(base_output_path)
Expand Down

0 comments on commit b1fd78b

Please sign in to comment.