Photo Assessment using Core ML and Metal.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

CI Status Version Carthage compatible License Platform CocoaPods CocoaPods Twitter Follow


Photo Assessment using Core ML and Metal.

📚 Article

🔮 Example

To run the example project, clone the repo and run PhotoAssessment target.

🐒 How to use

PhotoAssessmentHelper generates assessment result quicker and easier, using far less code.

self.helper.requestMLAssessmentScore(for: downsampleImage, completionHandler: { (score) in
    DispatchQueue.main.async {
        self.assessmentLabel.text = String(format: "Assessment Score:%0.5f", score)
self.helper.requestMPSAssessmentScore(for: downsampleImage, completionHandler: { (result) in
    DispatchQueue.main.async {
        self.detailLabel.text = result.description


Support iOS、tvOS.


Support macOS.


Convert NIMA model to Core ML format.

📲 Installation


CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate PhotoAssessment into your Xcode project using CocoaPods, specify it in your Podfile:

source ''
platform :ios, '11.0'
target 'MyApp' do
	pod 'PhotoAssessment'

You need replace "MyApp" with your project's name.

Then, run the following command:

$ pod install


Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

You can install Carthage with Homebrew using the following command:

$ brew update
$ brew install carthage

To integrate PhotoAssessment into your Xcode project using Carthage, specify it in your Cartfile:

github "yulingtianxia/PhotoAssessment"

Run carthage update to build the framework and drag the built PhotoAssessmentKit.framework into your Xcode project.


Just drag the "Sources" document folder into your project.

❤️ Contributed

  • If you need help or you'd like to ask a general question, open an issue.
  • If you found a bug, open an issue.
  • If you have a feature request, open an issue.
  • If you want to contribute, submit a pull request.

👨🏻‍💻 Author


👮🏻 License

PhotoAssessment is available under the MIT license. See the LICENSE file for more info.