Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.
![Screenshot 2023-12-18 at 10 40 27 PM](https://private-user-images.githubusercontent.com/3837836/291468646-4c30ad72-76ee-4939-a5fb-16b570d38cf2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgzNzgxMzQsIm5iZiI6MTcxODM3NzgzNCwicGF0aCI6Ii8zODM3ODM2LzI5MTQ2ODY0Ni00YzMwYWQ3Mi03NmVlLTQ5MzktYTVmYi0xNmI1NzBkMzhjZjIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYxNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MTRUMTUxMDM0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NDg0NGFhY2YwYjc5MjVmNGYwNzI2Njc3YzNjNjI3ZjJlMDQyZmMzZTNjMTdmODI1MmZlNmJhZjQ2MDQ1Y2IzYiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.YU9XsU7dHYo5MMiES57Qu8GrRTDhtxe6uRyAZurxzWA)
This guide was adapted from https://gist.github.com/niw/e4313b9c14e968764a52375da41b4278#running-ubuntu-server-for-arm64
import math | |
import typing | |
import torch | |
class StringArray: | |
def __init__(self, strings : typing.List[str], encoding : typing.Literal['ascii', 'utf_16_le', 'utf_32_le'] = 'utf_16_le'): | |
strings = list(strings) | |
self.encoding = encoding | |
self.multiplier = dict(ascii = 1, utf_16_le = 2, utf_32_le = 4)[encoding] | |
self.data = torch.ByteTensor(torch.ByteStorage.from_buffer(''.join(strings).encode(encoding))) |
########################################################################### | |
# | |
# | |
# This is a program to read thermal image data from the Seek PIR206 Thermal Camera | |
# This program is intended to be used with Raspberry Pi | |
# Pygame allows to output directly to framebuffer. | |
# Here I use small TFT display connected to GPIO and sending data to framebuffer fb1 for output to this display. | |
# I also use three simple GPIO buttons to have realtime control for image processing parameters | |
# This comes particularly useful e.g. when you use Seek at low temperature (you will need to lower down "lower threshold limit" |
#!/usr/bin/env python | |
# -*- coding: UTF-8 -*- | |
# Roughly based on: http://stackoverflow.com/questions/11443302/compiling-numpy-with-openblas-integration | |
from __future__ import print_function | |
import numpy as np | |
from time import time |