forked from basujindal/stable-diffusion
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgui.py
More file actions
19 lines (16 loc) · 730 Bytes
/
gui.py
File metadata and controls
19 lines (16 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import os
import sys
import utils
from colorama import init, Fore
import pyinputplus as pyip
def main():
init()
os.system('CLS')
print(f'{Fore.YELLOW}Read up on the documentation at https://github.com/philparzer/stable-diffusion-for-dummies#readme if you have any troubles\n{Fore.WHITE}')
print(f'{Fore.BLUE}')
response = pyip.inputMenu(['txt2img', 'img2img'], numbered=True)
print(f'{Fore.GREEN}Starting graphical user interface for {response}')
print(f'{Fore.WHITE}(ALT + left click on the link "Running on local URL: {Fore.YELLOW}<URL>{Fore.WHITE}" in the console as soon as the model has loaded)\n')
os.system(f'python optimizedSD/{response}_gradio.py')
if __name__ == "__main__":
main()