我不能为我的生活弄清楚如何切换图像排序.图像以(x,x,3)格式读取,theano要求它为(3,x,x)格式.我尝试用改变顺序 numpy.array([img[:,:,i] for i in range(3)])
numpy.array([img[:,:,i] for i in range(3)])
我猜这可以完成工作,但它既丑陋又无法弄清楚如何扭转它以恢复原始图像.
python numpy machine-learning theano keras
keras ×1
machine-learning ×1
numpy ×1
python ×1
theano ×1