2025/04/09 Meeting Notes #159
himanshunaidu
started this conversation in
Meeting Notes
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Progress Update
Continued further work on incorporating training and testing logic in the ML pipeline. Also incorporated multiple evaluation metrics such as mIoU, mDice, and ROM/RUM.
The current code can train a model similar to that of the EdgeNets code on the CityScapes dataset.
Still need to incorporate custom datasets into the training as well as testing pipelines.
The model conversion from PyTorch to CoreML is finally working with good performance for models such as BiSeNetv2.
Now we have a BiSeNetv2 CoreML model ready for usage as a test version.
Have analyzed segment_streets.py and other similar files in edge_mapping repository
Started working on implementation of object (centroid tracking) on iOS using OpenCV iOS.
The post-processing logic may prove to be another bottleneck in real-time processing.
E.g. Watershed Algorithm (instance segmentation): 20 ms per frame
Found a computation bottleneck in the real-time segmentation post-processing.
Fixed it with iOS Accelerate.
Real-time Post-processing of each frame for the current logic has been reduced from 50 ms to < 5 ms.
Meeting Notes
In order to incorporate vision transformers in the pipeline, we should explore possible options.
MLX seems to be a good option to explore. It is open-source.
Another option for converting PyTorch models to edge device-friendly format is Executorch.
https://pytorch.org/executorch/stable/demo-apps-ios.html
(Not sure if it will help deploy transformers, but it may be worth a try)
OpenCV is a little too outdated in general, plus it seems to be moving to a payment model.
Moving most of the logic to Metal shading language may be possible.
E.g. To get contours of an image, convert the image to black and white, shrink the image by 1 pixel on all corners to get a reduced image, and subtract the reduced image from the original image to get the contours.
Next Steps
Explore Executorch
Explore Metal Shading Language
https://developer.apple.com/documentation/metalperformanceshaders
https://developer.apple.com/metal/
Beta Was this translation helpful? Give feedback.
All reactions