pylearn

Using Global Contrast Normalization - Python pylearn2

亡梦爱人 提交于 2019-12-12 03:46:53
问题 Im attempting to input my image to this method, but when i try to draw the image, it comes totally black. I tried inputing just one image and inputing the whole MNIST dataset. Same result. https://github.com/lisa-lab/pylearn2/blob/master/pylearn2/expr/preprocessing.py if GCN is True: trainingFolder = "../inputData/converted_training/GCN/" testingFolder = "../inputData/converted_testing/GCN/" img0 = (data[1,1:]).reshape((28,28)).astype('uint8')*255 im = Image.fromarray(img0) im.show() #GCN#