Skip to content

Instantly share code, notes, and snippets.

@zaidalyafeai
Last active July 2, 2018 11:51
Show Gist options
  • Save zaidalyafeai/7c7cb5d8550834eda8e92cfb49fde05e to your computer and use it in GitHub Desktop.
Save zaidalyafeai/7c7cb5d8550834eda8e92cfb49fde05e to your computer and use it in GitHub Desktop.
//load the class names
async function loadDict()
{
await $.ajax({
url: 'model/class_names.txt',
dataType: 'text',}).done(success);
}
//load the class names
function success(data)
{
lst = data.split(/\n/)
symbols = []
for(var i = 0 ; i < lst.length -1 ; i++)
{
let symbol = lst[i]
symbols[i] = symbol
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment