AAOBA commited on
Commit
f3e00ea
1 Parent(s): fba2a7c

updated info and default values

Browse files
.idea/inspectionProfiles/Project_Default.xml ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="PyPep8NamingInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
5
+ <option name="ignoredErrors">
6
+ <list>
7
+ <option value="N801" />
8
+ <option value="N806" />
9
+ <option value="N802" />
10
+ <option value="N803" />
11
+ </list>
12
+ </option>
13
+ </inspection_tool>
14
+ </profile>
15
+ </component>
.idea/inspectionProfiles/profiles_settings.xml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ <component name="InspectionProjectProfileManager">
2
+ <settings>
3
+ <option name="USE_PROJECT_PROFILE" value="false" />
4
+ <version value="1.0" />
5
+ </settings>
6
+ </component>
.idea/misc.xml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="PyCharmProfessionalAdvertiser">
4
+ <option name="shown" value="true" />
5
+ </component>
6
+ </project>
.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
.idea/workspace.xml ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="0a8b71eb-dee1-421b-9887-746d3011c8ae" name="更改" comment="">
5
+ <change beforePath="$PROJECT_DIR$/app.py" beforeDir="false" afterPath="$PROJECT_DIR$/app.py" afterDir="false" />
6
+ <change beforePath="$PROJECT_DIR$/text/japanese.py" beforeDir="false" afterPath="$PROJECT_DIR$/text/japanese.py" afterDir="false" />
7
+ <change beforePath="$PROJECT_DIR$/text/japanese_bert.py" beforeDir="false" afterPath="$PROJECT_DIR$/text/japanese_bert.py" afterDir="false" />
8
+ </list>
9
+ <option name="SHOW_DIALOG" value="false" />
10
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
11
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
12
+ <option name="LAST_RESOLUTION" value="IGNORE" />
13
+ </component>
14
+ <component name="Git.Settings">
15
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
16
+ </component>
17
+ <component name="ProjectId" id="2WwCDjCv4hxVRoQDejQZgjz3Z96" />
18
+ <component name="ProjectViewState">
19
+ <option name="hideEmptyMiddlePackages" value="true" />
20
+ <option name="showLibraryContents" value="true" />
21
+ </component>
22
+ <component name="PropertiesComponent">
23
+ <property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
24
+ <property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
25
+ <property name="last_opened_file_path" value="$PROJECT_DIR$" />
26
+ </component>
27
+ <component name="RunManager">
28
+ <configuration name="app" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
29
+ <module name="Umamusume-DeBERTa-VITS2-TTS-JP" />
30
+ <option name="INTERPRETER_OPTIONS" value="" />
31
+ <option name="PARENT_ENVS" value="true" />
32
+ <envs>
33
+ <env name="PYTHONUNBUFFERED" value="1" />
34
+ </envs>
35
+ <option name="SDK_HOME" value="C:\Users\25749\AppData\Local\Programs\Python\Python39\python.exe" />
36
+ <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
37
+ <option name="IS_MODULE_SDK" value="false" />
38
+ <option name="ADD_CONTENT_ROOTS" value="true" />
39
+ <option name="ADD_SOURCE_ROOTS" value="true" />
40
+ <option name="SCRIPT_NAME" value="$PROJECT_DIR$/app.py" />
41
+ <option name="PARAMETERS" value="" />
42
+ <option name="SHOW_COMMAND_LINE" value="false" />
43
+ <option name="EMULATE_TERMINAL" value="false" />
44
+ <option name="MODULE_MODE" value="false" />
45
+ <option name="REDIRECT_INPUT" value="false" />
46
+ <option name="INPUT_FILE" value="" />
47
+ <method v="2" />
48
+ </configuration>
49
+ <recent_temporary>
50
+ <list>
51
+ <item itemvalue="Python.app" />
52
+ </list>
53
+ </recent_temporary>
54
+ </component>
55
+ <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="应用程序级" UseSingleDictionary="true" transferred="true" />
56
+ <component name="TaskManager">
57
+ <task active="true" id="Default" summary="默认任务">
58
+ <changelist id="0a8b71eb-dee1-421b-9887-746d3011c8ae" name="更改" comment="" />
59
+ <created>1697634137773</created>
60
+ <option name="number" value="Default" />
61
+ <option name="presentableId" value="Default" />
62
+ <updated>1697634137773</updated>
63
+ </task>
64
+ <servers />
65
+ </component>
66
+ </project>
app.py CHANGED
@@ -192,7 +192,7 @@ if __name__ == "__main__":
192
  choices=speakers, value=speakers[0], label="Speaker"
193
  )
