Lan1tan
Lan1tan
微调没效果可以看看保存的adapter_model.bin文件时多大,记得检查是否和作者是同一个版本,peft新的版本按作者的写法并没有正确保存adapter_model.bin文件,要把 model.state_dict = ( lambda self, *_, **__: get_peft_model_state_dict( self, old_state_dict() ) ).__get__(model, type(model)) 这段代码去掉即可保存成功
```python model1 = YOLO('model.pt') model2 = YOLO('model.pt') def infer(model, img_path): return model.predict(img_path) thread1 = threading.Thread(target=infer, args=(model1, img_path)) thread2 = threading.Thread(target=infer, args=(model2, img_path)) thread1.start() thread2.start() thread1.join() thread2.join() ``` Because my code...
> @ohj666 hello! Thanks for reaching out with your question regarding the detection of symmetrically similar objects with YOLOv8. 🌟 > > Detecting objects that are mostly similar except for...
Thank you very much for your answer. I still don't understand some of your suggestions. First, what configuration file does the pre-designed yolo11-p6 configuration refer to? I didn't find this...