-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
run train.py Input to reshape is a tensor with 1 values, but the requested shape has 0 #113
Comments
I think this issue is same as issue #88. |
I got this problem too, and i use version 1.1.0, the suggestions in issue #88 may not help |
But did you fix the problem ? |
this my caused by writing a tfrecord example when the instance number is 0, try to escape that kind of image when writing tfRecord |
@LovPe,
What do you mean by instance number is 0?
…On Thu, Aug 3, 2017 at 1:14 PM, LovPe ***@***.***> wrote:
this my caused by writing a tfrecord example when the instance number is
0, try to escape that kind of image when writing tfRecord
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#113 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHMgs46Bd9oo5Nub9hWM6GcdG3Ko8CNRks5sUXptgaJpZM4OdM0D>
.
--
Regards,
Sharath Kumar R
*The only way to do great work is to love what you do. If you haven’t found
it yet, keep looking. Don’t settle. As with all matters of the heart,
you’ll know when you find it.” - Steve Jobs (1955 - 2011)*
|
@LovPe But i'm using tensorflow 1.1. Still facing the same issue. Shall go
ahead with the condition to verify once?
…On Fri, Aug 4, 2017 at 7:55 AM, LovPe ***@***.***> wrote:
@Sharathnasa <https://github.com/sharathnasa>
[image: image]
<https://user-images.githubusercontent.com/11580882/28951542-4bd69af6-78fe-11e7-8f54-e60ffdd869ee.png>
------------------------------
the code in red mark is the instance number, you can go into it to see the
detail.
i think the new version tensorflow(1.2+) will do some check when doing
resizeing so when you
have a example with instance number is zero, it will block the reading
thread.
i add an if condition when writing tf record to make sure the instance
number is >0:
I rewrite the writing process so the details may be different and after
this, the training project work
well on tf1.3rc
[image: image]
<https://user-images.githubusercontent.com/11580882/28951579-a5993e68-78fe-11e7-906f-d01bbcba6bf0.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#113 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHMgs-0DlMR6yM3r0f_lODObNMyYnFDvks5sUoEzgaJpZM4OdM0D>
.
--
Regards,
Sharath Kumar R
*The only way to do great work is to love what you do. If you haven’t found
it yet, keep looking. Don’t settle. As with all matters of the heart,
you’ll know when you find it.” - Steve Jobs (1955 - 2011)*
|
@Sharathnasa |
@LovPe |
@WKChung1028 |
@LovPe
|
something like that |
sys.stdout.write('\n') i add the command like this and run good for few literation. but it stopped again and showed error like below: ['background'] |
@LovPe |
@WKChung1028 |
|
1/yes |
Hi, i've looked into this bug. Actually bad string is I am actually not sure about 'delete all tfrecord file generated by previous code' because actually by this you will delete all images without markup. They could still be useful for training. |
fix: #160 |
tfrecord file in use tf1.2 generate,but run use tf1.5, Will have this problem? |
@LovPe I just follow your advice and this problem has been partially solved. But the program still ended at iter124 and still had this problem. I want to know how to deal with it totally. I use tf1.4 and python2.7. |
@LiuPearl1 i use python3.6 and tf1.2 when solving this problem, and currently i have already give up to use this project and work on the original implementation on caffe2. i found there are some details different between 2 projects. |
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?
The text was updated successfully, but these errors were encountered: