-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: add YOLOv8 inference and finetunning #20
Conversation
(1) only inference is supported, (2) FastSAM might segment non-building objects
When I installed ultralytics, for yolo8, from scratch, it conflicts with old opencv:
I would not rush on updating opencv now, as this might require to fix more fair code. When I get to the point that yolo8 can be trained, so it has comparable outputs to ramp, then I would upgrade opencv. |
Thanks @8ToThePowerOfMol , This is great ! I am thinking of experimenting yolo working with its training code and establish it as a basemodel if output is right and then we can upgrade opencv |
As a next step, we need to be able to train/finetune yolo with our data. Ultralytics framework has their own training procedure, but for training data, it requires to transform the segmentation annotations to their format - I see two options:
I would first try the second option and if that won't work, we can try first one. The first option needs to convert the world geo-coordinates into the image coordinates. When we get to the point, the training works on the sample_2, I would try to finetune yolo on the same data that were used for ramp. The resulting model, I would then use it as the yolo basemodel for fair. |
I exported yolo v8 model to keras, but then I wasn't successful with loading it. |
And I found solid evaluation script in ramp, so I added it as a function to the fair utils code, together with additional possibility to evaluate qualitatively from prediction masks. |
Wonderful @mohwald , I have requested the collab notebook for the access ! Sorry for the late reply I was on vacation |
No worries. I made colab accessible now @kshitijrajsharma: https://colab.research.google.com/drive/1GxKpdWDYzmmOPJ3dY6FohFCjk2lvD_-w?usp=sharing |
Excellent Analysis @mohwald ! Helped me visualize capabilities and I agree with you fastsam doesn't fit properly may be with different dataset and different feature type it might , I loved this , I might keep this on repo to explore more ! Thanks once again lovely piece of work ! |
Major change with YOLO done. The source code is fully functional. Example usage with RAMP comparison is there: |
I am finally merging your PR ! Thank you so much for your contribution ! Soon Yolo will be available to UI |
Summary: