Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cocoa-ai/SentimentVisionDemo
🌅 iOS11 demo application for visual sentiment prediction.
https://github.com/cocoa-ai/SentimentVisionDemo
coreml coreml-models ios machine-learning sentiment-analysis swift swift4 vision
Last synced: 3 months ago
JSON representation
🌅 iOS11 demo application for visual sentiment prediction.
- Host: GitHub
- URL: https://github.com/cocoa-ai/SentimentVisionDemo
- Owner: cocoa-ai
- License: mit
- Created: 2017-07-16T17:15:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-08T22:22:03.000Z (about 5 years ago)
- Last Synced: 2024-05-20T20:19:10.177Z (6 months ago)
- Topics: coreml, coreml-models, ios, machine-learning, sentiment-analysis, swift, swift4, vision
- Language: Swift
- Homepage: https://github.com/cocoa-ai
- Size: 919 KB
- Stars: 36
- Watchers: 3
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-CoreML-models - SentimentVisionDemo
README
# Sentiment Vision Demo
A Demo application using `Vision` and `CoreML` frameworks to detect the most
likely sentiment of the given image.
## Model
This demo is based on the "Fine-tuning CNNs for Visual Sentiment Prediction"
neural network classifier, which was converted from original [Caffe model](https://github.com/imatge-upc/sentiment-2017-imavis)
to [CoreML model](https://drive.google.com/file/d/1nt_Sp85Orplcbyyc7AAyCUjEfss8Pw87/view?usp=sharing)
using [coremltools](https://pypi.python.org/pypi/coremltools) python package.## Requirements
- Xcode 9
- iOS 11## Installation
```sh
git clone https://github.com/cocoa-ml/SentimentVisionDemo.git
cd SentimentVisionDemo
pod install
open SentimentVision.xcworkspace/
```Download the [CoreMl model](https://drive.google.com/open?id=0B1ghKa_MYL6mZ0dITW5uZlgyNTg)
and drag the file into your project.Build the project and run it on a simulator or a device with iOS 11.
## Conversion
```sh
cd Convert
./download.sh
python convert.py
```## Author
Vadym Markov, [email protected]
## Credits
[From Pixels to Sentiment: Fine-tuning CNNs for Visual Sentiment Prediction](https://github.com/imatge-upc/sentiment-2017-imavis)
## References
- [Caffe](http://caffe.berkeleyvision.org)
- [Apple Machine Learning](https://developer.apple.com/machine-learning/)
- [Vision Framework](https://developer.apple.com/documentation/vision)
- [CoreML Framework](https://developer.apple.com/documentation/coreml)
- [coremltools](https://pypi.python.org/pypi/coremltools)