For Windows User
masonreznov opened this issue · comments
michaelsalam commented
- Use the following code in helpers.py if the system is windows
- Otherwise the "\" notation for windows will create problems
#line number 139
for each in glob("{}/*".format(path)):
key = each.split("/")[-1]
key = key.split("\\""")[-1]
print(" #### Reading image category ", key, " ##### ")
imlist[key] = []
for imagefile in glob(path+key+"/*.jpg"):
print("Reading file ", imagefile)
im = cv2.imread(imagefile)
imlist[key].append(im)
count +=1