Skip to content

Instantly share code, notes, and snippets.

@mbencherif
mbencherif / nemo_asr_streaming.py
Created December 13, 2021 09:43 — forked from sunilpro/nemo_asr_streaming.py
Streaming ASR demo of NeMo with CPU backend (Mac OS)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import nemo, nemo_asr
from nemo_asr.helpers import post_process_predictions
import numpy as np
import pyaudio as pa
import time
# the checkpoints are available from NGC: https://ngc.nvidia.com/catalog/models/nvidia:quartznet15x5
@mbencherif
mbencherif / install-cuda-cudnn.md
Created October 12, 2019 07:23 — forked from matheustguimaraes/install-cuda-cudnn.md
Install CUDA 10.0 and cuDNN v7.4.2 on Ubuntu 16.04

Install CUDA 10.0 and cuDNN v7.4.2 on Ubuntu 16.04

Install the latest NVIDIA driver

Update and install the driver

sudo apt-get update
sudo apt install nvidia-410

Reboot

@mbencherif
mbencherif / ecc.py
Created June 28, 2019 23:07 — forked from bellbind/ecc.py
[python]basics of elliptic curve cryptography
# Basics of Elliptic Curve Cryptography implementation on Python
import collections
def inv(n, q):
"""div on PN modulo a/b mod q as a * inv(b, q) mod q
>>> assert n * inv(n, q) % q == 1
"""
for i in range(q):
if (n * i) % q == 1:
@mbencherif
mbencherif / AmericanSignLanguageRecognition.py
Created April 13, 2017 22:17 — forked from rikesh-subedi/AmericanSignLanguageRecognition.py
Here is a Python code to recognize American Sign Language alphabets using image comparision
import sys
import cv2
import numpy as np
from skimage.measure import compare_ssim as ssim
# fgbg = cv2.createBackgroundSubtractorMOG2()
p_capWebcam=cv2.VideoCapture(0)
letters = ["A", "B", "C", "D", "E"]
font = cv2.FONT_HERSHEY_SIMPLEX