feat: add a stand-alone upscale endpoint to the server (#2026)

This commit is contained in:
Nick Beerbower
2026-09-25 01:13:23 +08:00
committed by GitHub
parent caa111adf3
commit 4dfe8f5d45
7 changed files with 321 additions and 9 deletions
+2
View File
@@ -558,6 +558,8 @@ SD_API bool upscale(upscaler_ctx_t* upscaler_ctx,
int* num_images_out);
SD_API int get_upscale_factor(upscaler_ctx_t* upscaler_ctx);
// Reads model metadata only; returns 0 if the file is not a recognized RGB ESRGAN model.
SD_API int get_upscaler_model_scale(const char* model_path);
typedef struct adetailer_ctx_t adetailer_ctx_t;