Commit Graph

18 Commits (master)

Author SHA1 Message Date
Maiko Sinkyaet Tan ff9af8ade4
fix: syntax error from #121 (#123) 2024-05-21 16:14:43 +08:00
Gabriel 71b971e852
fix: gradio style warnings (#121)
These are the warnings, they occur on start:
/home/user/stable-diffusion-webui/extensions/sd-webui-stable-horde-worker/scripts/script.py:104: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  with gr.Row().style(equal_height=False):
/home/user/stable-diffusion-webui/extensions/sd-webui-stable-horde-worker/scripts/script.py:236: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  ).style(grid=4)
/home/user/stable-diffusion-webui/extensions/sd-webui-stable-horde-worker/scripts/script.py:236: GradioDeprecationWarning: The 'grid' parameter will be deprecated. Please use 'columns' in the constructor instead.
  ).style(grid=4)
2024-05-21 15:46:52 +08:00
Maeyanie 5b02b24f6c
refactor: execute in a separate thread (#110)
Just running async was still blocking the WebUI while a generation was running.
2024-05-21 15:46:12 +08:00
David Fischer 80b24e5691
Model link update and hash fix (#113)
* removed expensive sha265 calculations
added original supported models
fixed session key change

* flake and black

* flake ignore on old code which musnt be formatted

* black
2023-07-05 04:26:48 +00:00
Maiko Tan 9edcf3bb70 fix: use traditional way to make sure horde started 2023-06-15 11:58:47 +08:00
Maiko Sinkyaet Tan 444ee492a6
fix: save images button not working (#101)
* fix: save images button not working

fix #88

* fix: lint error
2023-05-17 10:32:53 +08:00
jmsether d7b03ec86f
fix: AttributeError on startup (#96)
Fixed AttributeError: module 'gradio.utils' has no attribute 'synchronize_async'
2023-05-04 15:07:30 +08:00
Sebastian Grunow f559bd7f74
feat: add option to disable settings restore - performance boost (#82)
Co-authored-by: Sebastian Grunow <sebastian@prodigy.solutions>
2023-03-16 08:36:07 +08:00
David Fischer 94632b5b27
feat: add model switching (#75), close #3
* - added a method to set current models based on
remote models available.
- saves the currently selected
models in a config with
their corresponding name.
- added a multi select dropdown to choose from local models.
When selecting, hash gets compared to
remote hash.
- added override model checkpoint to parameters in order
to swap model on the fly
- better state status by adding model and sampler of request

* Added feature model switching in readme

* fixed flake linting
2023-03-05 20:29:24 +08:00
Maiko Sinkyaet Tan a80d10552e
refactor: remove model selection temporarily (#50)
refactor: remove model selection
2023-01-27 22:36:15 +08:00
Maiko Sinkyaet Tan a684c888be
feat: create custom tab page (#13)
* feat: create custom tab page

* feat: add show image preview config

* fix: tab prefix

* fix: single quotes

* fix: get variable errors

* feat: temp button implementation, not a good one

* feat: add refresh button, fix refresh mechanism

* refactor: migrate models to StableHorde class

* refactor: move settings to self maintained config.json

* fix: specify the tab as worker

* refactor: change layout to highlight status

* feat: add interval config

* feat: add more configurations

* fix: set gallery style to use grid

* fix: add allow postprocessing and remove maintenance

* refactor: move model detection into loop

* refactor: optimise queue lock

* refactor: remove extra self.session init

* feat: Save Images (#25)

* Bugfix type error on submitting payload

* Feature "Save Images"
Saves to horde directory
Added to config UI
Also saves png info (if selected in main config)

* feat: add save image folder configuration

Co-authored-by: Maiko Tan <maiko.tan.coding@gmail.com>

* fix: use state instead of print

* feat: add config default values

* fix: filter load/save methods

* 500 server error, multiple delimiter (#48)

* Getting sometimes 500 errors froom server, but reties upload the image correctly

* Multiple delimiter in prompt, choose the last one in string and continue

* fix: lint error

Co-authored-by: JohnW <john@warnes.email>
Co-authored-by: Bastian Schülke <bas.schuelke@googlemail.com>
2023-01-27 21:20:41 +08:00
Maiko Sinkyaet Tan 72e28ca8aa
chore: lint existing code (#47)
* chore: add flake8 and black for linting code

* chore: lint all files

* chore: add lint workflow
2023-01-27 20:03:29 +08:00
Maiko Sinkyaet Tan 276e6e22f4
refactor: start running bridge simplier (#36)
with `gradio.utils.synchronize_async` api
2023-01-26 23:05:09 +08:00
Maiko Sinkyaet Tan 924d5907ff
fix: correct worker name property (#16) 2022-12-20 16:22:34 +08:00
Maiko Sinkyaet Tan b1127c09ed fix: nsfw_censor not working (#6)
* chore: import image from natali repo

* fix: return censor png instead of original image

* fix: basedir broken when calling outside
2022-12-19 21:40:30 +08:00
Maiko Tan b76afff460 docs: add setup guide 2022-12-19 15:25:50 +08:00
Maiko Tan 76202ce379 fix: handle sampler error 2022-11-02 04:12:34 +08:00
Maiko Tan 366152279d feat: add extension skeleton 2022-10-22 03:29:12 +08:00