我需要插入B作为A的最后一个元素,所以在插入 A.shape = (2001,224,224,3) and A[2001] = B 我试过np.concatenate((A,B),axis = 0),但它不能解决我的问题np.concatenate((a,b),axis = 0) ValueError: all the input arrays must have same number of dimensions 我期望的是a.shape = (2001,224,224,3)
a[2001] = b 谢谢你的帮忙!
我使用的是一个自定义模型,我使用MobileNetV2使用迁移学习构建了一个自定义模型,然后转换为TF.js格式。模型接受(batch_size,224,224,3)的输入我不确定大小(150528)来自哪里,因为它不存在于我的model.summary()中 Link to model summary as itis too long to post here Python中的模型代码: baseModel = MobileNetV2(include_top=False,
input_