ValueError:在 feed_dict tensorflow

问题描述

我想使用 u-net 分割医学图像。我在训练模型中遇到以下错误。我见过类似的问题,我知道这是因为我们要求 NumPy 从具有不同维度元素的列表中创建一个数组,但我不知道如何解决

代码是:

        train_dict = {
        unet.training: True,unet.model_input: x,unet.model_labels: y
    }
    _,loss = sess.run([unet.train_op,unet.loss],Feed_dict = train_dict)

train_dict 的形状是:

(3 items) {Tensor with shape : True,Tensor with shape (?,12,120,1): [ndarray with shape (100,1),ndarray with shape (80,120),1)],形状为 (?,1) 的张量:[形状为 (100,1) 的 ndarray,形状为 (80,1)]}

根据train_dict的形状,问题到底是多少?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)