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
| Header header | |
| string child_frame_id | |
| uint32 id | |
| geometry_msgs/PoseWithCovariance pose |
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
| ---> 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' |
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 ubuntu:18.04 | |
| USER root | |
| RUN apt-get update && apt-get -y --no-install-recommends install \ | |
| sudo \ | |
| vim \ | |
| wget \ | |
| build-essential \ | |
| pkg-config |
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 ubuntu:18.04 | |
| USER root | |
| RUN apt-get update && apt-get -y --no-install-recommends install \ | |
| sudo \ | |
| vim \ | |
| wget \ | |
| build-essential \ | |
| pkg-config \ |
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 mlflow # import log_metric, log_param, log_artifact | |
| # https://www.youtube.com/watch?v=wb-ZxtIwSTA | |
| def exp(metric, param): | |
| mlflow.set_tracking_uri("http://mlflow:NJKbe21jk4e1@ec2-18-184-150-238.eu-central-1.compute.amazonaws.com/") | |
| exp_name = "smart-counter" | |
| mlflow.set_experiment(exp_name) | |
| with mlflow.start_run(nested=True): | |
| mlflow.log_param("param1", param) |
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
| sudo apt-get install --no-install-recommends -y \ | |
| build-essential pkg-config git \ | |
| sudo apt-get install --no-install-recommends -y \ | |
| gstreamer-1.0 gstreamer1.0-dev \ | |
| gstreamer1.0-tools \ | |
| gstreamer1.0-plugins-base \ | |
| gstreamer1.0-plugins-good \ | |
| gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly \ | |
| gstreamer1.0-libav \ |
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
| # After PyGObject (https://lazka.github.io/pgi-docs/) installed | |
| # > pip install PyGObject | |
| # Run current script to override Gstreamer related Scripts | |
| LIBPYTHONPATH="" | |
| PYTHON=/usr/bin/python3 | |
| GST_VERSION=1.14.1 | |
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 tensorflow as tf | |
| from spyglass.model import model_loader | |
| from sales_zone.tf_models import ObjectDetector | |
| def get_model_flops(model_cls, model_config: dict): | |
| with model_loader(model_cls, | |
| model_config=model_config) as model: | |
| graph = model._session.graph |
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
| class ColorPicker: | |
| def __init__(self, channels: int = 4): | |
| self._color_by_id = {} | |
| self._channels = channels | |
| def get(self, idx): | |
| if idx not in self._color_by_id: | |
| self._color_by_id[idx] = self._generate_color(channels=self._channels) |
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
| { | |
| "frame_offset": 1, | |
| "track_id": 1, | |
| "group_id": 1, | |
| "identity": { | |
| "name": "First-Last Name", | |
| "confidence": 0.9 | |
| }, |