From 57932e170883e8cbba43ac0e136928d497077087 Mon Sep 17 00:00:00 2001 From: deeppomf Date: Mon, 26 Feb 2018 21:11:09 -0500 Subject: [PATCH] fix typo --- training_data/to_npy.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/training_data/to_npy.py b/training_data/to_npy.py index b848b77..2400f90 100644 --- a/training_data/to_npy.py +++ b/training_data/to_npy.py @@ -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)