Created
June 11, 2018 13:03
-
-
Save GTimothee/e9f530994bc38b7db48e41472e1ee1d1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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