Commit Graph

83 Commits (master)

Author SHA1 Message Date
Gabriel e206c36452
Simplified and added samplers (#125) 2024-06-06 08:40:36 +00:00
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
Gabriel 21cdca4283
feat: added three more samplers (#120)
* Added three more samplers

* Minor typo
2024-05-21 15:45:11 +08:00
Maiko Sinkyaet Tan a31d33157e
fix: model hash from remote can be upper cases (#116)
* fix: model hash from remote can be upper cases

* fix: black format
2023-08-02 15:34:45 +08:00
David Fischer 5f53d819b3
removed dead code (#114)
* removed dead code

* black
2023-07-07 00:38:16 +00: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
Maeyanie e6315e468f
Check the contents of has_nsfw_concept in addition to the existence. (#112) 2023-07-01 19:50:04 +08:00
Maiko Tan 9edcf3bb70 fix: use traditional way to make sure horde started 2023-06-15 11:58:47 +08:00
Maeyanie 07cbe9a1aa
Switch from md5 to sha256 (#106)
* Switch from md5 to sha256

Some newer StableHorde models are being added with only a sha256, not an md5.

I checked and was not able to find any models with only an md5, so it seems safe to switch completely rather than trying to implement both.

* Update horde.py
2023-06-11 06:03:02 +00:00
Maeyanie 66e8fb54bc
Update supported models URL (#105)
* Update supported models URL

The current URL returns an empty JSON file.

This URL is from the official client. It seems to contain the same content, and it worked fine in testing.

* Lint
2023-06-09 00:03:52 +00:00
Maiko Sinkyaet Tan 4d448dfa82
fix: referecing StableDiffusionProcessingTxt2Img error, close #103 (#104) 2023-05-30 13:42:15 +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
Maiko Sinkyaet Tan a3e67b51f7
fix: prevent getting jobs when generation running (#90)
* fix: prevent getting jobs when generation running

* fix: only lock job getting
2023-03-24 17:47:00 +08:00
Sebastian Grunow 2372bc12ee
fix: model reported as unknown when present but hash not yet calculated. (#87)
Co-authored-by: Sebastian Grunow <sebastian@prodigy.solutions>
2023-03-17 23:24:36 +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
Sebastian Grunow b579ab6616
feat: add hires fix feature (#78)
close #69 

* feat: ad hires_fix feature (#69)

* fix: change to new hires fix method

* revert: removal of firstphase resolution calculation re-added

---------

Co-authored-by: Sebastian Grunow <sebastian@prodigy.solutions>
2023-03-14 08:35:50 +08:00
David Fischer 6dd338ddbc
fix: save images saved wrong model name (#81)
* added info text parsing

- added model hash search form checkpoints
- info text parsing model name and hash
thanks to @VanishX for the code snippet.

* Flake and black
2023-03-12 15:48:21 +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
David Fischer 932e29416d
New origin for nataili (#76)
- fixed source of remote models
2023-03-02 18:24:32 +08:00
Maiko Sinkyaet Tan 6b1c59577d
feat: add clip skip feature (#73) 2023-02-24 08:40:12 +08:00
Maiko Sinkyaet Tan 0aee87eabe
feat: support r2 source feature (#72) 2023-02-21 14:22:53 +08:00
Maiko Sinkyaet Tan 1d0efb0104
docs: update readme for features (#71) 2023-02-20 14:41:55 +08:00
Maiko Sinkyaet Tan ab399bfc35
feat: add tiling feature support (#68)
* feat: add tiling feature support

* docs: update readme for tiling feature

* comments

* lint
2023-02-20 13:17:34 +08:00
Maiko Sinkyaet Tan 264f6a934c
feat: add state report for current job (#67) 2023-02-20 10:16:23 +08:00
Maiko Sinkyaet Tan 835c3ae9b3
fix: img2img ignored source images, fix #65 (#66)
fix: img2img ignored source images
2023-02-20 09:55:27 +08:00
Maiko Sinkyaet Tan 5e556b9861
chore: adjust pull request template sections (#63) 2023-01-30 19:51:01 +08:00
Maiko Sinkyaet Tan 13a2829d0d
fix: ImportError when using newer webui version (#62)
* fix: ImportError when using newer webui version

fix #61

* fix: ignore lint error

* fix: black format
2023-01-30 19:42:09 +08:00
Maiko Sinkyaet Tan f517df349c
fix: get supported model on boot (#60)
also add retry attemps, maybe we should extract it outside
2023-01-30 16:49:12 +08:00
Maiko Sinkyaet Tan 70f2655ab1
chore: add compatibilities in readme (#59) 2023-01-29 10:39:54 +08:00
Maiko Sinkyaet Tan c8e4b06ebf
refactor: split stable_horde.py into multiple files (#58)
* refactor: migrate stable_horde.py to folder

* refactor: split classes into different files
2023-01-28 14:18:06 +08:00
Maiko Sinkyaet Tan 611dd45cb8
refactor: update bridge agent version (#54) 2023-01-28 10:19:02 +08:00
Maiko Sinkyaet Tan 929501d9f2
fix: submit function should aceept only one param (#53) 2023-01-28 09:55:13 +08:00
Maiko Sinkyaet Tan c84d051bdd
docs: update readme with the new setup guide (#52) 2023-01-28 09:32:48 +08:00
Maiko Sinkyaet Tan da0e8e8fe9
feat: add job status (#42)
* feat: add job status

* fix lint
2023-01-28 00:13:20 +08:00
Maiko Sinkyaet Tan 8a81c8baf0
chore: add pull request template (#46)
* chore: add pull request template

* chore: update code of conduct link

* chore: move pr template to github root

* chore: fix naming

* fix: use markdown instead

* chore: add types description

* fix quotes
2023-01-28 00:00:57 +08:00
Maiko Sinkyaet Tan 1a5329f766
chore: add contributing guide (#51) 2023-01-27 23:29:52 +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 e6e3bc3a09
fix: config.models is abandoned (#49) 2023-01-27 22:13:36 +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 Tan eff0b056d0
fix: handle server 500 error, split `###` from right
Co-authored-by: Bastian Schülke <bas.schuelke@googlemail.com>
2023-01-27 20:37:52 +08:00
Maiko Tan 0c9d65e856
ci: fix syntax error 2023-01-27 20:05:05 +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 e790ac2e3c
chore: propose github issue templates (#45)
* chore: propose github issue templates

* chore: allow multiple os chosed

* chore: adjust words

* chore: adjust

* chore: not assign anyone to the bugs
2023-01-27 17:35:58 +08:00
Maiko Sinkyaet Tan 2a0c3479f8
fix: not to save postprocessed image into extra folder (#43) 2023-01-27 15:52:44 +08:00
Maiko Sinkyaet Tan b4c11a9bdd
refactor: add HordeJob as stable horde job manager (#40) 2023-01-26 23:39:16 +08:00
Maiko Sinkyaet Tan 517458a3b9
fix: remove unexpetectedly merged commits (#39) 2023-01-26 23:35:38 +08:00
Maiko Sinkyaet Tan ea2311e7ff
refactor: detect sd models in every loop (#38) 2023-01-26 23:20:27 +08:00