def image_a_b_gen(batch_size):
for batch in datagen.flow(Xtrain, batch_size=batch_size):
if batch == None:
break
lab_batch = rgb2lab(batch)
X_batch = lab_batch[:,:,:,0]
Y_batch = lab_batch[:,:,:,1:]
yield (X_batch.reshape(X_batch.shape+(1,)), Y_batch)
# Train model
deep_colorization.py 文件源码
python
阅读 20
收藏 0
点赞 0
评论 0
评论列表
文章目录