|
## tested on an eddie interactive node |
|
qlogin -l h_rt=48:00:00 -pe gpu 1 -l h_vmem=32G |
|
|
|
## load conda on eddie (or else activate the environment whichever normal way you use if you're using your own computer!) |
|
module load anaconda |
|
source activate slptorch |
|
|
|
## binaries for opensmile 3.0 didn't work on eddie because the default it version 4.8 (too old) |
|
## to compile from source you need to use a later version of gcc and g++ |
|
## You can get newer versions of the compilers through conda, but you might not need to if you're |
|
## using a more up to date system. |
|
conda install gcc_linux-64 |
|
conda install gxx_linux-64 |
|
## make these the default C and C++ compilers |
|
alias gcc=x86_64-conda_cos6-linux-gnu-cc |
|
alias g++=x86_64-conda_cos6-linux-gnu-c++ |
|
|
|
## You need to install cmake to compile OpenSmile too |
|
conda install cmake |
|
|
|
## get the dependencies |
|
conda install -c conda-forge sox |
|
conda install pandas matplotlib scikit-learn h5py |
|
conda install nltk |
|
|
|
## clean up and remove downloaded packages (can save several GB!) |
|
conda clean --all |
|
|
|
## clone the repo in scratch space |
|
## WARNING: Files in this space get deleted after 1 month so you'll need to either backup to somewhere else regularly or |
|
## find another data staging solution |
|
cd /exports/eddie/scratch/clai |
|
|
|
## I'm cloning my fork of Roddy's original repo here. This has some updates to run on eddie and the maptask download script. |
|
## You can just fork my version rather than his, or browse the updates on github |
|
git clone https://github.com/laic/lstm_turn_taking_prediction.git |
|
|
|
## get the data |
|
cd lstm_turn_taking_prediction/data |
|
## You'll need to copy the following script (attached to this gist) into this directory |
|
## I couldn't get a new version from the maptask website |
|
## It basically downloads all the audio files for you |
|
sh maptaskBuild-93451-Tue-Jun-16-2020.wget.sh |
|
|
|
## Get the maptask annotations |
|
wget http://groups.inf.ed.ac.uk/maptask/hcrcmaptask.nxtformatv2-1.zip |
|
unzip hcrcmaptask.nxtformatv2-1.zip |
|
rm hcrcmaptask.nxtformatv2-1.zip |
|
cd .. |
|
|
|
## install opensmile |
|
cd utils |
|
git clone https://github.com/audeering/opensmile.git |
|
cd opensmile |
|
|
|
## Now run the build script |
|
./build.sh |
|
|
|
## The actual binary you need to use is: opensmile/build/progsrc/smilextract/SMILExtract |
|
## Let's copy it into a bin directory |
|
mkdir bin |
|
cp build/progsrc/smilextract/SMILExtract bin |
|
|
|
## test if it works: this should show some help info |
|
./bin/SMILExtract -h |
|
|
|
## So you'll need to check that the version used in the scripts/extract_gemaps.py to that location |
|
## back in the top level directory lstm_turn_taking_prediction |
|
cd ../.. |
|
|
|
## make a backup of the opensmile config files |
|
mv utils/opensmile/config utils/opensmile/config_orig |
|
|
|
## copy over Roddy's version |
|
cp -r utils/config utils/opensmile |
|
|