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

This commit is contained in:
Nick Beerbower authored and GitHub committed 2026-09-25 01:13:23 +08:00
1 parent caa111adf3
commit 4dfe8f5d45
7 files changed
+321 -9

No files matched your search

+4
View File
@@ -2,6 +2,7 @@
#include <algorithm>
#include <cstdint>
#include <filesystem>
#include <mutex>
#include <string>
#include <vector>
@@ -43,6 +44,9 @@ struct UpscalerEntry {
std::string fullpath;
std::string model_name;
int scale = 4;
int image_upscale_factor = 0;
uintmax_t file_size = 0;
std::filesystem::file_time_type last_modified;
};
struct ServerRuntime {