Skip to content

Instantly share code, notes, and snippets.

View aFewThings's full-sized avatar
🖐️

EunBeen Kim aFewThings

🖐️
  • Multimedia Information Lab.
  • South Korea
  • 17:04 (UTC +09:00)
View GitHub Profile
@aFewThings
aFewThings / cuda_11.8_installation_on_Ubuntu_22.04
Created March 15, 2024 03:33 — forked from agentcoops/cuda_11.8_installation_on_Ubuntu_22.04
Instructions for CUDA v11.8 and cuDNN 8.7 installation on (wsl) Ubuntu 22.04 for PyTorch 2.0.0
#!/bin/bash
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
###
### to verify your gpu is cuda enable check
@aFewThings
aFewThings / compare_melspectrogram.py
Last active January 13, 2024 09:28 — forked from mthrok/compare_mel_filterbank.py
Compare mel spectrograms of torchaudio and librosa
import librosa
import matplotlib.pyplot as plt
import torch
from torchaudio.transforms import MelSpectrogram
n_fft = 2048
win_len = None
hop_len = 512
n_mels = 128