# SRCNNKit **Repository Path**: hjw119/SRCNNKit ## Basic Information - **Project Name**: SRCNNKit - **Description**: CoreML and Keras implementation of Super-Resolution Convolutional Neural Network (SRCNN) - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-05-10 - **Last Updated**: 2020-12-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SRCNNKit Implementation of Super Resolution (SR) with CoreML and Swift. You can use SR method in your app using SRCNNKit UIImageView extension. For details, see the following presentaion: https://speakerdeck.com/kenmaz/super-resolution-with-coreml-at-try-swift-tokyo-2018 ## Pre trained model __Sorry, this project dosen't contain *.mlmodel yet. You should train your own model and import `SRCNN.mlmodel` to your project.__ ## iOS ### Usage ```swift import SRCNNKit let imageView: UIImageView = ... let image: UIImage = ... imageView.setSRImage(image) ``` ### Install - Copy sources to your project. - CocoaPods and Carthage will be supported soon. ### Requirements - iOS11 - Xcode9.x ## Run sample project - Copy your `SRCNN.mlmodel` to `model` directory - Run following command: ```bash git submodule init git submodule update ``` - Open `SRCNN-ios/SRCNN-ios.xcodeproj` and Run ## Train Your own model ### Requirements - Python 3.0+ - see `script/packages.txt` ### Convert Training Data ```bash cd script python3 convert.py python3 convert.py ``` ### Training ```bash python3 train.py ``` ### Plot Model Image ```bash python plot.py <.h5 model path> ``` ### Convert Keras to CoreML Model ```bash python3 coreml_convert.py
``` ### Validate CoreML Model ```bash python3 coreml_predict.py ``` ## Dependencies https://github.com/hollance/CoreMLHelpers ## Licence SRCNNKit is released under the MIT license. See [LICENSE](TBD) for details. Copyright © 2018 DeNA Co., Ltd. All rights reserved.