Skip to content

Commit

Permalink
add random file name
Browse files Browse the repository at this point in the history
  • Loading branch information
afcruzs committed May 22, 2020
1 parent 8018eb3 commit 0fa0798
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/copy_to_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@
try:
nfn = uuid.uuid4().hex[:20]
nfn += '.jpg' # are all images jpg?
shutil.copy2(fn, args.output_path)
shutil.copy2(fn, os.path.join(args.output_path, nfn))
#shutil.copy2(fn, args.output_path)
except:
pass
continue
if n >= args.number:
break

Expand Down

0 comments on commit 0fa0798

Please sign in to comment.