Video Tutorial – Using the DeepLearningKit example OS X app

By | February 15, 2016

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/OSXDeepLearningKitApp/OSXDeepLearningKitApp

Viewcontroller.swift


import Cocoa

class ViewController: NSViewController {
var deepNetwork: DeepNetwork!

override func viewDidLoad() {
super.viewDidLoad()
}

override func viewDidAppear() {
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..

Leave a Reply