Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
"""
Multi-threaded download and conversion of Youtube videos to
audio files sampled at 16kHz.
Author:
- Francesco Paissan, 2023
To run the script, use:
THREADS=4 ./download_csv_mt.py {CSV_PATH} {OUTPUT_FOLDER}
@fpaissan
fpaissan / icassp_tf_model.py
Created March 9, 2022 09:48
PhiNet model used for SED in ICASSP2022
from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
import os
import warnings
import numpy as np
import tensorflow as tf
import keras.backend as K
@fpaissan
fpaissan / phi_net_source.py
Created July 22, 2021 13:12
Tensorflow code for PhiNets - F. Paissan, A. Ancilotto, E. Farella.
from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
import os
import warnings
import numpy as np
import tensorflow as tf
import keras.backend as K