Open hccho2 opened 4 years ago
Before:
b = scipy.misc.imresize(a[:,:,0],[84,84,1],interp='nearest') c = scipy.misc.imresize(a[:,:,1],[84,84,1],interp='nearest') d = scipy.misc.imresize(a[:,:,2],[84,84,1],interp='nearest') a = np.stack([b,c,d],axis=2)
After:
a= (skimage.transform.resize(a,[84,84,3],order=0)*255).astype(np.uint8)
I replaced 4 lines described in "Before:" to 1 line described in "After":. and it worked. Thank you, Heecheol Cho.
Before:
After: