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

训练时,报错,似乎是程序没有考虑容错 #14

Open
houlimin opened this issue May 9, 2020 · 4 comments
Open

训练时,报错,似乎是程序没有考虑容错 #14

houlimin opened this issue May 9, 2020 · 4 comments

Comments

@houlimin
Copy link

houlimin commented May 9, 2020

Traceback (most recent call last):
File "E:/TensorFlow2.0_SSD-master/train.py", line 70, in
train_step(batch_images=images, batch_labels=labels)
File "E:/TensorFlow2.0_SSD-master/train.py", line 57, in train_step
gt_boxes = gt.generate_gt_boxes()
File "E:\TensorFlow2.0_SSD-master\core\ground_truth.py", line 136, in generate_gt_boxes
gt_boxes = self.__label_positive_and_negative_predicted_boxes(valid_true_boxes, self.predict_boxes)
File "E:\TensorFlow2.0_SSD-master\core\ground_truth.py", line 98, in __label_positive_and_negative_predicted_boxes
box_true_class = box_true[..., -1]
IndexError: index -1 is out of bounds for axis 0 with size 0

@calmiLovesAI
Copy link
Owner

I will rewrite the code in the last one or two weeks.

@queliyong
Copy link

Same error +1

@jiollos
Copy link

jiollos commented Jul 18, 2020

same error, I used the rewritten code, but It still have the same problem.

@calmiLovesAI
Copy link
Owner

I have completely rewritten the code, and now the program will not report an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants