Commit Graph

232 Commits (ac2da7e9bf8a0ffcd3dbcab738e2b3e631454ffd)

Author SHA1 Message Date
Uminosachi 81f7a7073c Support refiner and fix seed unchanging in dev 2023-08-13 17:20:45 +09:00
Uminosachi 6d7d1096a2 Refactor config process using SimpleNamespace 2023-08-10 10:38:14 +09:00
Uminosachi f98e735cb9 Remove patch due to PR merged to web UI dev 2023-08-10 09:07:45 +09:00
Uminosachi 17bc025049 Correct infotext to match format of A1111 PNG 2023-08-04 14:55:49 +09:00
Uminosachi ccae56b901 Change inpainting PNG sampler from class to name 2023-08-04 14:35:02 +09:00
Uminosachi 782941918c Add buttons to get prompts on webui and CNet tab 2023-08-03 19:44:49 +09:00
Uminosachi 0940bbba4d Add buttons to get txt2img and img2img prompts 2023-08-03 14:48:48 +09:00
Uminosachi 04e8e8b507 Fix model loading while clearing torch cache 2023-08-02 20:11:52 +09:00
Uminosachi 223c7147fa Add MPS device availability check on macOS 2023-08-02 12:46:28 +09:00
Uminosachi 0dd860719c Fix image name increment interference in img2img 2023-07-30 19:29:49 +09:00
Uminosachi d91dec4802 Use CPU not MPS with FastSAM on macOS 2023-07-29 09:36:02 +09:00
Uminosachi 9924a65e1d Add MPS device support for SAM on macOS 2023-07-29 08:15:34 +09:00
Uminosachi a99962c4c8 Fix X button return malfunction in fullscreen mode 2023-07-28 10:04:19 +09:00
Uminosachi fdd855f9e2 Rename input image element ID to avoid conflicts 2023-07-24 16:31:02 +09:00
Uminosachi d3a52d92b9 Fix non-binary RGB values in mask sketche 2023-07-23 12:07:05 +09:00
Uminosachi 05b1f0ea96
Change UI layout and improve mask addition 2023-07-23 10:57:23 +09:00
root b64b21b8e8 added add button under mask editing tool 2023-07-22 21:18:22 +02:00
Uminosachi a9a9815faa Set ignore black area default value to True 2023-07-21 06:51:03 +09:00
Uminosachi 420835b8d9 Add checkbox for ignore black area of segment 2023-07-21 06:35:08 +09:00
Uminosachi daebbadf92 Display ControlNet/model incompatibility image 2023-07-20 10:14:22 +09:00
Uminosachi 2ea17cc393 Show ControlNet incompatibility with SDXL model 2023-07-20 06:43:34 +09:00
Uminosachi 723cf8bf43 Add MobileSAM download and execution support 2023-07-17 18:53:53 +09:00
Uminosachi a971a38a51 Fix linting errors and warnings using Flake8 2023-07-17 14:08:42 +09:00
Uminosachi 73bc3f7628 Show mask as RGBA image instead of checkerboard 2023-07-16 21:01:01 +09:00
Uminosachi 50931c5768 Rename id to prevent global collision of elem_id 2023-07-15 18:30:53 +09:00
Uminosachi d8bc8b56a5 Add canvas zoom fullscreen func to mask images 2023-07-15 15:34:03 +09:00
Uminosachi 93529ace68 Adjust cv2 morph transform kernel size 2023-07-15 00:42:41 +09:00
Uminosachi a8d636678d Merge branch 'anime-style' into develop 2023-07-14 19:55:58 +09:00
Uminosachi 9dc746b2b6 Add checkbox for anime style (up detection) on UI 2023-07-14 19:53:52 +09:00
Uminosachi 3f8664677a Change python module names to avoid duplication 2023-07-12 09:14:37 +09:00
Uminosachi c48d34cb16 Rename class from downloader to file manager 2023-07-11 18:17:40 +09:00
Uminosachi c882ce4d5d Add class for managing SAM and image output folder 2023-07-11 15:47:10 +09:00
Uminosachi e4735315ca Add mask blur to inpainting webui options 2023-07-08 12:16:01 +09:00
Uminosachi 2bba51169e Support inpainting when webui run with --use-cpu 2023-07-07 09:07:42 +09:00
Uminosachi 16681f2fd6 Fix mask being added despite no padding area 2023-07-05 21:29:37 +09:00
Uminosachi ee53e718a5 Add version check and feature enabling module 2023-07-05 16:49:26 +09:00
Uminosachi 51080bd67e Add list of inpaint models from huggingface cache 2023-07-04 11:02:48 +09:00
Uminosachi c75c4cf24b Improve layout image fitting in SAM output area 2023-07-03 09:39:41 +09:00
Uminosachi c771641f45 Retain previous selections for SAM and Inpainting 2023-07-02 17:33:20 +09:00
Uminosachi 09ad8dab05 Add config file manipulation for model selection 2023-07-02 12:04:24 +09:00
Uminosachi 52268b8075 Disable SAM button until image upload is complete 2023-07-01 15:26:20 +09:00
Uminosachi 8d261b4293 Add cache clearing decorator to event function 2023-07-01 13:18:03 +09:00
Uminosachi 5c2fbf2db9 Move threading of model load to another file 2023-07-01 08:09:54 +09:00
Uminosachi fafd8a3753 Preserve SAM image and selected mask image area 2023-06-30 18:46:17 +09:00
Uminosachi 048b034d1a Improve small SAM image when browser in background 2023-06-30 10:54:36 +09:00
Uminosachi 044d648994 Revert gr.Image for no improvement in Firefox 2023-06-30 10:31:48 +09:00
Uminosachi af859ee7a8 Improve small SAM image when browser in background 2023-06-30 10:18:44 +09:00
Uminosachi d7bcb95fe3 Improve print progress bar for rendering steps 2023-06-29 15:26:37 +09:00
Uminosachi 3aa3d1aabc Improve mask creation process to reduce time 2023-06-29 14:31:48 +09:00
Uminosachi e7afdb532f Optimize mask creation process to reduce time 2023-06-29 14:09:13 +09:00
Uminosachi 245c8b12b4 Improve color rendering time for SAM segments 2023-06-29 12:48:28 +09:00
Uminosachi 5e88726f8a Add fail-safe code during SAM generation 2023-06-28 20:46:41 +09:00
Uminosachi 3babe45ad0 Change CN Low VRAM option default to True 2023-06-27 19:01:21 +09:00
Uminosachi 37e9015332 Fix no attribute of inpainting webui on slow hdd 2023-06-27 11:04:03 +09:00
Uminosachi e1f7805135 Change to use CN func for cache clear and check 2023-06-26 19:54:29 +09:00
Uminosachi 73c1442d3a Fix couldn't find VAE while webui startup 2023-06-26 09:11:07 +09:00
Uminosachi b4447e9c73 Change to include ControlNetUnit in script_args 2023-06-25 08:38:48 +09:00
Uminosachi b2fb3fbe3b Add support for downloading and executing FastSAM 2023-06-24 08:16:13 +09:00
Uminosachi e1528e7d4d Add style fidelity arg when reference only 2023-06-24 01:00:00 +09:00
Uminosachi d54c104533 Change from class to dict due to CN type check 2023-06-24 00:26:54 +09:00
Uminosachi 7258019dc5 Improve tile repetitions of reference image resize 2023-06-23 08:29:24 +09:00
Uminosachi 06cc760cc9 Change UI layout of reference only control 2023-06-22 21:08:43 +09:00
Uminosachi 8bd63a5a73 Merge branch 'ref-resize' into develop 2023-06-22 20:28:27 +09:00
Uminosachi 84e4bdc8bf Add tile method of reference image resize mode 2023-06-22 20:16:59 +09:00
Uminosachi 148dfdad24 Extend model change timeout for inpainting webui 2023-06-22 09:22:42 +09:00
Uminosachi 6af872aed5 Change initial parameter of ControlNet inpaint 2023-06-21 21:54:00 +09:00
Uminosachi d10a485000 Change initial parameter of inpainting webui 2023-06-20 16:34:48 +09:00
Uminosachi a8fcd21c3d Display filename saved with get alpha image 2023-06-20 15:55:59 +09:00
Uminosachi fc569e0fea Move clear cache func into run_sam func 2023-06-20 12:57:05 +09:00
Uminosachi f0a9a0515d Change to compare checkpoint info by title 2023-06-20 12:19:00 +09:00
Uminosachi d6bb068a69 Remove sleep before model reload after processing 2023-06-20 11:45:41 +09:00
Uminosachi 3592434d7c Add async wait function for model unload reload 2023-06-20 11:20:46 +09:00
Uminosachi 084e5f85bd Make inpainting model search case-insensitive 2023-06-19 12:28:05 +09:00
Uminosachi 3c8910e732 Add radio button for masked content option 2023-06-19 11:35:07 +09:00
Uminosachi d8e7b04058 Add function of user-installed inpainting model 2023-06-18 21:11:21 +09:00
Uminosachi aace90b813 Fix numpy has no attribute bool 2023-06-17 17:39:57 +09:00
Uminosachi 84611318a0 Optimize mask selection to reduce memory usage 2023-06-17 14:27:34 +09:00
Uminosachi 410c92584c Add shape check for pad mask to be inserted 2023-06-17 11:40:20 +09:00
Uminosachi 8dc678713a Add fill value of padding in web UI setting 2023-06-17 11:00:17 +09:00
Uminosachi bed565da51 Improve outpainting border 2023-06-17 10:25:11 +09:00
Uminosachi b250a06e3b Add padding balance settings and refactor name 2023-06-17 09:39:08 +09:00
Uminosachi 63739354ac Refactor padding to use numpy only etc 2023-06-17 07:54:19 +09:00
Uminosachi f6e790c9c4 Add numpy padding mode in addition 2023-06-16 22:12:20 +09:00
Uminosachi 3f94934859 Add argument to select padding mode 2023-06-16 20:49:23 +09:00
Uminosachi 9befe0eb3c Make sure that padding area is a mask 2023-06-16 13:45:58 +09:00
Uminosachi 3e47c642b0 Add UI and function for outpainting 2023-06-16 11:45:01 +09:00
Uminosachi 5f4e44c762 Refactor resize func to eliminate redundant calc 2023-06-16 09:10:38 +09:00
Uminosachi 2690c420e7 Add log output num of SAM masks etc 2023-06-15 18:22:14 +09:00
Uminosachi a26fefd7b6 Change from print to use python logging 2023-06-15 15:37:50 +09:00
Uminosachi 2a35c7dcab Adjust dilations and radius of GaussianBlur 2023-06-15 08:48:21 +09:00
Uminosachi 42a887abac Improve compositing in inpainting function 2023-06-15 07:01:53 +09:00
Uminosachi 63b3dac32b Reduce VRAM usage during HQ-SAM inference 2023-06-14 12:03:40 +09:00
Uminosachi 453680d29d Update to reflect changes in sam-hq repository 2023-06-14 10:22:28 +09:00
Uminosachi 9422be2d69 Support download HQ-SAM model and execution 2023-06-13 10:35:28 +09:00
Uminosachi da540e6479 Test Segment Anything in High Quality 2023-06-12 22:43:46 +09:00
Uminosachi 787c6b264d Move non scripts file out of scripts folder 2023-06-12 16:33:33 +09:00
Uminosachi 558142524f Change sleep time after each process 2023-06-11 12:41:30 +09:00
Uminosachi f75ba86625 Add reload if no model in ControlNet inpaint func 2023-06-11 12:20:51 +09:00
Uminosachi e54ef9c770 Add Low VRAM checkbox in ControlNet options 2023-06-11 09:19:56 +09:00
Uminosachi 1e4ba255e4 Support CPU execution of SAM on macOS 2023-06-10 12:17:23 +09:00