Skip to content

Instantly share code, notes, and snippets.

@thakkarV
Created June 23, 2018 22:17
Show Gist options
  • Save thakkarV/1367c2d7af8eb027125896a8d12b9650 to your computer and use it in GitHub Desktop.
Save thakkarV/1367c2d7af8eb027125896a8d12b9650 to your computer and use it in GitHub Desktop.
LC Wavenet Audio Generator script
#!/bin/bash -l
# Generates from the local conditioning WaveNet model
# PROJECT NAME
#$ -P textconv
# JOB TIME
#$ -l h_rt=48:00:00
# SEND EMAIL BY DEFAULT
#$ -m beas
# JOB NAME
#$ -N G_lcfix
# TOTAL CPU CORES
#$ -pe omp 4
# TOTAL MEMORY
#$ -l mem_total=32G
# TOTAL GPUS
#$ -l gpus=0.25
# GPU COMPUTE CAPABILITY
#$ -l gpu_c=3.5
# LOAD SOFTWARE MODULES
module load cuda/8.0
module load cudnn/6.0
module load python/2.7.13
module load tensorflow/r1.6
CHECKPOINT=$(ls ./logs | sort --version-sort --field-separator=- | grep .meta | tail -1 | grep -o "[0-9]*")
DIR=$(pwd)
# EXECUTION LINE
python $(DIR)/generate.py \
--checkpoint=$(DIR)/logs/model.ckpt-$(CHECKPOINT) \
--samples=336000 \
--wav-out-path=$(DIR)/hbd_$(CHECKPOINT).wav \
--lc-channels=16 \
--lc-filepath=/projectnb/textconv/LCWaveNet/Timeseries/happy_birthday.mid \
--lc-fileformat=*.mid \
--initial-lc-channels=128 \
--wavenet-params=$(DIR)/lc_wavenet_params.json \
--logdir=$(DIR)/logs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment