Changeset 36014 for main/trunk


Ignore:
Timestamp:
2022-01-17T23:02:19+13:00 (2 years ago)
Author:
davidb
Message:

Script extended to include an additional stage: one where musicbrainz id are retrieved using chromaprint via AcoustID

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/prepare/07b-GENERATE-ESSENTIA-FEATURES-DATA.sh

    r35961 r36014  
    66
    77
    8 stages_to_run="scrape_contestants|download_audio|compute_audio_features"
     8stages_to_run="scrape_contestants|download_audio|compute_audio_features|retrieve_musicbrainzid"
    99
    1010if [ $# -ge 1 ] ; then
     
    1515run_download=`echo $stages_to_run | grep download_audio         | wc -l`
    1616run_compute=`echo $stages_to_run  | grep compute_audio_features | wc -l`
     17run_acousticid=`echo $stages_to_run  | grep retrieve_musicbrainzid | wc -l`
    1718
    1819echo ""
     
    2122echo "  download_audio         : $run_download"
    2223echo "  compute_audio_features : $run_compute"
     24echo "  retrieve_musicbrainzid : $run_acousticid"
    2325
    2426echo ""
     
    131133fi
    132134
     135run_compute_status=0
    133136if [ $run_download_status = 0 ] && [ $run_compute = "1" ] ; then
    134137    cd "$prep_dir" \
    135     && python3 -u ./audio_features.py $* \
    136     && cd ..
     138    && python3 -u ./audio_features.py $*
     139    run_download_status=$?
     140    cd ..
     141fi
     142
     143if [ $run_compute_status = 0 ] && [ $run_acousticid = "1" ] ; then
     144    cd "$prep_dir" \
     145    && python3 -u ./acousticbrainz_id.py $*
     146    run_retrieve_status=$?
     147    cd ..
    137148fi
    138149
Note: See TracChangeset for help on using the changeset viewer.