- Home page
- http://www.einarsundgren.se/gstreamer-basic-real-time-streaming-tutorial/
- Original documetation from source code
- http://wiki.oz9aec.net/index.php/Gstreamer_cheat_sheet
- http://www.cin.ufpe.br/~cinlug/wiki/index.php/Introducing_GStreamer
- http://www.jonobacon.org/2006/12/27/using-gnonlin-with-gstreamer-and-python/
- https://felipec.wordpress.com/2008/01/19/gstreamer-hello-world/
- http://notes.brooks.nu/2011/01/gstreamer-video-crossfade-example/
- http://www.oz9aec.net/index.php/gstreamer/366-gstinputselector-to-switch-between-different-cameras
- Picture compositing
This file contains 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
echo "DefaultTasksMax=infinity" | sudo tee --append /etc/systemd/system.conf > /dev/null \ | |
echo "DefaultLimitNOFILE=10000000" | sudo tee --append /etc/systemd/system.conf > /dev/null \ | |
echo "UserTasksMax=infinity" | sudo tee --append /etc/systemd/logind.conf > /dev/null | |
echo "* soft nproc unlimited" | sudo tee --append /etc/security/limits.conf > /dev/null \ | |
echo "* hard nproc unlimited" | sudo tee --append /etc/security/limits.conf > /dev/null \ | |
echo "* soft nofile unlimited" | sudo tee --append /etc/security/limits.conf >/dev/null \ | |
echo "* hard nofile unlimited" | sudo tee --append /etc/security/limits.conf > /dev/null \ | |
echo "root soft nofile unlimited" | sudo tee --append /etc/security/limits.conf > /dev/null \ | |
echo "root hard nofile unlimited" | sudo tee --append /etc/security/limits.conf > /dev/null |
This file contains 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
@staticmethod | |
async def create(headless=True) -> 'Game': | |
o = Game(headless) | |
await o.initialize() | |
return o | |
async def initialize(self): | |
self.browser = await launch(headless=self.headless) | |
self.page = await self.browser.newPage() | |
await self.page.goto(self.game_url, {'waitUntil': 'networkidle2'}) |
This file contains 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
xhost + && \ | |
docker run --rm -it --privileged \ | |
-e DISPLAY=unix$DISPLAY \ | |
-v /tmp/.X11-unix:/tmp/.X11-unix \ | |
-v ${HOME}/datasets/:/datasets \ | |
housebw/morghulis-browser morghulis.browse --dataset=fddb --data_dir=/datasets/FDDB |
This file contains 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
# create the directory where the dataset will be downloaded | |
mkdir -p ${HOME}/datasets/FDDB | |
# download the dataset | |
docker run --rm -it \ | |
-v ${HOME}/datasets/:/datasets \ | |
housebw/morghulis-browser morghulis.download --dataset=fddb --output_dir=/datasets/FDDB |
This file contains 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 requests | |
import re | |
import json | |
download_url = 'https://pan.baidu.com/s/15NsUpSIFeHfoGKHAjQBISQ' | |
session = requests.Session() | |
HEADERS = { | |
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36' | |
} |
This file contains 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 bash | |
# Bash3 Boilerplate. Copyright (c) 2014, kvz.io | |
set -o errexit | |
set -o pipefail | |
set -o nounset | |
# set -o xtrace | |
# Set magic variables for current file & dir | |
__dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" |
This file contains 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
layer filters size input output | |
0 conv 32 3 x 3 / 1 416 x 416 x 3 -> 416 x 416 x 32 | |
1 conv 64 3 x 3 / 2 416 x 416 x 32 -> 208 x 208 x 64 | |
2 conv 32 1 x 1 / 1 208 x 208 x 64 -> 208 x 208 x 32 | |
3 conv 64 3 x 3 / 1 208 x 208 x 32 -> 208 x 208 x 64 | |
4 Shortcut Layer: 1 | |
5 conv 128 3 x 3 / 2 208 x 208 x 64 -> 104 x 104 x 128 | |
6 conv 64 1 x 1 / 1 104 x 104 x 128 -> 104 x 104 x 64 | |
7 conv 128 3 x 3 / 1 104 x 104 x 64 -> 104 x 104 x 128 | |
8 Shortcut Layer: 5 |
This file contains 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
""" | |
xhost +local:docker && nvidia-docker run --rm -it --privileged --net=host \ | |
-v ${PWD}/:/s3fd \ | |
-e DISPLAY=unix$DISPLAY \ | |
-v /tmp/.X11-unix:/tmp/.X11-unix \ | |
--workdir /s3fd \ | |
bvlc/caffe:gpu bash | |
""" | |
import caffe |
This file contains 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 bash | |
PROJECT=$1 | |
INSTANCE_NAME=$2 | |
MACHINE_TYPE=${3:-n1-standard-4} | |
ZONE=${4:-us-central1-c} | |
NUM_GPUS=${5:-1} | |
gcloud compute --project ${PROJECT} instances create ${INSTANCE_NAME} \ | |
--zone ${ZONE} \ |