1
0
Fork 0
Commit Graph

394 Commits

Author SHA1 Message Date
Sean Sube bdefaec0d2
serialize metadata 2024-01-03 23:27:40 -06:00
Sean Sube fac98ab239
keep result of each stage with metadata 2024-01-03 23:13:21 -06:00
Sean Sube e0d0933092
fix missing param 2024-01-03 22:20:27 -06:00
Sean Sube 46bcd5af86
make response types match 2024-01-03 22:15:50 -06:00
Sean Sube 28fc2082c7
track results after each stage 2024-01-03 21:31:41 -06:00
Sean Sube 4f1bc84fd9
initialize fields 2024-01-03 21:20:46 -06:00
Sean Sube 0c504e3f69
report stage and tile count in progress 2024-01-03 21:16:44 -06:00
Sean Sube 44a8d61082
feat: add batch endpoints for cancel and status, update responses 2024-01-03 19:09:18 -06:00
Sean Sube 19c91f70f5
add networks to metadata 2024-01-02 22:14:21 -06:00
Sean Sube 46098960d8
attempt to save grid mode metadata 2024-01-02 21:49:22 -06:00
Sean Sube 297285fb6f
fix(api): upscale during highres regardless of upscale checkbox 2024-01-02 21:34:11 -06:00
Sean Sube 4edd39740b
add image metadata to stage results 2024-01-02 21:24:27 -06:00
Sean Sube de8ab6f1c9
fix(api): use correct part of the gfpgan output 2023-12-31 07:04:43 -06:00
Sean Sube c6718a3e3b
fix(api): make sure upscaling only runs once regardless of correction options 2023-12-31 06:39:00 -06:00
Sean Sube 71fbc871a6
feat: add API parameter for upscale checkbox 2023-12-30 19:34:40 -06:00
Sean Sube 7abe6dc6a9
feat(api): enable 1x upscaling models 2023-12-30 11:59:52 -06:00
Sean Sube f6134dafc6
fix errors in local std denoising 2023-12-29 23:19:35 -06:00
Sean Sube 1035915d36
apply lint 2023-12-29 08:19:58 -06:00
Sean Sube ce90ffb0ee
use threshold range for local denoising 2023-12-29 08:18:37 -06:00
Sean Sube f28fdda47a
feat(api): add stage for local standard deviation denoising for XL 2023-12-27 20:17:35 -06:00
Sean Sube 7d56689527
pass device to wrapper 2023-12-27 09:01:38 -06:00
Sean Sube d17b946091
wrap ESRGAN helper 2023-12-27 08:47:06 -06:00
Sean Sube cfe7a55935
type and test fixes 2023-12-26 20:21:34 -06:00
Sean Sube 2b65077d82
type lint 2023-12-26 08:06:16 -06:00
Sean Sube 3d245a663d
fix(api): correct origin point when blending images (#445) 2023-12-22 11:31:31 -06:00
Sean Sube 1fbee0ae52
fix(api): tile stage masks 2023-12-20 23:33:13 -06:00
Sean Sube f6ff53d0d1
pass correct crop 2023-12-20 23:02:58 -06:00
Sean Sube de28ecdfad
fix(api): handle blending images of different sizes better 2023-12-20 22:58:57 -06:00
Sean Sube 6e5d10f521
apply lint 2023-12-18 22:04:24 -06:00
Sean Sube 2263093c4d
convert images to cv2 2023-12-18 21:53:20 -06:00
Sean Sube 3e1db707ac
fix(api): update codeformer patches for new lib 2023-12-18 21:12:08 -06:00
Sean Sube 7ed30ee470
feat(api): switch to codeformer lib that works with torch 2.x 2023-12-18 21:06:39 -06:00
Sean Sube 6c4f4f334f
always use alpha in blend stage 2023-12-14 20:12:39 -06:00
Sean Sube d95cfc582a
apply lint 2023-12-04 18:45:28 -06:00
Sean Sube 95a62b17ed
fix(api): detect all mask keys, immediately bubble up cancellation errors 2023-12-04 18:44:58 -06:00
Sean Sube ae34e466ef
more lint, avoid some unnecessary errors 2023-12-03 12:57:56 -06:00
Sean Sube 9b4ae0916b
lint and test fixes 2023-12-03 12:53:50 -06:00
Sean Sube 572db45bcb
lint and type fixes 2023-12-03 12:13:45 -06:00
Sean Sube 10fab12cd0
dedupe new latent resizing code 2023-12-03 11:11:28 -06:00
Sean Sube 48d0d3e22d
use presence of stage mask to trigger tiling 2023-11-29 21:52:32 -06:00
Sean Sube 042181b9c5
fix(api): correctly handle image stacks in persist stages 2023-11-27 21:45:32 -06:00
Sean Sube 828c9511a6
fix(api): restore single-tile code path 2023-11-27 18:53:39 -06:00
Sean Sube a9b4303d25
switch upscaling to np random 2023-11-26 15:29:07 -06:00
Sean Sube 93e3125e28
fix(api): be more careful with VAE patch flags, add margin to latents if needed 2023-11-25 23:18:57 -06:00
Sean Sube 83ebd77c3d
fix(api): handle blending numpy arrays 2023-11-25 21:19:11 -06:00
Sean Sube 1c3b2f8dfc
fix(api): better handling of alpha channels 2023-11-25 18:52:47 -06:00
Sean Sube 6ecdae44a2
fix(api): pass correct outscale to highres stages 2023-11-25 12:25:16 -06:00
Sean Sube 192bd08156
apply sonar lint 2023-11-25 07:50:36 -06:00
Sean Sube 51f0806c4a
restore inpainting fix 2023-11-23 11:36:03 -06:00
Sean Sube c4aa262ed7
try a different hack 2023-11-19 23:40:34 -06:00