DetectionTeamUCAS / FPN_Tensorflow

This is a tensorflow re-implementation of Feature Pyramid Networks for Object Detection.
https://github.com/DetectionTeamUCAS/FPN_Tensorflow
MIT License
347 stars 132 forks source link

关掉restorer后出现Reshape error #134

Open dovesani opened 4 years ago

dovesani commented 4 years ago

InvalidArgumentError (see above for traceback): Reshape cannot infer the missing input size for an empty tensor unless all specified input sizes are non-zero [[node Fast-RCNN/build_fc_layers/flatten_inputs/flatten/Reshape (defined at /home/dell-g3/anaconda3/lib/python3.6/site-packages/tensorflow/contrib/layers/python/layers/layers.py:1623) = Reshape[T=DT_FLOAT, Tshape=DT_INT32, _device="/job:localhost/replica:0/task:0/device:GPU:0"](Fast-RCNN/rois_pooling/concat-0-0-TransposeNCHWToNHWC-LayoutOptimizer, Fast-RCNN/build_fc_layers/flatten_inputs/flatten/Reshape/shape)]] 您好,我想不用预训练权重,但是注释掉restore以后出现这个Reshape的问题 请问这该怎么办