This file contains 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/sh | |
wget https://github.com/derailed/k9s/releases/download/v0.26.7/k9s_Linux_x86_64.tar.gz | |
tar -xf k9s_Linux_x86_64.tar.gz | |
sudo mv k9s /usr/bin/ | |
rm k9s_Linux_x86_64.tar.gz | |
# install kubectl | |
sudo apt-get update && sudo apt-get install -y apt-transport-https | |
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - |
This file contains 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 torch | |
from PIL import Image | |
import torch.nn.functional as F | |
from torchvision import transforms as T | |
# ! python classify/predict.py --weights yolov5s-cls.pt --source https://thumbs.dreamstime.com/z/motorcycle-helmet-22053909.jpg --save-txt | |
model = torch.hub.load('ultralytics/yolov5', 'custom', 'yolov5s-cls.pt') | |
IMAGENET_MEAN = 0.485, 0.456, 0.406 |
This file contains 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
#!/usr/bin/env bash | |
# Small shell script to more easily automatically download and transcribe live stream VODs. | |
# This uses YT-DLP, ffmpeg and the CPP version of Whisper: https://github.com/ggerganov/whisper.cpp | |
# Use `./transcribe-vod help` to print help info. | |
# MIT License | |
# Copyright (c) 2022 Daniils Petrovs |