-
Notifications
You must be signed in to change notification settings - Fork 109
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
AssertionError: "Either detect or segment should be True" #5
Comments
You are right, there is a mistake in the example run. Both flags are missing. You need to run with --detect and --segment if you want to train for both tasks, or leave one of them if you choose either task. Pushed that modification. |
@DrSleep Correction has been done. I guess you can close this issue. |
Fixed |
@DrSleep Did you run the training script till end? @dvornikita 2017-09-21 09:56:14.669454: W C:\tf_jenkins\home\workspace\rel-win\M\windows-gpu [INFO]: Error reported to Coordinator: <class 'tensorflow.python.framework.error During handling of the above exception, another exception occurred: Traceback (most recent call last): Caused by op 'gradients/TopKV2_grad/Reshape', defined at: ...which was originally created as op 'TopKV2', defined at: InvalidArgumentError (see above for traceback): Reshape cannot infer the missing |
@fastlater Regarding the checkpoints, we save them every 1000 iterations no matter what. You can see this in the main training loop in training.py and you can change this value. |
@dvornikita Thank you for your reply. About the checkpoint saving method, I found it in the training.py. I added a few lines to save the checkpoint when max_iteration is reached: I was training with batch_size =1 because if I set any number higher than 1, the execution stops due to low memory. I will update my gpu and run it next time with batch size =32. |
Hi there,
I have tried to execute the example training command:
but have encountered an assertion error:
Does it mean I need to provide
detect
andsegment
explicitly?The text was updated successfully, but these errors were encountered: