Support .weights file