Commit Graph

377 Commits (main)

Author SHA1 Message Date
Uminosachi 58397c9d56 Optimize Gradio Gallery height of output image 2023-09-29 19:48:32 +09:00
Uminosachi 5c983a5aab Change output Gradio class from Image to Gallery 2023-09-29 10:38:16 +09:00
Uminosachi 863fbfd619 Optimize sketch clearing time with js update 2023-09-28 10:05:58 +09:00
Uminosachi 4f0d8eba6e Initialize sketch image area after image upload 2023-09-27 12:47:18 +09:00
Uminosachi 067038bd18 Enable mask editing by simply uploading image 2023-09-27 11:31:12 +09:00
Uminosachi 4164df0774
Merge pull request #101 from Sj-Si/feature/expand-mask-iteration-count-control
Feature: Add Slider for "Expand Mask" Iteration Count
2023-09-27 06:59:39 +09:00
Uminosachi 4dcf29d5ad
Update inpaint_anything.py 2023-09-27 06:47:08 +09:00
Sj-Si 938580f66c Increase limit to expand_mask iterations 2023-09-26 14:47:11 -04:00
Sj-Si 647ecf8c9d Add slider for expand_mask button iteration count. 2023-09-26 12:18:33 -04:00
Uminosachi 8004691a0f Set do_not_save_grid of webui processing to True 2023-09-26 06:51:14 +09:00
Uminosachi b7e5d9fcd8 Fix torchvision.nms NotImplementedError issue 2023-09-18 12:45:51 +09:00
Uminosachi 3547a2e6fb Set init_images inside iter loop for SD.Next 2023-09-17 10:46:52 +09:00
Uminosachi 1c90c702f9 Add CUDA condition to diffusers CPU offload 2023-09-13 13:29:23 +09:00
Uminosachi 096f14eaf2 Execute diffusers pipe as float32 if ROCm torch 2023-09-12 22:41:20 +09:00
Uminosachi f0d333ba36 Update decorator to auto-identify generator func 2023-09-12 10:08:33 +09:00
Uminosachi 7a0c424303 Optimize to reduce unnecessary CPU offloading 2023-09-11 19:16:35 +09:00
Uminosachi a868cf8b5f Offload when lowvram and medvram are not added 2023-09-11 13:51:37 +09:00
Uminosachi 4650c8aed3 Fix not to offload if shared.sd_model is SDXL 2023-09-11 12:52:13 +09:00
Uminosachi dd6b95834d Fix type hint to make library work on python 3.8 2023-09-09 08:20:58 +09:00
Uminosachi 39cfc00098 Add web link to IP-Adapter in ControlNet options 2023-09-08 22:50:27 +09:00
Uminosachi 9064a673d4 Add support for IP-Adapter in ControlNet options 2023-09-08 15:51:10 +09:00
Uminosachi 3af1a6a12b Support zoom and reset by key for output image 2023-09-05 16:36:54 +09:00
Uminosachi af4ee99aab Reset iteration slider to 1 after inpainting 2023-09-03 12:19:07 +09:00
Uminosachi 1a20d073f8 Support saving last model of inpainting webui 2023-08-30 20:04:07 +09:00
Uminosachi 1bb082803c Refactor config file read and write code 2023-08-30 16:44:30 +09:00
Uminosachi b11cc66bf8 Update README to describe inpainting iteration 2023-08-28 21:25:59 +09:00
Uminosachi 0ed3c9a822 Add iteration support to CN and web UI inpainting 2023-08-28 20:41:11 +09:00
Uminosachi 4794183f4e Add decorator that support yield from nest 2023-08-28 17:12:28 +09:00
Uminosachi 6db723cf27 Move torch.Generator out of for statement 2023-08-28 14:47:54 +09:00
Uminosachi 886e6f292a Add iteration count argument and for statement 2023-08-28 14:24:22 +09:00
Uminosachi 8efdbb60e9 Change privateuseone check to device.type 2023-08-28 09:55:36 +09:00
Uminosachi 503bf04157 Set cpu to Generator when device is privateuseone 2023-08-28 09:28:33 +09:00
Uminosachi e324de289a Improve image resize process and log display 2023-08-27 20:03:23 +09:00
Uminosachi 72dadb49fc Set variant argument for some buttons of gradio 2023-08-26 11:00:09 +09:00
Uminosachi 4c76af4037 Update clear button name for new Gradio version 2023-08-25 15:55:07 +09:00
Uminosachi 78f6832032 Use ContextDecorator for switching torch.load 2023-08-24 09:18:32 +09:00
Uminosachi 94b0b947f2 Add function for retrieving web UI settings 2023-08-23 20:12:19 +09:00
Uminosachi e2da51f34f Update title for offline inpainting option 2023-08-23 10:55:15 +09:00
Uminosachi fbbe8ad610 Add option to run Segment Anything on CPU 2023-08-23 10:03:01 +09:00
Uminosachi a7d836c2aa Remove patch as PR has been merged to web UI dev 2023-08-21 19:18:30 +09:00
Uminosachi 14e886ad28 How to use SAM and mask gen from other extensions 2023-08-20 10:09:13 +09:00
Uminosachi d86f236192 Add extension base folder to sys.path in lib 2023-08-19 22:52:49 +09:00
Uminosachi 5df11f37eb Fix mismatch between model and VAE post-backup 2023-08-19 21:24:07 +09:00
Uminosachi a50d13dce1 Refactor to use isinstance func for class check 2023-08-19 09:23:05 +09:00
Uminosachi 70d3a8ca67 Allow PIL's Image type as input to lib functions 2023-08-19 07:56:59 +09:00
Uminosachi ed2f526d67 Move most of select_mask code to separate file 2023-08-18 22:45:24 +09:00
Uminosachi e94bd22081 Remove try section in library and refactor 2023-08-18 21:42:45 +09:00
Uminosachi 1770271b7b Move most of run_sam processing to separate file 2023-08-18 20:14:54 +09:00
Uminosachi a825d6ca27 Rename API folder and add some functions 2023-08-18 15:43:22 +09:00
Uminosachi 32d72d7327 Add insert mask value check to API function 2023-08-18 12:20:14 +09:00