I would like to use the pre-trained weights of YOLO (tiny version, v1) in Keras, which are given in a file with extension .weights
(here is an example). How can I read such a file in Keras?
For the past two days, I've been relentlessly digging through Github, and the likes, in order to help me in this task, with more or less success. I found some scripts on the internet in order to convert .txt
or .h5
files (.h5
only for YOLO v2, and not v1), but none of these seemed to be working properly.
So, I guess my question is: how to read a .weights
file? How are the data stored and structured in these files?