Fixes#1522, #1604, #1453
LDSR changes in 0c03cedeb9 don't always
set the session_state keys depending on which combination of post
processing models are installed.
Resolves errors such as
`KeyError: 'st.session_state has no key "use_LDSR"`
`KeyError: 'st.session_state has no key "GFPGAN_model"`
sd_utils changes set these values to defaults when available check fails
The other changes prevent errors if LDSR is installed without RealESRGAN
eg:
`File "scripts\txt2vid.py", line 1788, in layout
index=upscaling_method_list.index(st.session_state['defaults'].general.upscaling_method))
ValueError: 'RealESRGAN' is not in list`
# Description
as above. in case your grandma wants to use it.
# Checklist:
- [x] I have changed the base branch to `dev`
- [x] I have performed a self-review of my own code
- [x] I have commented my code in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
# Description
Added a config cell for the Colab instance. Now it can pre-fetch models.
Folder on Google drive can be specified. If models are found there, they
will be symlinked instead of downloaded. Any models found in folder, but
not in download list, will be symlinked to models/custom. Also added
comments to code and titles to cells.
Should just be able to enter settings in first cell, then hit 'run all'.
Well... twice.
# Checklist:
- [x] I have changed the base branch to `dev`
- [x] I have performed a self-review of my own code
- [x] I have commented my code in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
Added a config cell for the Colab instance. Now it can pre-fetch models. Folder on Google drive can be specified. If models are found there, they will be symlinked instead of downloaded. Any models found in folder, but not in download list, will be symlinked to models/custom.
Also added comments to code and titles to cells.
Should just be able to enter settings in first cell, then hit 'run all'.
Well... twice.
- Add settings on the settings page to customize most streamlit options
including the server address, port and headless mode.
- Changed default server address to localhost.
- Removed default hard coded server address from the cmd and sh file as
they are now customizable through the Settings page on the streamlit
version.
Added an image editor for img2img, for now its pretty basic and has some
bugs but it should do the job better than having to create a mask using
an external software and then importing it to the UI every time.