Skip to content

Instantly share code, notes, and snippets.

Avatar

Taras jackersson

View GitHub Profile
View trtexec_output.log
&&&& RUNNING TensorRT.trtexec # trtexec --onnx=/home/soccer_ball_tracker_poc/tests/debug/simple_tf_gather_cnn.onnx --verbose
[10/03/2021-15:57:44] [I] === Model Options ===
[10/03/2021-15:57:44] [I] Format: ONNX
[10/03/2021-15:57:44] [I] Model: /home/soccer_ball_tracker_poc/tests/debug/simple_tf_gather_cnn.onnx
[10/03/2021-15:57:44] [I] Output:
[10/03/2021-15:57:44] [I] === Build Options ===
[10/03/2021-15:57:44] [I] Max batch: explicit
[10/03/2021-15:57:44] [I] Workspace: 16 MiB
[10/03/2021-15:57:44] [I] minTiming: 1
[10/03/2021-15:57:44] [I] avgTiming: 8
@jackersson
jackersson / config.yaml
Created Sep 22, 2021
OnePanel Local Installation
View config.yaml
apiVersion: opdef.apps.onepanel.io/v1alpha1
kind: OpDef
spec:
manifestsRepo: /home/ubuntu/Downloads/test/.onepanel/manifests/v1.0.1-rc.1
params: params.yaml
components:
- kfserving/base
- cert-manager/base
- common/application/base
- common/istio/base
View moving_average.py
def moving_median(arr):
numbers = arr[1:]
sliding_window_size = min(len(numbers), arr[0])
i = 1
result = []
while i < (len(numbers) + 1):
index_from = max(0, (i - sliding_window_size))
window_numbers = numbers[index_from:i]
View pytable_example.py
import tables as tb
class Record(tb.IsDescription):
first_track_id = tb.StringCol(16) # 16-character String
second_tracK_id = tb.StringCol(16) # 16-character String
distance = tb.Float32Col() # Float (single-precision)
# Open a file in "w"rite mode
fileh = tb.open_file("table1.h5", mode="w")
View video_record.sh
#!/bin/bash
RECDIR=/mnt/record/minisio/$(date +%Y-%m-%d)
RECTIME=$(date +-%H:%M:%S)
if [ ! -d "$RECDIR" ]; then
mkdir -p $RECDIR
fi
cd $RECDIR
for i in {0..6}; do
@jackersson
jackersson / resnet10.txt
Last active Sep 2, 2020
NN architectures
View resnet10.txt
name: "ResNet-10"
input: "data"
input_shape {
dim: 1
dim: 3
dim: 272
dim: 480
}
layer {
bottom: "data"
@jackersson
jackersson / resnet18.txt
Last active Sep 2, 2020
NN Architectures
View resnet18.txt
name: "ResNet-18"
layer {
name: "data"
type: "Input"
top: "data"
input_param { shape: { dim: 1 dim: 3 dim: 224 dim: 224 } }
}
layer {
bottom: "data"
View costmap_common_params.yaml
footprint: [[-0.1,-0.16],[-0.1,0.16],[0.1,0.16],[0.1,-0.16]]
inflation_layer:
inflation_radius: 0.08
obstacle_layer:
max_obstacle_height: 0.80
map_type: costmap
@jackersson
jackersson / QRCode.msg
Last active Jul 1, 2020
Raspberry Ubuntu Installation
View QRCode.msg
Header header
string child_frame_id
uint32 id
geometry_msgs/PoseWithCovariance pose
View gstreamer_python_installation_output
---> pip install -U git+https://github.com/jackersson/gstreamer-python.git#egg=gstreamer-python -v
Created temporary directory: /tmp/pip-ephem-wheel-cache-3ym3nc1k
Created temporary directory: /tmp/pip-req-tracker-2clwxc17
Created requirements tracker '/tmp/pip-req-tracker-2clwxc17'
Created temporary directory: /tmp/pip-install-kwa_32rt
Collecting gstreamer-python
Cloning https://github.com/jackersson/gstreamer-python.git to /tmp/pip-install-kwa_32rt/gstreamer-python
Running command git clone -q https://github.com/jackersson/gstreamer-python.git /tmp/pip-install-kwa_32rt/gstreamer-python
Added gstreamer-python from git+https://github.com/jackersson/gstreamer-python.git#egg=gstreamer-python to build tracker '/tmp/pip-req-tracker-2clwxc17'