THU-MIG / yolov10

YOLOv10: Real-Time End-to-End Object Detection
https://arxiv.org/abs/2405.14458
GNU Affero General Public License v3.0
8.16k stars 693 forks source link

when I load my pt file, an error occured #199

Open cos888888 opened 1 month ago

cos888888 commented 1 month ago

when I run model = YOLOv10('mytrain.pt') , I get a error as follows:

Message= 'IterableSimpleNamespace' object has no attribute 'setstate'. This may be caused by a modified or out of date ultralytics 'default.yaml' file.

My ultralytics has installed from yolov10-master, I don't know how to deal with this problem.

leonnil commented 1 month ago

Was the model mytrain.pt trained using default.yaml? Please check your configuration to ensure it has no extra arguments.

cos888888 commented 2 weeks ago

Thank you, I will check related files again.

------------------ 原始邮件 ------------------ 发件人: "THU-MIG/yolov10" @.>; 发送时间: 2024年6月10日(星期一) 晚上10:19 @.>; @.**@.>; 主题: Re: [THU-MIG/yolov10] when I load my pt file, an error occured (Issue #199)

Was the model mytrain.pt trained using default.yaml? Please check your configuration to ensure it has no extra arguments.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>