This commit is contained in:
deeppomf 2018-02-26 21:11:09 -05:00
parent 93e0dc2307
commit 57932e1708

View File

@ -18,7 +18,9 @@ for path in paths:
temp = Image.open(path)
#remove alpha channel
if temp.mode=='RGBA':
temp = im.convert('RGB')
temp = temp.convert('RGB')
print ("no alpha")
print temp.mode
keep = temp.copy()
keep = np.array(keep)
x.append(keep)