This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys, os | |
| import json | |
| import glob | |
| from PIL import Image | |
| USAGE = "python labelbox_label.py /path/to/training/image/directory/ /path/to/labelbox/exported/xy/data.json" | |
| assert len(sys.argv) > 2, f'Insufficient arguments: {USAGE}' | |
| args = sys.argv[1:] if '.py' in sys.argv[0] else sys.argv[0:] | |
| assert(len(args) == 2), f'Incorrect usage: {USAGE}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| from random import randint as r | |
| import glob | |
| import cv2 | |
| import numpy as np | |
| USAGE = "python unlabel.py /path/to/training/image/directory/" | |
| assert len(sys.argv) > 1, f'Insufficient arguments: {USAGE}' | |
| args = sys.argv[1:] if '.py' in sys.argv[0] else sys.argv[0:] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @charset "UTF-8"; | |
| /* | |
| GLUE Tokens - DLS | |
| The contents of this file is owned and generated by the DLS team. | |
| If you require changes making to the values stored here please reach out | |
| to @dls on Slack. | |
| Links: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import { StyleSheet, Text, View, StatusBar, Dimensions } from 'react-native' | |
| import { Font, AppLoading } from 'expo' | |
| import { | |
| Image, | |
| ListView, | |
| Divider, | |
| Screen, | |
| NavigationBar, | |
| ImageBackground, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [{ | |
| "image": "https://42f2671d685f51e10fc6-b9fcecea3e50b3b59bdc28dead054ebc.ssl.cf5.rackcdn.com/illustrations/making_art_759c.svg", | |
| "title": "Making art", | |
| "tags": "creative, painting, woman, art" | |
| }, { | |
| "image": "https://42f2671d685f51e10fc6-b9fcecea3e50b3b59bdc28dead054ebc.ssl.cf5.rackcdn.com/illustrations/quitting_time_dm8t.svg", | |
| "title": "Quitting time", | |
| "tags": "work, office, break, man, coffee, employee" | |
| }, { | |
| "image": "https://42f2671d685f51e10fc6-b9fcecea3e50b3b59bdc28dead054ebc.ssl.cf5.rackcdn.com/illustrations/user_flow_vr6w.svg", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var linkedinify = bropost => | |
| bropost.split(/ |\n/g) | |
| .map((post, i) => i % 5 == 0 ? post.toUpperCase() : post.toLowerCase()) | |
| .join(' ').split(/(?=\.|!|\?)/g).join('\n\n') | |
| + '\n\n' + bropost.split(/ |\n/g).map(word => '#' + word).join(' ') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ["Where are all my Asian ricers at? And what do you drive? Pic for attention*\n\nedit: follow me on ig @kennyywen\nI dont have much on my ig just an fyi","VANCOUVER 🇨🇦 LADIES, ARE YOU TIRED 😴 OF GETTING PLAYED BY FUCKBOIS 🙅🏻♂️???? Looking for your perfect mans? Don’t look on Tinder. Don’t look on East meets East. Don’t look on Bumble. LOOK NO FURTHER. I present to you my bro Peter Pham. 😛\n\nThis 24 year old 5’10 Vietnamese man can be your nuoc papí with dat chả giò 🍆 NAW’M SAYIN 😏\n\nWith so many tingz to do in Vancouver this holiday season, Peter’s the perfect companion!\n\nPROS: \n* Will pick you up and drop you off to your door step like the gentleman he is 🚙💨\n* Laugh at all of your jokes & make you laugh just as much 🤪\n* VERY FAMILY ORIENTATED!!!! LOVES KIDS TOO!!!! 👨👩👧👦👶🏻\n* Is a down ass bitch and is willing to do whatever to make you smile 💪🏼😤\n* LOVES to nap so you best believe he’s a good cuddler ladies 😉\n* The most caring person ever! you’ll never shed a tear with this one 🙅🏻♂️😢\n* Can go f |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use-nnet2: True | |
| decoder: | |
| use-threaded-decoder: True | |
| model: /opt/models/english/tedlium_nnet_ms_sp_online/final.mdl | |
| word-syms: /opt/models/english/tedlium_nnet_ms_sp_online/words.txt | |
| fst: /opt/models/english/tedlium_nnet_ms_sp_online/HCLG.fst | |
| mfcc-config: /opt/models/english/tedlium_nnet_ms_sp_online/conf/mfcc.conf | |
| ivector-extraction-config: /opt/models/english/tedlium_nnet_ms_sp_online/conf/ivector_extractor.conf | |
| max-active: 7000 | |
| beam: 8.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use-nnet2: True | |
| decoder: | |
| use-threaded-decoder: True | |
| model: /opt/models/english/tedlium_nnet_ms_sp_online/final.mdl | |
| word-syms: /opt/models/english/tedlium_nnet_ms_sp_online/words.txt | |
| fst: /opt/models/english/tedlium_nnet_ms_sp_online/HCLG.fst | |
| mfcc-config: /opt/models/english/tedlium_nnet_ms_sp_online/conf/mfcc.conf | |
| ivector-extraction-config: /opt/models/english/tedlium_nnet_ms_sp_online/conf/ivector_extractor.conf | |
| max-active: 7000 | |
| beam: 8.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // click all the see more links to expand the post | |
| new Array(...document.getElementsByClassName('see_more_link_inner')).forEach(el => el.click()) | |
| // scrape all the post content to an array called "posts" | |
| const posts = new Array(...document.getElementsByClassName('userContent')).map(el => el.innerText) | |
| // https://stackoverflow.com/questions/19721439/download-json-object-as-a-file-from-browser | |
| function downloadObjectAsJson(exportObj, exportName){ | |
| var dataStr = "data:text/json;charset=utf-8," + encodeURIComponent(JSON.stringify(exportObj)); | |
| var downloadAnchorNode = document.createElement('a'); |