Skip to content
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

OutOfRangeError (see above for traceback): #4032

Closed
sed0724963 opened this issue Apr 19, 2018 · 21 comments
Closed

OutOfRangeError (see above for traceback): #4032

sed0724963 opened this issue Apr 19, 2018 · 21 comments
Assignees
Labels
stat:awaiting model gardener Waiting on input from TensorFlow model gardener

Comments

@sed0724963
Copy link

what it is mean??object_detection module is equal a file of "object_detection" ?or not?
2018-04-19 4 05 25

@VinceKumar
Copy link

You have to rerun instructions from Protobuf Compilation, Add Libraries to PYTHONPATH everytime you close the terminal.

link

@sed0724963
Copy link
Author

sed0724963 commented Apr 19, 2018

I was written at PATH.. 。 it's your mean??
2018-04-20 1 51 23

@k-w-w
Copy link
Contributor

k-w-w commented Apr 19, 2018

pwd should be replaced with the path to the models/research folder.

@VinceKumar
Copy link

shouldn't it also be in your .bashrc file?

@sed0724963
Copy link
Author

Now, it's my new question,I try to renew the command line ,it's become this ..:
2018-04-20 2 05 51
No such file or directory

@k-w-w
Copy link
Contributor

k-w-w commented Apr 19, 2018

You're missing a space between --logtostderr and --pipeline_config_path.

@sed0724963
Copy link
Author

I renew the command line , Take away the $ mark become:python object_detection/train.py --logtostderr --pipeline_config_path=object_detection/data/faster_rcnn_resnet101_pets.config --train_dir=object_detection/data/
and problem become this...
2018-04-20 2 23 07
2018-04-20 2 23 52
2018-04-20 2 24 10

@VinceKumar
Copy link

#3705

@sed0724963
Copy link
Author

a new problem...
2018-04-20 3 05 20
2018-04-20 3 05 40

@sed0724963 sed0724963 changed the title ModuleNotFoundError: No module named 'object_detection'?? UnboundLocalError: local variable 'total_loss' referenced before assignment?? Apr 19, 2018
@k-w-w
Copy link
Contributor

k-w-w commented Apr 19, 2018

That appears to be a bug in tf.contrib.slim. Are you able to upgrade to Tensorflow 1.7 or later?

@sed0724963
Copy link
Author

OK, I'll trying now

@sed0724963
Copy link
Author

it's successful?? so faster?
2018-04-20 4 11 57

@k-w-w
Copy link
Contributor

k-w-w commented Apr 19, 2018

It looks like it didn't train at all. Did you prepare the data as instructed by the README?

@sed0724963
Copy link
Author

I think I have...
2018-04-20 4 17 43

@sed0724963
Copy link
Author

If you ' ll allow a slight digression, how did you know about my tensorflow version is too low?? the previous question

@k-w-w
Copy link
Contributor

k-w-w commented Apr 19, 2018

I'm not too familiar with the object detection model, so I'm unsure if that's the expected train directory structure. @derekjchow , can you help with this? Thanks!

@sed0724963 I saw the tf.contrib.slim bug on the r1.6 branch in the source code. The bug was fixed in r1.7. (I also probably could have used the release notes to figure out when the bug was fixed)

@k-w-w k-w-w added the stat:awaiting model gardener Waiting on input from TensorFlow model gardener label Apr 19, 2018
@sed0724963
Copy link
Author

but I only have image of my terminal , how did you know ? yourself seen the souce code at before? and how to know my question is same??

@k-w-w
Copy link
Contributor

k-w-w commented Apr 19, 2018

The error local variable 'total_loss' referenced before assignment originated from the file that I linked (learning.py), so I look at the code history and found that there was a bug in r1.6 and before.

@sed0724963 sed0724963 changed the title UnboundLocalError: local variable 'total_loss' referenced before assignment?? Unsuccessful TensorSliceReader constructor Apr 21, 2018
@sed0724963
Copy link
Author

Unsuccessful TensorSliceReader constructor??
I only have model.ckpt ,but it tell me must model.ckpt-0?? why??
2018-04-21 12 05 03

@sed0724963 sed0724963 changed the title Unsuccessful TensorSliceReader constructor OutOfRangeError (see above for traceback): Apr 21, 2018
@SpiralBeing
Copy link

@sed0724963 The same issue..You solved it?

@sed0724963
Copy link
Author

@FreedoomFighter what's issue ? sorry I forgot....,but now I can work! so I think I was solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat:awaiting model gardener Waiting on input from TensorFlow model gardener
Projects
None yet
Development

No branches or pull requests

5 participants