Skip to content

Instantly share code, notes, and snippets.

View nimaid's full-sized avatar

Ella Jameson nimaid

  • Tucson, AZ
View GitHub Profile
@nimaid
nimaid / video.py
Created February 19, 2023 08:15 — forked from tommy-mor/video.py
not good code stay away
from moviepy.editor import *
import numpy as np
clip = VideoFileClip("hams.mkv")
import sounddevice as sd
import soundfile as sf
from queue import Queue
from collections import OrderedDict
import pprint
pp = pprint.PrettyPrinter(indent=4)
print('started')
@nimaid
nimaid / pb_pbtxt_converter.py
Last active March 6, 2023 08:12 — forked from arafatkatze/converter.py
Script to convert between .pb and .pbtxt files
#!/usr/bin/env python3
import argparse, os, pathlib, sys
def file_path(string):
if os.path.isfile(string):
return string
else:
raise FileNotFoundError(string)
ap = argparse.ArgumentParser()
ap.add_argument("-i", "--input", type=file_path, required=True,