Created
July 29, 2020 05:29
-
-
Save Praveen76/1590d1c334ce734831311b53f2f23ea4 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
#Define labels & write them in a file | |
classes = ['mask','noMask'] | |
with open('../maskDetectorClasses.csv', 'w') as f: | |
for i, class_name in enumerate(classes): | |
f.write(f'{class_name},{i}\n') | |
if not os.path.exists('snapshots'): | |
os.mkdir('snapshots') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment