This commit is contained in:
goddamnVincent 2024-11-27 13:34:59 +08:00
parent 51efa14f33
commit 9b8305264f
6 changed files with 57 additions and 21 deletions

3
.idea/.gitignore generated vendored
View File

@ -1,3 +0,0 @@
# Default ignored files
/shelf/
/workspace.xml

7
.idea/icefall.iml generated
View File

@ -1,10 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4"> <module version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="PyDocumentationSettings"> <component name="PyDocumentationSettings">
<option name="format" value="PLAIN" /> <option name="format" value="PLAIN" />
<option name="myDocStringFormat" value="Plain" /> <option name="myDocStringFormat" value="Plain" />

8
.idea/modules.xml generated
View File

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/icefall.iml" filepath="$PROJECT_DIR$/.idea/icefall.iml" />
</modules>
</component>
</project>

52
.idea/workspace.xml generated Normal file
View File

@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="d6ad0922-c456-46d9-87be-d7aa462bc482" name="Changes" comment="">
<change beforePath="$PROJECT_DIR$/.idea/.gitignore" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/icefall.iml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/icefall.iml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/modules.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/egs/multi_zh-hans/ASR/local/compute_fbank_kespeech_dev_test.py" beforeDir="false" afterPath="$PROJECT_DIR$/egs/multi_zh-hans/ASR/local/compute_fbank_kespeech_dev_test.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/egs/multi_zh-hans/ASR/local/compute_fbank_kespeech_splits.py" beforeDir="false" afterPath="$PROJECT_DIR$/egs/multi_zh-hans/ASR/local/compute_fbank_kespeech_splits.py" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="ProjectColorInfo"><![CDATA[{
"customColor": "",
"associatedIndex": 0
}]]></component>
<component name="ProjectId" id="2pQ5oxvlsWn1O44ZGruRClpMhsa" />
<component name="ProjectViewState">
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent"><![CDATA[{
"keyToString": {
"RunOnceActivity.ShowReadmeOnStart": "true",
"git-widget-placeholder": "modified"
}
}]]></component>
<component name="SharedIndexes">
<attachedChunks>
<set>
<option value="bundled-python-sdk-5b207ade9991-746f403e7f0c-com.jetbrains.pycharm.community.sharedIndexes.bundled-PC-241.17890.14" />
</set>
</attachedChunks>
</component>
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="d6ad0922-c456-46d9-87be-d7aa462bc482" name="Changes" comment="" />
<created>1732685638909</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1732685638909</updated>
</task>
<servers />
</component>
</project>

View File

@ -52,7 +52,7 @@ def get_parser():
default=80, default=80,
help="""The number of mel bins for Fbank""", help="""The number of mel bins for Fbank""",
) )
# 修改: 添加 指定参数 speed-perturb
parser.add_argument( parser.add_argument(
"--speed-perturb", "--speed-perturb",
type=bool, type=bool,
@ -109,7 +109,7 @@ def compute_fbank_kespeech_dev_test(args):
cut_set = cut_set.trim_to_supervisions( cut_set = cut_set.trim_to_supervisions(
keep_overlapping=False, min_duration=None keep_overlapping=False, min_duration=None
) )
# 修改 执行 perturb操作
if speed_perturb: if speed_perturb:
cut_set = ( cut_set = (
cut_set + cut_set.perturb_speed(0.9) + cut_set.perturb_speed(1.1) cut_set + cut_set.perturb_speed(0.9) + cut_set.perturb_speed(1.1)

View File

@ -106,7 +106,7 @@ def get_parser():
default=False, default=False,
help="Use WhisperFbank instead of Fbank. Default: False.", help="Use WhisperFbank instead of Fbank. Default: False.",
) )
#修改: 添加 指定参数 speed-perturb
parser.add_argument( parser.add_argument(
"--speed-perturb", "--speed-perturb",
type=bool, type=bool,
@ -170,7 +170,7 @@ def compute_fbank_kespeech_splits(args):
cut_set = cut_set.trim_to_supervisions( cut_set = cut_set.trim_to_supervisions(
keep_overlapping=False, min_duration=None keep_overlapping=False, min_duration=None
) )
# 修改 执行 perturb操作
if speed_perturb: if speed_perturb:
cut_set = ( cut_set = (
cut_set + cut_set.perturb_speed(0.9) + cut_set.perturb_speed(1.1) cut_set + cut_set.perturb_speed(0.9) + cut_set.perturb_speed(1.1)