I want to write a detect function for my model,
It look like detect(image) and return class_prob, bounded box.
I use tiny-yolo model.
I already train and save one model(use model.save not model.save_weights) in the logs/000/ folder.
But I get error when I load model.
The first error message is NameError: name 'yolo_head' is not defined
So I import yolo_head.
The second error message is TypeError: list indices must be integers or slices, not list
Is there any better idea to get the bounded box from image when finish training own model?
Thanks
I want to write a detect function for my model, It look like detect(image) and return class_prob, bounded box. I use tiny-yolo model. I already train and save one model(use model.save not model.save_weights) in the logs/000/ folder.
But I get error when I load model. The first error message is NameError: name 'yolo_head' is not defined So I import yolo_head. The second error message is TypeError: list indices must be integers or slices, not list
Is there any better idea to get the bounded box from image when finish training own model? Thanks