Skip to content

Commit

Permalink
add chart
Browse files Browse the repository at this point in the history
  • Loading branch information
jcao-ai committed Dec 11, 2017
1 parent 3fa38c8 commit 28881bf
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
Binary file added DemoImages/chart_of_beam_size
Binary file not shown.
Binary file added DemoImages/showAndTell.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion ShowAndTell/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class ViewController: UIViewController {
@IBAction func predict() {
textView.text = nil
let startTime = Date()
let results = showAndTell.predict(image: self.currentImage, beamSize: 3, maxWordNumber: 30)
let results = showAndTell.predict(image: self.currentImage, beamSize: 7, maxWordNumber: 30)
GSMessage.showMessageAddedTo("Time elapsed:\(Date().timeIntervalSince(startTime) * 1000)ms", type: .info, options: nil, inView: self.view, inViewController: self)
textView.text = results.sorted(by: {$0.score > $1.score}).map({
var x = $0.readAbleSentence.suffix($0.readAbleSentence.count - 1)
Expand Down

0 comments on commit 28881bf

Please sign in to comment.