sahi icon indicating copy to clipboard operation
sahi copied to clipboard

Added yolov9 compatibility

Open Hamzalopode opened this issue 1 year ago • 8 comments

Added Yolov9 compatibility:

  • Yolov9 model download for E & C
  • Yolov9 process ( same as yolov8 )

Other model size and demo predict will be added with time.

Hamzalopode avatar Mar 28 '24 11:03 Hamzalopode

Amazing contribution @Hamzalopode! 🚀

Please fix the errors raised in tests by:

  • Install required development packages:
pip install -e ."[dev]"
  • Reformat with black and isort:
python -m scripts.run_code_style format
  • Commit and push 💯

fcakyon avatar Apr 08 '24 14:04 fcakyon

Thanks @fcakyon !

I think everything looks good now. Let me know if there is anything else.

🚀

Hamzalopode avatar Apr 08 '24 16:04 Hamzalopode

@Hamzalopode for some reason, you updated all the prior notebook files. Can you please revert these changes?

Other than that all seems OK 🚀

fcakyon avatar Apr 08 '24 22:04 fcakyon

Done.

Sorry I thought that applying the styling format for the notebooks was a good idea.

Hamzalopode avatar Apr 09 '24 01:04 Hamzalopode

@Hamzalopode Can we add one level of abstraction to integrate common features between yolov8 and yolov9 (see e.g. PR #988) As far as I know there is full compatibility between the two models.

GuillaumeBruand avatar Apr 10 '24 07:04 GuillaumeBruand

Fixed merge conflict between the two branch.

Hamzalopode avatar Apr 28 '24 20:04 Hamzalopode

getting the following error when trying to use

TypeError: ERROR ❌️ ../weights/best.pt appears to be an Ultralytics YOLOv5 model originally trained with https://github.com/ultralytics/yolov5. This model is NOT forwards compatible with YOLOv8 at https://github.com/ultralytics/ultralytics. Recommend fixes are to train a new model using the latest 'ultralytics' package or to run a command with an official Ultralytics model, i.e. 'yolo predict model=yolov8n.pt'

The training was like

train_dual.py --sync-bn ---img 640 --cfg models/detect/yolov9-c.yaml --weights '' --name yolov9-c --hyp hyp.scratch-high.yaml

eniktab avatar Jul 02 '24 07:07 eniktab

Interested in using yolov9 but cannot figure out how to get this to work. I have a custom yolov9-e model and its yaml but I cannot find any documentation on how to use it with SAHI. I've been butting my head against this for a bit and wondering if this has had any progress.

weertman avatar Sep 12 '24 22:09 weertman