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
["Technology", "Investing", "Books", "Gaming", "Computer programming", "Tech news", "Machine learning", "Travel", "Web development", "Arts & culture news", "World news", "Movies", "Home improvement", "Arts & crafts", "Dogs", "Philosophy", "Comedy", "Space", "Business & finance", "Pets", "Information security", "Neon Genesis Evangelion", "Cybersecurity", "Science", "Interior design", "Bitcoin cryptocurrency", "Education", "Architecture", "National parks", "Movies & TV", "Business news", "Food", "PlayStation 5", "Disney", "Fashion", "Psychology", "Language learning", "Gardening", "Fitness", "Music", "Sci-fi & fantasy films", "Science news", "Artificial intelligence", "Visual arts", "Home & family", "Cats", "Cooking", "Harry Potter", "Gaming consoles", "Animal Crossing", "Digital creators", "Sci-fi & fantasy", "Animation", "Star Wars", "Art", "Classic rock", "Tattoos", "Painting", "Travel guides", "Guitar", "History", "PlayStation", "Inspirational quotes", "Running", "PC gaming", "Mobile Suit Gundam", "Gaming ne |
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
[ | |
["Technology", "Investing", "Books"], | |
["Gaming", "Computer programming", "Tech news"], | |
["Machine learning", "Travel", "Web development"], | |
["Arts & culture news", "World news", "Movies"], | |
["Home improvement", "Arts & crafts", "Dogs"], | |
["Philosophy", "Comedy", "Space"], | |
["Business & finance", "Pets", "Information security"], | |
["Neon Genesis Evangelion", "Cybersecurity", "Science"], | |
["Interior design", "Bitcoin cryptocurrency", "Education"], |
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
{ | |
"jobName": "TranscribeSample", | |
"accountId": "123456789", | |
"results": { | |
"transcripts": [ | |
{ | |
"transcript": "Hi. My name is John McCollum. I'm a writer at large for The New York Times Magazine. And in 2016, I wrote a piece for the magazine about clouds. Yeah, it's a story about clouds. It doesn't sound very important, and I" | |
} | |
], | |
"speaker_labels": { |
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
root@55166535ad1d:/tensorflow_src# bash <(curl -s https://raw.githubusercontent.com/tensorflow/tensorflow/master/tools/tf_env_collect.sh) && cat tf_env.txt | |
Collecting system information... | |
Traceback (most recent call last): | |
File "/tmp/check_tf.py", line 1, in <module> | |
import tensorflow as tf; | |
ModuleNotFoundError: No module named 'tensorflow' | |
WARNING: Package(s) not found: tensorflow | |
Wrote environment to tf_env.txt. You can review the contents of that file. | |
and use it to populate the fields in the github issue template. |
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
loreto@ombromanto:~/Projects/docker-gpu-mnoavx$ docker run --gpus all -it -w /tensorflow -v $PWD:/mnt -e HOST_PERMS="$(id -u):$(id -g)" tensorflow/tensorflow:devel-gpu | |
________ _______________ | |
___ __/__________________________________ ____/__ /________ __ | |
__ / _ _ \_ __ \_ ___/ __ \_ ___/_ /_ __ /_ __ \_ | /| / / | |
_ / / __/ / / /(__ )/ /_/ / / _ __/ _ / / /_/ /_ |/ |/ / | |
/_/ \___//_/ /_//____/ \____//_/ /_/ /_/ \____/____/|__/ | |
WARNING: You are running this container as root, which can cause new files in |
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
function aggressive_tokenizer(text) { | |
// most punctuation | |
text = text.replace(/[^\w\.\-\/\+\<\>,&]/g, " $& "); | |
// commas if followed by space | |
text = text.replace(/(,\s)/g, " $1"); | |
// single quotes if followed by a space | |
text = text.replace(/('\s)/g, " $1"); | |
// single quotes if last char | |
text = text.replace(/('$)/, " $1"); | |
text = text.replace(/(\s+[`'"‘])(\w+)\b(?!\2)/g, " $2"); |
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
const fs = require('fs'); | |
const path = require('path'); | |
const log = require('@vladmandic/pilogger'); | |
const tf = require('@tensorflow/tfjs'); | |
const tfnode = require('@tensorflow/tfjs-node'); | |
function getTensorFromImage(path) { | |
if (!fs.existsSync(path)) return null; | |
const data = fs.readFileSync(path); | |
const tfimage = tfnode.node.decodeImage(data); |
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
#!/bin/bash | |
count() { | |
awk 'BEGIN { | |
unit["Bytes"] = 1; | |
unit["kB"] = 10**3; | |
unit["MB"] = 10**6; | |
unit["GB"] = 10**9; |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# @author loretoparisi at gmail dot com | |
# Copyright (c) 2020 Loreto Parisi | |
# | |
import numpy as np | |
import json |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# @author loretoparisi at gmail dot com | |
# Copyright (c) 2020 Loreto Parisi | |
# | |
### built-in | |
import argparse | |
import json |