File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -780,10 +780,10 @@ class StableDiffusionGGML {
780780 sd_preview_policy_t preview_mode,
781781 ggml_tensor* result,
782782 std::function<void (int , sd_image_t )> step_callback) {
783- const size_t channel = 3 ;
784- size_t width = latents->ne [0 ];
785- size_t height = latents->ne [1 ];
786- size_t dim = latents->ne [2 ];
783+ const uint32_t channel = 3 ;
784+ uint32_t width = latents->ne [0 ];
785+ uint32_t height = latents->ne [1 ];
786+ uint32_t dim = latents->ne [2 ];
787787 if (preview_mode == SD_PREVIEW_PROJ) {
788788 const float (*latent_rgb_proj)[channel];
789789
@@ -795,6 +795,7 @@ class StableDiffusionGGML {
795795 } else if (sd_version_is_flux (version)) {
796796 latent_rgb_proj = flux_latent_rgb_proj;
797797 } else {
798+ LOG_WARN (" No latent to RGB projection known for this model" );
798799 // unknown model
799800 return ;
800801 }
@@ -807,9 +808,11 @@ class StableDiffusionGGML {
807808 latent_rgb_proj = sd_latent_rgb_proj;
808809 } else {
809810 // unknown model
811+ LOG_WARN (" No latent to RGB projection known for this model" );
810812 return ;
811813 }
812814 } else {
815+ LOG_WARN (" No latent to RGB projection known for this model" );
813816 // unknown latent space
814817 return ;
815818 }
You can’t perform that action at this time.
0 commit comments