Skip to content

Commit

Permalink
fix README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ccdesue committed Jan 12, 2023
1 parent 2cf4125 commit 2b40069
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
12 changes: 11 additions & 1 deletion dml/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
a simple gui wrapper for onnxruntime ep DirectMl on windows platform
a simple gui wrapper for onnxruntime ep DirectMl on windows platform


```pwsh
set PYTHONOPTIMIZE=2
pyinstaller.exe `
--path \path\to\app `
.\main.py -n vits_directml
```
5 changes: 3 additions & 2 deletions dml/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def update_model_status(window: sg.Window):
[sg.Input(key="dir_info", enable_events=True), sg.FolderBrowse(
key="select_dir")],
[sg.Button(button_text="load", key="load"), sg.Button(button_text="load default model from Internet"),
sg.Text("default model has ~110M"),
sg.Text("default model has ~110M", key="desc_model"),
sg.Text("", visible=False, key="df_model_status")],
[sg.ProgressBar(key="download_progress", orientation="h", size=(20, 20), visible=False, max_value=100,
bar_color=('green', 'white')), sg.Text("status: ", key="model_status", visible=False)],
Expand Down Expand Up @@ -149,7 +149,7 @@ def update_model_status(window: sg.Window):


elif event == 'load default model from Internet':

window["desc_model"].update(visible=False)
default_dir = pathlib.Path(__file__).parent / ".model"
default_dir.mkdir(exist_ok=True, parents=True)

Expand Down Expand Up @@ -190,6 +190,7 @@ def update_model_status(window: sg.Window):
Config.last_save_dir = Path(f_path).parent
Config.seg.export(f_path, format="wav")
elif event == "load":
window["desc_model"].update(visible=False)
Config.model_dir_path = Path(values['dir_info'])
window.start_thread(lambda: window.write_event_value("-init_msg-", Config.init(Config.model_dir_path)),
('-init-', '-init_end-'))
Expand Down
1 change: 1 addition & 0 deletions gr/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gradio web demo use raw onnxruntime

0 comments on commit 2b40069

Please sign in to comment.