mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-11 03:24:30 +00:00
feat: add a stand-alone upscale endpoint to the server (#2026)
This commit is contained in:
1 parent
caa111adf3
commit
4dfe8f5d45
7 files changed
+321
-9
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user