Created
August 14, 2018 02:56
-
-
Save yuchen-xue/5b0a4d61254e27e021032378c3ee32ff to your computer and use it in GitHub Desktop.
Generate training list for darknet yolo training.
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
from pathlib import Path | |
for img_file in Path('./JPEGImages').iterdir(): | |
with open('train.txt', 'w') as f: | |
print(img_file.resolve(), file=f) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment