This gist contains steps to setup Ubuntu 22.04.1 LTS
for deep learning.
- Computer name: Name-PC
- Name: Name
#include <gst/gst.h> | |
#include <glib.h> | |
#include <string.h> | |
// Compile command: | |
// gcc -Wall $(pkg-config --cflags --libs gstreamer-0.10) test.c -o test | |
// Gstreamer test: | |
// gst-launch filesrc location=<your video file> typefind=true ! aiurdemux name=demux demux. ! queue max-size-buffers=0 max-size-time=0 ! mfw_vpudecoder ! autovideosink demux. ! queue ! mfw_aacdecoder ! autoaudiosink |
void GetNetworkStats(string host, int pingAmount, int timeout, out int averagePing, out int packetLoss) | |
{ | |
Ping pingSender = new Ping(); | |
PingOptions options = new PingOptions(); // default is: don't fragment and 128 Time-to-Live | |
string data = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; | |
byte[] buffer = Encoding.ASCII.GetBytes(data); // 32 bytes of data | |
var failedPings = 0; | |
var latencySum = 0; |
Gui, Add, Button, x46 y20 w100 h30 Gon , Proxy ON | |
Gui, Add, Button, x46 y60 w100 h30 Goff , Proxy OFF | |
Gui, Add, Button, x46 y100 w100 h30 Ggtfo , Exit | |
; Generated using SmartGUI Creator 4.0 | |
Gui, Show, x129 y99 h146 w194, Proxy Status | |
Return | |
on: | |
setproxy("ON", "127.0.0.1:1080") | |
return |
/* | |
Notes: | |
The font modifier requires the following gist: | |
https://gist.github.com/shaps80/2d21b2ab92ea4fddd7b545d77a47024b | |
*/ |
function unfollow() { | |
setTimeout(function() { | |
console.log('unfollowed'); | |
let list = document.querySelectorAll('.FollowButton'); | |
console.log(list); | |
for (i = 0; i < list.length; i++) { | |
list[i].click(); | |
} | |
unfollow(); | |
}, 3000); |
https://github.com/danini/graph-cut-ransac
sudo apt-get install libopencv-dev
sudo apt-get install libeigen3-dev
git clone https://github.com/danini/graph-cut-ransac
cd graph-cut-ransac
python ./setup.py install
import json | |
def filter_train(): | |
data = [] | |
with open('bdd100k_labels/bdd100k_labels_images_train.json') as f: | |
train = json.load(f) | |
for image in train: | |
if image['attributes']['timeofday'] == 'daytime': | |
data.append(image) | |
```sh | |
conda create --name transformers python=3.11 | |
conda activate transformers | |
conda install pytorch::pytorch torchvision torchaudio -c pytorch | |
pip install git+https://github.com/huggingface/accelerate | |
pip install git+https://github.com/huggingface/transformers | |
git clone https://github.com/huggingface/transformers.git | |
cd transformers/examples/pytorch/token-classification |