194
  sdp_ratio = gr.Slider(
195
- minimum=0, maximum=1, value=0.3, step=0.05, label="SDP Ratio (个人认为更大的SDP Ratio会产生\"感情更强烈的\"语音) (I personally believe that a larger SDP Ratio will make the generated voice \"emotionally stronger\")"
196
  )
197
  noise_scale = gr.Slider(
198
  minimum=0.1, maximum=2, value=0.6, step=0.05, label="Noise Scale"
 
192
  choices=speakers, value=speakers[0], label="Speaker"
193
  )
194
  sdp_ratio = gr.Slider(
195
+ minimum=0, maximum=1, value=0.2, step=0.05, label="SDP Ratio (个人认为更大的SDP Ratio会产生\"感情更强烈的\"语音) (I personally believe that a larger SDP Ratio will make the generated voice \"emotionally stronger\")"
196
  )
197
  noise_scale = gr.Slider(
198
  minimum=0.1, maximum=2, value=0.6, step=0.05, label="Noise Scale"
info.md CHANGED
@@ -50,7 +50,7 @@
50
 
51
  ❤ Thanks to **SUSTech Center for Computational Science and Engineering**. ❤ This model is trained on A100 (40GB) x 2 with **batch size 32** in total.
52
 
53
- 💪 This model has been trained for **1 cycle, 90K steps (=60 epoch),** currently. 💪
54
 
55
  📕 This work uses linear with warmup **(7.5% of total steps)** LR scheduler with ` max_lr=1e-4`. 📕
56
 
 
50
 
51
  ❤ Thanks to **SUSTech Center for Computational Science and Engineering**. ❤ This model is trained on A100 (40GB) x 2 with **batch size 32** in total.
52
 
53
+ 💪 This model has been trained for **1 cycle, 180K steps (=120 epoch),** currently. 💪
54
 
55
  📕 This work uses linear with warmup **(7.5% of total steps)** LR scheduler with ` max_lr=1e-4`. 📕
56
 
text/japanese.py CHANGED
@@ -640,6 +640,7 @@ def distribute_phone(n_phone, n_word):
640
 
641
 
642
  tokenizer = AutoTokenizer.from_pretrained("ku-nlp/deberta-v2-base-japanese")
 
643
 
644
 
645
  def g2p(norm_text):
@@ -666,6 +667,7 @@ def g2p(norm_text):
666
 
667
  if __name__ == "__main__":
668
  tokenizer = AutoTokenizer.from_pretrained("ku-nlp/deberta-v2-base-japanese")
 
669
  text = "張り切って行こう"
670
  from text.japanese_bert import get_bert_feature
671
 
 
640
 
641
 
642
  tokenizer = AutoTokenizer.from_pretrained("ku-nlp/deberta-v2-base-japanese")
643
+ # tokenizer = AutoTokenizer.from_pretrained("ku-nlp/deberta-v2-base-japanese-with-auto-jumanpp")
644
 
645
 
646
  def g2p(norm_text):
 
667
 
668
  if __name__ == "__main__":
669
  tokenizer = AutoTokenizer.from_pretrained("ku-nlp/deberta-v2-base-japanese")
670
+ # tokenizer = AutoTokenizer.from_pretrained("ku-nlp/deberta-v2-base-japanese-with-auto-jumanpp")
671
  text = "張り切って行こう"
672
  from text.japanese_bert import get_bert_feature
673
 
text/japanese_bert.py CHANGED
@@ -4,6 +4,7 @@ import sys
4
  from text.japanese import text2sep_kata
5
 
6
  tokenizer = AutoTokenizer.from_pretrained("ku-nlp/deberta-v2-base-japanese")
 
7
 
8
  models = dict()
9
 
@@ -28,6 +29,7 @@ def get_bert_feature_with_token(tokens, word2ph, device=None):
28
  if device not in models.keys():
29
  models[device] = AutoModelForMaskedLM.from_pretrained(
30
  "ku-nlp/deberta-v2-base-japanese"
 
31
  ).to(device)
32
  with torch.no_grad():
33
  inputs = torch.tensor(tokens).to(device).unsqueeze(0)
 
4
  from text.japanese import text2sep_kata
5
 
6
  tokenizer = AutoTokenizer.from_pretrained("ku-nlp/deberta-v2-base-japanese")
7
+ # tokenizer = AutoTokenizer.from_pretrained("ku-nlp/deberta-v2-base-japanese-with-auto-jumanpp")
8
 
9
  models = dict()
10
 
 
29
  if device not in models.keys():
30
  models[device] = AutoModelForMaskedLM.from_pretrained(
31
  "ku-nlp/deberta-v2-base-japanese"
32
+ # "ku-nlp/deberta-v2-base-japanese-with-auto-jumanpp"
33
  ).to(device)
34
  with torch.no_grad():
35
  inputs = torch.tensor(tokens).to(device).unsqueeze(0)