您当前的位置: 首页 >  ar
  • 0浏览

    0关注

    2393博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

成功解决ValueError: Dimension 1 in both shapes must be equal, but are 1034 and 1024. Shapes are [100,103

一个处女座的程序猿 发布时间:2020-11-23 19:48:19 ,浏览量:0

成功解决ValueError: Dimension 1 in both shapes must be equal, but are 1034 and 1024. Shapes are [100,1034] and [100,1024]. for 'Assign_8' (op: 'Assign') with input shapes: [100,1034], [100,1024].

 

 

目录

解决问题

解决思路

解决方法

 

 

 

 

解决问题

ValueError: Dimension 1 in both shapes must be equal, but are 1034 and 1024. Shapes are [100,1034] and [100,1024]. for 'Assign_8' (op: 'Assign') with input shapes: [100,1034], [100,1024].

 

 

 

解决思路

值错误:两种形状的维度1必须相等,但是是1034和1024。形状为[100,1034]和[100,1024]。对于具有输入形状的'Assign_8' (op: 'Assign'):[100,1034],[100,1024]。

 

 

 

解决方法

读入的h5文件本身错误,需要重新训练得到最新的h5文件,然后导入读取即可!

g.load_weights('models/DCGAN1123.h5')

 

 

 

 

 

 

 

 

 

关注
打赏
1664196048
查看更多评论
立即登录/注册

微信扫码登录

0.0433s