Skip to content

Instantly share code, notes, and snippets.

@kiselecheck
kiselecheck / MoisesDB.py
Last active November 21, 2024 20:23
MoisesDB_converter
import os
import soundfile as sf
import numpy as np
from tqdm import tqdm
def combine_audio_files(files: list[str]) -> tuple[np.ndarray, int]:
"""
Combines multiple audio files into one by overlaying them.
Parameters:
@denguir
denguir / cuda_install.md
Last active May 16, 2025 10:35
Installation procedure for CUDA / cuDNN / TensorRT

How to install CUDA / cuDNN / TensorRT on Ubuntu

Install NVIDIA drivers

Update & upgrade

sudo apt update && sudo apt upgrade

Remove previous NVIDIA installation

@danielef
danielef / nvidia-drivers-reinstall.md
Last active October 21, 2024 16:09
nvidia drivers reinstall for Ubuntu 20.04

nvidia drivers reinstall for Ubuntu 20.04

  1. Login as root
sudo -s
  1. Purge all nvidia packages:
apt-get purge *nvidia*
apt autoremove
@flyyufelix
flyyufelix / readme.md
Last active November 16, 2021 00:09
Resnet-101 pre-trained model in Keras

ResNet-101 in Keras

This is an Keras implementation of ResNet-101 with ImageNet pre-trained weights. I converted the weights from Caffe provided by the authors of the paper. The implementation supports both Theano and TensorFlow backends. Just in case you are curious about how the conversion is done, you can visit my blog post for more details.

ResNet Paper:

Deep Residual Learning for Image Recognition.
Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun
arXiv:1512.03385
@flyyufelix
flyyufelix / readme.md
Last active August 5, 2022 15:20
Resnet-152 pre-trained model in Keras

ResNet-152 in Keras

This is an Keras implementation of ResNet-152 with ImageNet pre-trained weights. I converted the weights from Caffe provided by the authors of the paper. The implementation supports both Theano and TensorFlow backends. Just in case you are curious about how the conversion is done, you can visit my blog post for more details.

ResNet Paper:

Deep Residual Learning for Image Recognition.
Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun
arXiv:1512.03385
@mdonkers
mdonkers / server.py
Last active May 20, 2025 10:59
Simple Python 3 HTTP server for logging all GET and POST requests
#!/usr/bin/env python3
"""
License: MIT License
Copyright (c) 2023 Miel Donkers
Very simple HTTP server in python for logging requests
Usage::
./server.py [<port>]
"""
from http.server import BaseHTTPRequestHandler, HTTPServer
@hans
hans / cudnn_softmax.cu
Last active August 2, 2021 00:23
Example of CuDNN softmax usage
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <cudnn.h>
/**
* Verified correctness with cuDNN 6.5-R1.
*
* Author: Jon Gauthier <[email protected]>