Conchylicultor / DeepQA

My tensorflow implementation of "A neural conversational model", a Deep learning based chatbot
Apache License 2.0
2.93k stars 1.17k forks source link

Input to reshape is a tensor with 1 values, but the requested shape has 0 #133

Open ycui123 opened 7 years ago

ycui123 commented 7 years ago

Hi everyone,

I got the problem:Input to reshape is a tensor with 1 values, but the requested shape has 0 while I was trainning the model. I run python train/train.py and the mistake happened in the middle of trainning. Sometimes it happens in iter 30+, sometimes it happens in iter 300+. I don't know how to fix it.

Does anyone have the same problem with me?

EMCP commented 7 years ago

this problem usually occurs when I've been running multiple models / parameters.

make sure your ./data/samples and ./save are clean

I even get so paranoid as to move things into clean folders with the --modelTag NAMEMODEL

anatolix commented 7 years ago

_Hi, i've looked into this bug. Actually bad string is coco.py: gt_boxes = tf.decode_raw(features['label/gt_boxes'], tf.float32) The problem is if we call tf.decode_raw from empty string('') it returns tensor [0] i.e. tf.decoderaw('', tf.float32).eval() == array([ 0.], dtype=float32) I think we should handle empty in special way string here. I'll try to make a fix

update: sorry I was answered to a bug in different project https://github.com/CharlesShang/FastMaskRCNN/issues/113 Haven't noticed after googling bug text

anatolix commented 7 years ago

this is dup of #113, I made fix look for it in pull requests.