@@ -888,13 +888,13 @@ bool parseJsonPrompt(std::string json_str, SDParams* params) {
888
888
}
889
889
try {
890
890
bool vae_tiling = payload[" vae_tiling" ];
891
- printf (" VAE_tiling : %s" , vae_tiling ? " true" : " false" );
892
891
if (params->ctxParams .vae_tiling != vae_tiling) {
893
892
params->ctxParams .vae_tiling = vae_tiling;
894
893
updatectx = true ;
895
894
}
896
895
} catch (...) {
897
896
}
897
+
898
898
try {
899
899
std::string model = payload[" model" ];
900
900
if (params->ctxParams .model_path != params->models_dir + model) {
@@ -957,7 +957,7 @@ bool parseJsonPrompt(std::string json_str, SDParams* params) {
957
957
try {
958
958
std::string schedule = payload[" schedule" ];
959
959
int schedule_found = -1 ;
960
- for (int m = 0 ; m < N_SAMPLE_METHODS ; m++) {
960
+ for (int m = 0 ; m < N_SCHEDULES ; m++) {
961
961
if (!strcmp (schedule.c_str (), schedule_str[m])) {
962
962
schedule_found = m;
963
963
}
@@ -1009,8 +1009,8 @@ void worker_thread() {
1009
1009
queue_cond.wait (lock, [] { return !task_queue.empty () || stop_worker; });
1010
1010
1011
1011
if (!task_queue.empty ()) {
1012
- is_busy = true ;
1013
- auto task = task_queue.front ();
1012
+ is_busy = true ;
1013
+ auto task = task_queue.front ();
1014
1014
task_queue.pop ();
1015
1015
lock.unlock ();
1016
1016
task ();
@@ -1080,7 +1080,7 @@ void start_server(SDParams params) {
1080
1080
bool updateCTX = false ;
1081
1081
try {
1082
1082
std::string json_str = req.body ;
1083
- updateCTX = parseJsonPrompt (json_str, ¶ms);
1083
+ updateCTX = parseJsonPrompt (json_str, ¶ms);
1084
1084
} catch (json::parse_error& e) {
1085
1085
// assume the request is just a prompt
1086
1086
// LOG_WARN("Failed to parse json: %s\n Assuming it's just a prompt...\n", e.what());
@@ -1105,6 +1105,7 @@ void start_server(SDParams params) {
1105
1105
}
1106
1106
1107
1107
if (sd_ctx == NULL ) {
1108
+ printf (" Loading sd_ctx\n " );
1108
1109
json task_json = json::object ();
1109
1110
task_json[" status" ] = " Loading" ;
1110
1111
task_json[" data" ] = json::array ();
0 commit comments