cyz commited on
Commit
72b52b0
1 Parent(s): d1df605

FIX: 修复下载解压完成LibriTTS数据时,生成.complete文件失败,这导致每次执行download_and_untar.sh时都要重新下载数据。

Browse files
examples/libritts/cosyvoice/local/download_and_untar.sh CHANGED
@@ -43,7 +43,7 @@ if [ -z "$url" ]; then
43
  exit 1
44
  fi
45
 
46
- if [ -f $data/LibriSpeech/$part/.complete ]; then
47
  echo "$0: data part $part was already successfully extracted, nothing to do."
48
  exit 0
49
  fi
@@ -87,7 +87,7 @@ if ! tar -C $data -xvzf $data/$part.tar.gz; then
87
  exit 1
88
  fi
89
 
90
- touch $data/LibriSpeech/$part/.complete
91
 
92
  echo "$0: Successfully downloaded and un-tarred $data/$part.tar.gz"
93
 
 
43
  exit 1
44
  fi
45
 
46
+ if [ -f $data/LibriTTS/$part/.complete ]; then
47
  echo "$0: data part $part was already successfully extracted, nothing to do."
48
  exit 0
49
  fi
 
87
  exit 1
88
  fi
89
 
90
+ touch $data/LibriTTS/$part/.complete
91
 
92
  echo "$0: Successfully downloaded and un-tarred $data/$part.tar.gz"
93