Skip to content

Commit

Permalink
Cleaned up image files
Browse files Browse the repository at this point in the history
  • Loading branch information
baljit92 committed Jun 30, 2017
1 parent c254e6e commit 737bb32
Show file tree
Hide file tree
Showing 151 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/machine_learning/custom_scripts/image_augment.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import csv
import ast

Image.Image.tostring = Image.Image.tobytes

def parse(ifile, ofile):
'''
Expand Down Expand Up @@ -104,7 +105,7 @@ def main(argv):
output_img_directory = arg
else:
print 'image_augment.py -i <training_csv_file> -o <output_csv_file> -I <input_img_directory> -O <out_img_directory>'
sys.exit2()
sys.exit(2)

if not parse(inputfile, outputfile):
print "Please enter valid CSV file(s)"
Expand Down Expand Up @@ -200,4 +201,4 @@ def main(argv):
else:
print "Not found"
if __name__ == "__main__":
main(sys.argv[1:])
main(sys.argv[1:])
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.

0 comments on commit 737bb32

Please sign in to comment.