能开发加载原生pt格式和训练生成原生pt格式么?
The .pt of ultralytics is different from other .pt weight, it contains many infos about the model. I've tried to load it, but not work well. So I have convert it to .safetensors and load the weight only.
.bin格式是自定义的格式吗?怎么把.pt转换成这个呢
.bin is created from torchsharp, it is a Binary file. You can save the .pt weight to .safetensor file or .pt file with state_dict only in python, and load it with YoloSharp.ModelLoader.SafetensorsLoader or YoloSharp.ModelLoader.PickleLoader. Then yolo can load it like the method blow.
The pre-trained .bin weight in yolosharp is from yolo .pt, the weights are same.
YoloSharp can load .pt weight file now.