我试图重现这段代码的结果:,据我所知,我遇到的第一个问题是,https://github.com/vjayd/Image-Alignment-using-CNN数据是灰度图像,而不是彩色图像,所以为什么他使用rgb2gray函数将它们转换成灰度图像 for img_train in glob.glob(trdata): n = rgb2gray(n) train_x.append(n.reshape(1, 28, 28)) (1, 1, 28, 28)在这一行中是什么意
我一直收到来自Heroku的slug大小过大警告(Compiled slug size: 789.8M is too large (max is 500M)),我不知道为什么,因为我的模型大小(下面的cnn.pth)相当小,我的文件目录总共只有1.1mb:我的Pipfile当前安装了以下包:flask = "*"psycopg2 = "