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

Question training issue #55

Closed
yannishin opened this issue Jun 4, 2020 · 2 comments
Closed

Question training issue #55

yannishin opened this issue Jun 4, 2020 · 2 comments

Comments

@yannishin
Copy link

yannishin commented Jun 4, 2020

When learning, the warning below is being logged.
(With my custom data)

How to solve this warning ?

I used this option.
--model_type=yolo4_darknet
--model_image_size=960*1280

python train.py --model_type=yolo4_darknet --anchors_path=configs/yolo3_anchors.txt --weights_path=weights=yolov5.h5 --annotation_file=/workspace/data/final/plate/train.csv --classes_path=/workspace/data/final/plate/plate_classes.txt --model_image_size=960*1280 --eval_online --save_eval_checkpoint

----------- Warning Message --------------
E tensorflow/core/grappler/optimizers/meta_optimizer.cc:563] layout failed: Invalid argument: Subshape must have computed start >= end since stride is negative, but is 0 and 2 (computed from start 0 and end 9223372036854775807 over shape with rank 2 and stride-1)

@david8862
Copy link
Owner

Seems it's a legacy issue from keras-yolo3:
https://stackoverflow.com/questions/57558476/training-a-keras-model-yields-multiple-optimizer-errors
I've commit fix for it. You can have a try on latest code

@yannishin yannishin reopened this Jun 5, 2020
@yannishin
Copy link
Author

Thank you very much!!!
I solved this issue.

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

2 participants