Video Tutorial – Using the DeepLearningKit example iOS app

This video shows how to use the standalone (very simple) example iOS app that comes with DeepLearningKit, the code can be found (as part of the main repository) at github.com/DeepLearningKit/DeepLearningKit/tree/master/iOSDeepLearningKitApp/iOSDeepLearningKitApp

Viewcontroller.swift





import UIKit

class ViewController: UIViewController {

var deepNetwork: DeepNetwork!

override func viewDidLoad() {

super.viewDidLoad()

// Do any additional setup after loading the view, typically from a nib.

}

override func viewDidAppear(animated: Bool) {

deepNetwork = DeepNetwork()

// conv1.json contains a cifar 10 image of a cat

let conv1Layer = deepNetwork.loadJSONFile("conv1")!

let image: [Float] = conv1Layer["input"] as! [Float]

var randomimage = createFloatNumbersArray(image.count)

for i in 0..