From 3824297bd78df34ced8dd7feec9f5a079046e01e Mon Sep 17 00:00:00 2001 From: vmobilis <75476228+vmobilis@users.noreply.github.com> Date: Tue, 4 Mar 2025 01:20:08 +0300 Subject: [PATCH] Silence some warnings about precision loss --- examples/cli/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/cli/main.cpp b/examples/cli/main.cpp index a2f1d1fa..af6b2bbd 100644 --- a/examples/cli/main.cpp +++ b/examples/cli/main.cpp @@ -126,9 +126,9 @@ struct SDParams { int upscale_repeats = 1; std::vector skip_layers = {7, 8, 9}; - float slg_scale = 0.; - float skip_layer_start = 0.01; - float skip_layer_end = 0.2; + float slg_scale = 0.f; + float skip_layer_start = 0.01f; + float skip_layer_end = 0.2f; }; void print_params(SDParams params) {