Skip to content

Instantly share code, notes, and snippets.

@GTimothee
Created June 11, 2018 13:03
Show Gist options
  • Save GTimothee/e9f530994bc38b7db48e41472e1ee1d1 to your computer and use it in GitHub Desktop.
Save GTimothee/e9f530994bc38b7db48e41472e1ee1d1 to your computer and use it in GitHub Desktop.
base = os.path.basename(imagePath)
fileName = os.path.splitext(base)[0]
os.path.isdir(dataPath)
shutil.copyfile(imagePath, newImgPath)
os.makedirs(datasetPath)
if os.path.isdir(datasetPath):
shutil.rmtree(datasetPath, ignore_errors=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment