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

Loss error #30

Open
monchhichizzq opened this issue Aug 3, 2020 · 0 comments
Open

Loss error #30

monchhichizzq opened this issue Aug 3, 2020 · 0 comments

Comments

@monchhichizzq
Copy link

loading annotations into memory...
Done (t=0.02s)
creating index...
index created!
2020-08-03 10:24:10,579-INFO: 2501 samples in train set.
WARNING:tensorflow:Output yolo_loss_1 missing from loss dictionary. We assume this was done on purpose. The fit and evaluate APIs will not be expecting any data to be passed to yolo_loss_1.
2020-08-03 10:24:10,604-WARNING: Output yolo_loss_1 missing from loss dictionary. We assume this was done on purpose. The fit and evaluate APIs will not be expecting any data to be passed to yolo_loss_1.
WARNING:tensorflow:Output yolo_loss_2 missing from loss dictionary. We assume this was done on purpose. The fit and evaluate APIs will not be expecting any data to be passed to yolo_loss_2.
2020-08-03 10:24:10,604-WARNING: Output yolo_loss_2 missing from loss dictionary. We assume this was done on purpose. The fit and evaluate APIs will not be expecting any data to be passed to yolo_loss_2.
Traceback (most recent call last):
File "C:\Users\AI Lord.conda\envs\pytorch_lib\lib\site-packages\tensorflow_core\python\framework\ops.py", line 1619, in _create_c_op
c_op = c_api.TF_FinishOperation(op_desc)
tensorflow.python.framework.errors_impl.InvalidArgumentError: slice index -1 of dimension 0 out of bounds. for 'loss/yolo_loss_loss/strided_slice' (op: 'StridedSlice') with input shapes: [0], [1], [1], [1] and with computed input tensors: input[1] = <-1>, input[2] = <0>, input[3] = <1>.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "F:/Yolov4_资料/yolov4_test/train.py", line 360, in
model.compile(loss={'yolo_loss': lambda y_true, y_pred: y_pred}, optimizer=Adam(lr=cfg.lr))

请问这个错误怎么解决?不是很明白. 谢谢

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

1 participant