Add support for finding the train_ds.py file in site-packages

This commit is contained in:
J. Dale 2025-06-10 11:30:01 -04:00
parent 8bfeb30514
commit eeec6bb8f2

View File

@ -43,7 +43,6 @@ DISTRIBUTED_ARGS="
echo $DISTRIBUTED_ARGS
# funasr trainer path
train_tool=
if [ -f `dirname $(which funasr)`/train_ds.py ]; then
train_tool=`dirname $(which funasr)`/train_ds.py
elif [ -f `dirname $(which funasr)`/../lib/python*/site-packages/funasr/bin/train_ds.py ]; then