YOLO-World icon indicating copy to clipboard operation
YOLO-World copied to clipboard

How to export pt model

Open lizhiwen19900709 opened this issue 1 year ago • 8 comments

How to customize labels export pt model files ?

lizhiwen19900709 avatar Apr 15 '24 13:04 lizhiwen19900709

this line

taofuyu avatar Apr 16 '24 06:04 taofuyu

This is the export onnx model, I want to export pt model @taofuyu

lizhiwen19900709 avatar Apr 16 '24 06:04 lizhiwen19900709

@lizhiwen19900709, does pt denote the pytorch model?

wondervictor avatar Apr 16 '24 06:04 wondervictor

@lizhiwen19900709, does pt denote the pytorch model?

yes,.pt model files

lizhiwen19900709 avatar Apr 16 '24 07:04 lizhiwen19900709

exactly, the pt and pth models are the same.

wondervictor avatar Apr 16 '24 07:04 wondervictor

exactly, the pt and pth models are the same.

Eventually I'm going to switch to the coreml model,Before the successful test pt to corem, so want to transfer pt

lizhiwen19900709 avatar Apr 16 '24 07:04 lizhiwen19900709

Hi @lizhiwen19900709, according to my comprehension based on CoreML Docs, you need the torch model with checkpoints (pt or pth) and convert the model to a jit model and then to a CoreML model.

wondervictor avatar Apr 16 '24 07:04 wondervictor

Can you help me write a JIT script? I'm not familiar with the parameters. I've been tossing around for a long time. I've been failing.

Hi @lizhiwen19900709, according to my comprehension based on CoreML Docs, you need the torch model with checkpoints (pt or pth) and convert the model to a jit model and then to a CoreML model.

lizhiwen19900709 avatar Apr 17 '24 01:04 lizhiwen19900709