aarkey81

Results 3 comments of aarkey81

create a new python file, import all requirements and copy the following lines in them model = Darknet("your .cfg file") model.load_state_dict(torch.load("your_ckpt.pth", map_location=torch.device('cpu'))) # for loading model on cpu model.save_weights(savedfile='your_ckpt.weights', cutoff=0)...

> I want to convert this project's .pth to darknet's .weights ,anyone else have some advice? > I try to load .pth to model, and then save modle's para to...

> > I want to convert this project's .pth to darknet's .weights ,anyone else have some advice? > > I try to load .pth to model, and then save modle's...