How can I read the .weights file that stores the weights of the pre-trained YOLO in Keras?
The .weights seems to be the extension for a framework called &quot;darknet&quot;. You can read .h5 files with Keras.
However, if you really want to build an object detection framework, there is no necessity to stick to the darknet's .weights files. There are many pretrained models on the web. Or else you could fine-tune a pre-trained ImageNet model in Keras, which I think is the best option, although there is not much you can do, if you got the exact weights of the YOLO model. Instead, it is better to train one from scratch or at least by fine-tuning an ImageNet model. By doing so, you will learn a lot.