We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 332aab7 commit fe3ae56Copy full SHA for fe3ae56
examples/server/main.cpp
@@ -420,6 +420,9 @@ int main(int argc, const char** argv) {
420
return;
421
}
422
423
+ if (gen_params.sample_params.sample_steps > 100)
424
+ gen_params.sample_params.sample_steps = 100;
425
+
426
if (!gen_params.process_and_check(IMG_GEN, "")) {
427
res.status = 400;
428
res.set_content(R"({"error":"invalid params"})", "application/json");
@@ -598,6 +601,9 @@ int main(int argc, const char** argv) {
598
601
599
602
600
603
604
605
606
607
608
609
0 commit comments