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
| item { | |
| name: "/m/01g317" | |
| id: 1 | |
| display_name: "person" | |
| keypoints { | |
| id: 0 | |
| label: "left_ankle" | |
| } | |
| keypoints { | |
| id: 1 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 os | |
| import io | |
| import glob | |
| import hashlib | |
| import pandas as pd | |
| import xml.etree.ElementTree as ET | |
| import tensorflow.compat.v1 as tf | |
| import random | |
| from PIL import Image |
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 hashlib | |
| import os | |
| import random | |
| import logging | |
| from pathlib import Path | |
| from lxml import etree | |
| import tensorflow as tf | |
| from object_detection.utils import dataset_util, label_map_util | |
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 cv2 | |
| def main(): | |
| cap = cv2.VideoCapture(0) | |
| bgObj = cv2.bgsegm.createBackgroundSubtractorMOG() | |
| while(True): | |
| ret, frame = cap.read() | |
| fgmask = bgObj.apply(frame) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 | |
| DIRPATH=$1 | |
| outpath="output/" | |
| for path in $DIRPATH*; do | |
| name=`basename $path` | |
| bro -r $path ./tcpdump2gureKDDCup99/darpa2gurekddcup.bro > conn.list -C | |
| sort -n conn.list > conn_sort.list | |
| ./tcpdump2gureKDDCup99/trafAld.out conn_sort.list | |
| mv conn_sort.list $outpath$name".csv" |
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 | |
| sudo apt-get install git gcc make openssl libssl-dev libbz2-dev libreadline-dev libsqlite3-dev | |
| cd /usr/local/ | |
| sudo git clone git://github.com/yyuu/pyenv.git ./pyenv | |
| sudo mkdir -p ./pyenv/versions ./pyenv/shims | |
| echo 'export PYENV_ROOT="/usr/local/pyenv"' | sudo tee -a /etc/profile.d/pyenv.sh | |
| echo 'export PATH="${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"' | sudo tee -a /etc/profile.d/pyenv.sh |
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
| from tensorflow.examples.tutorials.mnist import input_data | |
| mnist = input_data.read_data_sets("MNIAT_data/", one_hot=True) | |
| import tensorflow as tf | |
| x = tf.placeholder(tf.float32, [None, 784]) | |
| W = tf.Variable(tf.zeros([784, 10])) | |
| b = tf.Variable(tf.zeros([10])) | |
| y = tf.nn.softmax(tf.matmul(x, W) + b) | |
| y_ = tf.placeholder(tf.float32, [None, 10]) |
NewerOlder