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 pymavlink import mavextra | |
| import math | |
| import numpy as np | |
| import typing as typ | |
| # a threshold that indicates that latitude between the two image centers | |
| # is significantly different | |
| LATITUDE_CHANGE_THRESHOLD = 1e-4 | |
| # for the reference geoid used by OpenStreetMap |
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
| ARG BASE_IMAGE=nvidia/cudagl:10.0-devel-ubuntu18.04 | |
| FROM $BASE_IMAGE | |
| # NVIDIA packages workaround. | |
| # Reason: https://forums.developer.nvidia.com/t/notice-cuda-linux-repository-key-rotation/212772 | |
| COPY cuda-keyring_1.0-1_all.deb . | |
| RUN apt-key del 7fa2af80 | |
| RUN rm /etc/apt/sources.list.d/cuda.list && rm /etc/apt/sources.list.d/nvidia-ml.list | |
| RUN dpkg -i cuda-keyring_1.0-1_all.deb |
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
| &&&& 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 |
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
| 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 |
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
| 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] |
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 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") |
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 | |
| 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 |
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
| name: "ResNet-10" | |
| input: "data" | |
| input_shape { | |
| dim: 1 | |
| dim: 3 | |
| dim: 272 | |
| dim: 480 | |
| } | |
| layer { | |
| bottom: "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
| name: "ResNet-18" | |
| layer { | |
| name: "data" | |
| type: "Input" | |
| top: "data" | |
| input_param { shape: { dim: 1 dim: 3 dim: 224 dim: 224 } } | |
| } | |
| layer { | |
| bottom: "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
| 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 | |
NewerOlder