Compare commits

...

3 Commits

Author SHA1 Message Date
Andrew Ma 198a599a69
Merge 2306a56340 into 446487a70c 2024-08-24 22:37:18 +08:00
Kenneth Estanislao 446487a70c
Update ui.py
Disable NSFW in accordance to github rules
2024-08-24 17:38:49 +08:00
Andrew Ma 2306a56340
Update README.md
changed directml to dml (directml doesn't work)
2024-08-22 10:14:55 -04:00
2 changed files with 4 additions and 4 deletions

View File

@ -107,7 +107,7 @@ pip install onnxruntime-directml==1.15.1
2. Usage in case the provider is available: 2. Usage in case the provider is available:
``` ```
python run.py --execution-provider directml python run.py --execution-provider dml
``` ```

View File

@ -90,9 +90,9 @@ def create_root(start: Callable[[], None], destroy: Callable[[], None]) -> ctk.C
many_faces_switch = ctk.CTkSwitch(root, text='Many faces', variable=many_faces_value, cursor='hand2', command=lambda: setattr(modules.globals, 'many_faces', many_faces_value.get())) many_faces_switch = ctk.CTkSwitch(root, text='Many faces', variable=many_faces_value, cursor='hand2', command=lambda: setattr(modules.globals, 'many_faces', many_faces_value.get()))
many_faces_switch.place(relx=0.6, rely=0.65) many_faces_switch.place(relx=0.6, rely=0.65)
nsfw_value = ctk.BooleanVar(value=modules.globals.nsfw_filter) # nsfw_value = ctk.BooleanVar(value=modules.globals.nsfw_filter)
nsfw_switch = ctk.CTkSwitch(root, text='NSFW filter', variable=nsfw_value, cursor='hand2', command=lambda: setattr(modules.globals, 'nsfw_filter', nsfw_value.get())) # nsfw_switch = ctk.CTkSwitch(root, text='NSFW filter', variable=nsfw_value, cursor='hand2', command=lambda: setattr(modules.globals, 'nsfw_filter', nsfw_value.get()))
nsfw_switch.place(relx=0.6, rely=0.7) # nsfw_switch.place(relx=0.6, rely=0.7)
start_button = ctk.CTkButton(root, text='Start', cursor='hand2', command=lambda: select_output_path(start)) start_button = ctk.CTkButton(root, text='Start', cursor='hand2', command=lambda: select_output_path(start))
start_button.place(relx=0.15, rely=0.80, relwidth=0.2, relheight=0.05) start_button.place(relx=0.15, rely=0.80, relwidth=0.2, relheight=0.05)