Skip to content

Instantly share code, notes, and snippets.

View samxu29's full-sized avatar
:octocat:
trying to exit vim

Sam Xu samxu29

:octocat:
trying to exit vim
View GitHub Profile
@samxu29
samxu29 / omz_plugin.sh
Created January 19, 2025 04:35
install zsh omz and basic plugins
#!/bin/bash
# Detect package manager
if command -v dnf &> /dev/null; then
# Fedora/RHEL based
sudo dnf install -y zsh curl git
elif command -v apt &> /dev/null; then
# Debian/Ubuntu based
sudo apt update
sudo apt install -y zsh curl git
@samxu29
samxu29 / ctld.yaml
Last active December 8, 2023 20:35
edgetpu-yolov5 detect script w/ fps counter during inference.
# Classes
nc: 8 # number of classes
names: [
'Red',
'RedLeft',
'Yellow',
'YellowLeft',
'Green',
'GreenLeft',
'False',
@samxu29
samxu29 / detect_fps.py
Last active November 29, 2023 06:31
Ultralytics YOLOv5 detect script w/ fps counter during inference.
# YOLOv5 🚀 by Ultralytics, AGPL-3.0 license
"""
Run YOLOv5 detection inference on images, videos, directories, globs, YouTube, webcam, streams, etc.
Usage - sources:
$ python detect.py --weights yolov5s.pt --source 0 # webcam
img.jpg # image
vid.mp4 # video
screen # screenshot
path/ # directory