Skip to content

Commit

Permalink
fixed bugs (#49)
Browse files Browse the repository at this point in the history
* Delete egs_new.py

* Delete lr_scheduler_new.py

* Delete trainer_new.py

* Update trainer_online.py

* Update runEcapaXvector_online.py

* Update plda_base.py

* Update scoreSets.sh

* Update extract_embeddings_new.py

* Update README.md
  • Loading branch information
sssyousen authored Aug 1, 2022
1 parent bf318ad commit cc36fbc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Of course, this data pipeline could be also followed to know the basic principle
</br>

### Update Pipeline
- **20220707**
- **[20220707](https://mp.weixin.qq.com/s/L1TJdZdUyE1OruqcNOJy8Q)**
+ Online Datasets is implemented (Including online feature extracting, online VAD, online augmentation and online x-vector extracting)
+ Supporting mixed precision training.
+ Runtime module for exporting jit model.
Expand Down
2 changes: 1 addition & 1 deletion pytorch/pipeline/onestep/extract_embeddings_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import libs.support.kaldi_io as kaldi_io
import libs.support.kaldi_common as kaldi_common

from libs.egs.egs_new import WavEgsXvector
from libs.egs.egs_online import WavEgsXvector
torchaudio_backend = utils.get_torchaudio_backend()
torchaudio.set_audio_backend(torchaudio_backend)
# Parse
Expand Down
4 changes: 2 additions & 2 deletions scoreSets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ for set in $(echo $allsets | sed 's/ /\n/g' | sed '/^$/d' | sort -u);do
errorNum=0
logNum=0
[ -d $vectordir/$set/log ] && logNum=$(find $vectordir/$set/log/ -name "extract.*.log" | wc -l)
[[ "$logNum" -gt 0 ]] && errorNum=$(grep ERROR $vectordir/$set/log/*.log | wc -l)
[[ "$errorNum" -gt 0 ]] && echo "There are some ERRORS in $vectordir/$set/log/*.log and it means you lose many vectors which is so bad thing and I suggest you to extract vectors of this dataset again." && exit 1
[[ "$logNum" -gt 0 ]] && errorNum=$(grep ERROR $vectordir/$set/log/extract.*.log | wc -l)
[[ "$errorNum" -gt 0 ]] && echo "There are some ERRORS in $vectordir/$set/log/extract.*.log and it means you lose many vectors which is so bad thing and I suggest you to extract vectors of this dataset again." && exit 1
echo -e "name $set\ndata data/$prefix/$set\ndir $vectordir/$set\ninput $vectortype.scp" > $vectordir/$set/config
done

Expand Down

0 comments on commit cc36fbc

Please sign in to comment.