You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there! I noticed that ncnn has no support for Swift at the moment and wonder if you have interest in creating a cocoapod pod or SwiftPM package for ncnn? It will be a great help to iOS developers as Swift has grown to be the major pl for iOS and apple is promoting their new UI framework SwiftUI, which is purely in Swift.
I have tried to create a tiny wrapper for ncnn as a prove of concept in zhuzilin/ncnn-swift, where I used squeezenet to create a image classification app in swift.
The roadmap between the C++ code of ncnn to Swift I used is:
Create Objective-C++ code to use ncnn's C++ code.
Create Objective-C header to use the Objective-C++ code. (a technique from stackoverflow).
Use Bridge-Header to generate the interface between Objective-C and Swift.
The run method will do all the net.input and net.extract at this same time.
I believe we could expand this idea to create a cocoapod pod for those who do not need very delicate performance optimziation, like what tflite provides. We don't need to ship the swift code to this main repo. Instead, we could create a SIG named "Swift for ncnn" for example and discuss the swift relevant issues there.
If you have interest in this, I'd love to help~
Thank you for your time on this long issue and wish you happy New Year!
Hi there! I noticed that ncnn has no support for Swift at the moment and wonder if you have interest in creating a cocoapod pod or SwiftPM package for ncnn? It will be a great help to iOS developers as Swift has grown to be the major pl for iOS and apple is promoting their new UI framework SwiftUI, which is purely in Swift.
I have tried to create a tiny wrapper for ncnn as a prove of concept in zhuzilin/ncnn-swift, where I used squeezenet to create a image classification app in swift.
The roadmap between the C++ code of ncnn to Swift I used is:
A snippet of the swift code is:
The
run
method will do all thenet.input
andnet.extract
at this same time.I believe we could expand this idea to create a cocoapod pod for those who do not need very delicate performance optimziation, like what tflite provides. We don't need to ship the swift code to this main repo. Instead, we could create a SIG named "Swift for ncnn" for example and discuss the swift relevant issues there.
If you have interest in this, I'd love to help~
Thank you for your time on this long issue and wish you happy New Year!
Gently ping @nihui
The text was updated successfully, but these errors were encountered: