Skip to content

Instantly share code, notes, and snippets.

View iamblue's full-sized avatar

Blue Chen iamblue

View GitHub Profile
@samuel-davis
samuel-davis / Convert Tensorflow SavedModel to WebModel for TF-JS
Last active May 7, 2021 02:49
Convert a Tensorflow Object Detection SavedModel to a Web Model For TensorflowJS
#Currently within the Tensorflow ecosystem there is a ton of confusing similar words.
#Maybe this is because of my own understanding and is not due to their naming.
#Regardless I struggled making this work, so I #figured I would write a Gist.
# Firstly we are trying to convert a previously created Tensorflow frozen graph or checkpoint files.
# Specifically I wanted to #convert some of the Tensorflow Object Detection API models.
# We already have a SavedModel in the download from the object detection model zoo.
# If you need to get a SavedModel from your own trained Object Detection Model, you will need to export it using the script
# provided by the object_detection module. The python script is called exporter. It is not that well documented, but if you
@artificialsoph
artificialsoph / Audio Recognition Keras.ipynb
Last active May 1, 2019 14:50
Audio Recognition in Keras
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/* Copyright (c) 2017 Mozilla */
/* Copyright (c) 2017 Jan Weiß */
/*
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
- Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
@nickkraakman
nickkraakman / ffmpeg-cheatsheet.md
Last active June 10, 2026 14:33
FFmpeg cheat sheet for 360 video

FFmpeg Cheat Sheet for 360º video

Brought to you by Headjack

 
FFmpeg is one of the most powerful tools for video transcoding and manipulation, but it's fairly complex and confusing to use. That's why I decided to create this cheat sheet which shows some of the most often used commands.

 
Let's start with some basics:

  • ffmpeg calls the FFmpeg application in the command line window, could also be the full path to the FFmpeg binary or .exe file
@vsubhashini
vsubhashini / readme.md
Last active January 24, 2023 21:43
Sequence to Sequence - Video to Text (S2VT)
@laziel
laziel / unlock.js
Created September 18, 2015 09:02
Unlock Web Audio in iOS 9 Safari
var ctx = null, usingWebAudio = true;
try {
if (typeof AudioContext !== 'undefined') {
ctx = new AudioContext();
} else if (typeof webkitAudioContext !== 'undefined') {
ctx = new webkitAudioContext();
} else {
usingWebAudio = false;
}
@huafu
huafu / gist:b34ad7062dc7f09cd80b
Created June 16, 2015 01:32
Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter not recognized as a wifi card in OpenWrt 15.05-r2 on a RaspBerry B+

I have a fresh install of OpenWrt 15.05-rc2 on a RaspBerry B+

root@bnh-traveller:~# uname -a
Linux bnh-traveller 3.18.11 #1 Mon May 18 21:56:20 CEST 2015 armv6l GNU/Linux

I have already installed required packages with success

root@bnh-traveller:~# opkg install kmod-rt2800-lib kmod-rt2800-usb kmod-rt2x00-lib kmod-rt2x00-usb  
Package kmod-rt2800-lib (3.18.14+2015-03-09-3) installed in root is up to date.
@plntyk
plntyk / libgphoto2-oldpackages.patch
Created April 14, 2015 11:51
libgphoto2: update to 2.5.7
libgphoto2: update to 2.5.7
compile tested only
Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
---
libs/libgphoto2/Makefile | 8 +-
libs/libgphoto2/patches/001-automake-compat.patch | 51 +++++--------
.../002-no-tests-docs-examples-translations.patch | 86 ----------------------
3 files changed, 23 insertions(+), 122 deletions(-)
@plntyk
plntyk / gphoto2-oldpackages.patch
Created April 14, 2015 11:47
gphoto2_2.5.6_openwrt_oldpackages.patch
gphoto2: update to 2.5.6
compile tested only
Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
---
multimedia/gphoto2/Makefile | 4 +-
.../gphoto2/patches/001-automake-compat.patch | 81 +++++++++++++++++++++-
.../patches/002-disable-docs-translations.patch | 45 ------------
3 files changed, 81 insertions(+), 49 deletions(-)
@allenwb
allenwb / 0Option2ConstructorSummary.md
Last active February 24, 2025 23:12
New ES6 constructor features and semantics: Alternative 2 manual super in derived classes

New ES6 Constructor Semantics and Usage Examples

Manual super: Alternative Design where subclass constructors do not automatically call superclass constructors

This Gist presents a new design of class-based object construction in ES6 that does not require use of the two-phase @@create protocol.

One of the characteristics of this proposal is that subclass constructors must explicitly super invoke their superclass's constructor if they wish to use the base class' object allocation and initialization logic.

An alternative version of this design automatically invokes the base constructor in most situations.