1
0
Fork 0
Commit Graph

186 Commits

Author SHA1 Message Date
Sean Sube f4fc6271bc
feat(api): set default platform for each container (fixes #82) 2023-01-31 08:45:06 -06:00
Sean Sube bacce0ace9 testing ONNX upscaling 2023-01-29 18:42:05 -06:00
Sean Sube c905fbb728 feat(api): add reduce stages, noise source 2023-01-29 15:23:01 -06:00
Sean Sube 03d88dff5f log pipeline stage count, add outpaint example 2023-01-28 23:50:41 -06:00
Sean Sube 8f1cbc83f8 feat(api): parse named tile sizes 2023-01-28 23:06:25 -06:00
Sean Sube db9189fd3d get upscaling model from stage params 2023-01-28 22:52:39 -06:00
Sean Sube 18803db6ed fix(api): parse border and upscale in chain stages 2023-01-28 22:48:53 -06:00
Sean Sube 151ebff237 feat(api): parse chain pipeline from request 2023-01-28 22:31:34 -06:00
Sean Sube c7a6ec45d8 fix(api): avoid circular deps in diffusion pipeline cache 2023-01-28 20:15:39 -06:00
Sean Sube 4547bcef50 feat(api): switch to python logging 2023-01-28 17:09:19 -06:00
Sean Sube dcbd059082 feat(api): add img2img and inpaint chain stages 2023-01-28 12:42:02 -06:00
Sean Sube 4188b019a1 test multiple chained upscaling stages 2023-01-28 10:26:04 -06:00
Sean Sube ba3e450d43 fix scale for outpaint 2023-01-28 09:55:47 -06:00
Sean Sube d89437b11e persist to output dir, do not tile output 2023-01-28 09:15:02 -06:00
Sean Sube 779457b546 feat(api): add save-to-disk stage 2023-01-28 09:08:59 -06:00
Sean Sube 658e12266f pass size and initial image to test pipeline 2023-01-28 08:40:29 -06:00
Sean Sube 9f76226ba6 use correct generator 2023-01-28 08:38:48 -06:00
Sean Sube 5119a982db feat(api): synthesize a mask for outpaint stages 2023-01-28 08:37:17 -06:00
Sean Sube 4579e96cc1 feat(api): add inpaint as a chain stage 2023-01-28 08:19:40 -06:00
Sean Sube 56a4acee2a fix(api): split up and cache upscaling and correction stages 2023-01-27 23:28:14 -06:00
Sean Sube caafc9ebc9 lint(api): make modules for chain pipeline and params 2023-01-27 22:48:06 -06:00
Sean Sube 71ff3bb1c4 feat(api): start implementing chain pipelines 2023-01-27 17:08:36 -06:00
Sean Sube 483b8e3f19 lint(api): consolidate upscale/correction logic 2023-01-25 20:31:39 -06:00
Sean Sube 67d51a96e3 feat(api): add a way for the server to disable certain platforms (#83) 2023-01-24 23:19:57 -06:00
Sean Sube b62c7d3742 fix(api): return structured error when image parameters are missing (fixes #76) 2023-01-22 22:38:03 -06:00
Sean Sube b2e7ad599f fix(api): check if output file exists for ready endpoint (#57) 2023-01-22 22:25:00 -06:00
Sean Sube f319e6a49b fix(api): pass hardware platform to upscaling pipeline (#77) 2023-01-22 16:35:53 -06:00
Sean Sube 876b54a7a8 fix(api): validate request params better, esp model path 2023-01-22 13:48:14 -06:00
Sean Sube cb005d3b5d fix: move output path out of API route (for #7) 2023-01-21 19:44:54 -06:00
Sean Sube facd69f452 fix(api): actually return the filtered list of platforms 2023-01-21 19:41:43 -06:00
Sean Sube c768cd8f42 fix(api): filter platforms based on available providers (fixes #69) 2023-01-21 19:40:10 -06:00
Sean Sube 4a3bb97342 fix(api): run GC after changing pipeline (#58) 2023-01-19 19:46:36 -06:00
Sean Sube 3bcd7a8156 feat: add ROCm provider to list (#10) 2023-01-19 17:38:26 -06:00
Sean Sube 3679735d86 feat: add fill color control to inpaint 2023-01-18 08:41:02 -06:00
Sean Sube cf6a151548 fix(api): pass image size to upscale job 2023-01-17 21:53:44 -06:00
Sean Sube 5ba752e526 feat(api): add strength param to inpaint, remove same from upscale 2023-01-17 17:50:36 -06:00
Sean Sube 4aeee60b19 feat: add upscaling tab and endpoint 2023-01-16 23:45:54 -06:00
Sean Sube 0e27cc830d fix: send missing model params, add face strength control 2023-01-16 22:54:01 -06:00
Sean Sube b09feda474 fix(api): sort models without discarding 2023-01-16 20:58:08 -06:00
Sean Sube 33eebacc0c lint(api): return models in order 2023-01-16 20:37:59 -06:00
Sean Sube c0ca7cf62f fix(api): dedupe models after removing extension 2023-01-16 20:28:29 -06:00
Sean Sube 4472a6fd24 fix(api): trim model names relative to model path 2023-01-16 20:25:09 -06:00
Sean Sube 23a9d5afb7 list models correctly 2023-01-16 20:17:01 -06:00
Sean Sube 0273dea2a6 fix(api): join globs to avoid py 3.10-only args 2023-01-16 20:14:11 -06:00
Sean Sube ee6308a091 feat(api): return all types of models 2023-01-16 20:10:52 -06:00
Sean Sube dab2cc7752 lint(api): split up face correction and upscaling models 2023-01-16 17:51:32 -06:00
Sean Sube 4d0898a52c feat(api): start adding model sources to convert script 2023-01-16 17:08:59 -06:00
Sean Sube 5a01fe4cb0 fix(api): resolve face correction model relative to model path 2023-01-16 16:45:17 -06:00
Sean Sube 4809e00982 fix(api): get all server paths from environ 2023-01-16 16:40:32 -06:00
Sean Sube c98c0ff4dd lint(api): remove global paths entirely 2023-01-16 16:39:30 -06:00
Sean Sube 4bf68759d7 fix(api): report accurate sizes 2023-01-16 15:11:40 -06:00
Sean Sube 8d3ebede5a feat: add outscaling option 2023-01-16 14:52:56 -06:00
Sean Sube 1f0c19af04 fix(api): get upscale params from request 2023-01-16 13:12:08 -06:00
Sean Sube 5fded3cf40 remove unused param from output 2023-01-16 10:03:30 -06:00
Sean Sube 604cdf39b0 lint(api): helper to get borders from request 2023-01-16 07:45:50 -06:00
Sean Sube 53fcc0b91f lint(api): remove output path, join from context 2023-01-16 07:42:10 -06:00
Sean Sube 7c9dbf2c7e remove unused fields from context 2023-01-16 07:34:37 -06:00
Sean Sube 8a97cbebb6 remove invalid model path call 2023-01-16 07:33:53 -06:00
Sean Sube 7c52743aaa remove invalid imports 2023-01-16 07:33:22 -06:00
Sean Sube 13a4fa2278 lint(api): encapsulate paths in server context class 2023-01-16 07:31:42 -06:00
Sean Sube a76793d105 fix(api): correct output paths, read strength from params 2023-01-15 20:00:26 -06:00
Sean Sube bdc8e277fe lint(api): clean up output file hash stuff 2023-01-15 19:47:57 -06:00
Sean Sube 44c81d966f lint(api): finish splitting up modules 2023-01-15 19:33:40 -06:00
Sean Sube ff70d36a05 lint(api): add class for params, size, other common data 2023-01-15 19:14:58 -06:00
Sean Sube 1146118b1a lint(api): split up modules 2023-01-15 18:54:20 -06:00
Sean Sube c7c3645466 lint(api): split out pipeline code 2023-01-15 18:46:00 -06:00
Sean Sube 806503c709 fix(api): load upscaling model from models dir 2023-01-15 18:41:58 -06:00
Sean Sube 77cb84c60e feat(api): add basic upscaling 2023-01-15 18:04:10 -06:00
Sean Sube 5bb3f6c558 feat: add noise source with solid color 2023-01-15 14:26:04 -06:00
Sean Sube 16108ae172 fix(api): add time to filenames (for #55) 2023-01-15 14:22:51 -06:00
Sean Sube 40080ad46b feat: add gaussian multiply to mask filters 2023-01-15 14:04:54 -06:00
Sean Sube 081a96d536 fix(api): use full-image compositing, write debug images to output dir 2023-01-15 13:40:11 -06:00
Sean Sube 9c93e16698 fix(api): clean up background jobs once they are ready (for #55) 2023-01-15 11:43:47 -06:00
Sean Sube e4020cf3f6 fix(api): always apply mask filter for inpainting 2023-01-15 11:39:40 -06:00
Sean Sube b1aca928ab fix(api): correct type of provider in output path 2023-01-15 11:29:38 -06:00
Sean Sube e429bafeef fix(api): include all parameters in output path 2023-01-15 11:28:12 -06:00
Sean Sube f5ed77a349 fix(api): reduce copies, fix function signatures 2023-01-15 11:09:47 -06:00
Sean Sube 4af1b8e1aa save mask and noise for debugging 2023-01-15 10:09:57 -06:00
Sean Sube 0ed11af34b fix(api): correct endpoint name for blend ops 2023-01-15 09:35:25 -06:00
Sean Sube a8f0a7a7eb feat(api): add endpoints for blend and noise settings 2023-01-15 09:32:30 -06:00
Sean Sube e403980a44 feat(api): add parameters for noise source and blend op to inpaint 2023-01-15 09:21:09 -06:00
Sean Sube 09c9b2c028 fix(api): restore inpainting without outpainting 2023-01-14 18:30:04 -06:00
Sean Sube 34fa3f6341 fix(api): limit outpainting using image size params 2023-01-14 17:09:41 -06:00
Sean Sube c29c92ed90 fix(api): resize images after getting request params 2023-01-14 17:06:29 -06:00
Sean Sube d9bbb9bb5a feat(api): take outpainting dimensions from query params 2023-01-14 16:59:38 -06:00
Sean Sube 899d41a38d run outpainting at original size 2023-01-14 16:31:47 -06:00
Sean Sube 23ddbc6b10 build full-size latents for outpainting 2023-01-14 16:28:43 -06:00
Sean Sube de13d2d6ef remove debug print 2023-01-14 16:27:34 -06:00
Sean Sube 4233c34813 syntax fix, save noise image 2023-01-14 16:03:56 -06:00
Sean Sube b24b1eb961 feat(gui): produce noise based on source image histogram 2023-01-14 15:19:41 -06:00
Sean Sube c8c548183d multiply source by inverted mask 2023-01-14 14:34:35 -06:00
Sean Sube 5c3d42876f convert pixel back to int 2023-01-14 14:24:36 -06:00
Sean Sube 47df0ecaff convert noise to multiplier 2023-01-14 14:23:31 -06:00
Sean Sube 6216486325 isolate noise blend, print errors 2023-01-14 14:20:42 -06:00
Sean Sube 1e24018b57 feat(api): blend outpainting border with noise 2023-01-14 14:01:15 -06:00
Sean Sube 9ed3a3fd3e move test to inpaint endpoint 2023-01-14 13:24:25 -06:00
Sean Sube a3029c30a6 fix(api): use correct param name for platform 2023-01-14 13:19:04 -06:00
Sean Sube 66dc5322d0 feat(api): add helper to expand images for outpainting 2023-01-14 13:17:16 -06:00
Sean Sube e8b580a5de fix(api): get default params from file, enforce minimum params 2023-01-14 12:45:18 -06:00
Sean Sube fa82ac18ab fix(api): send CORS more consistently 2023-01-14 10:18:53 -06:00