Skip to content

Which version of StableDiffusion.NET is compatible with which version(s) of stable-diffusion.cpp? #59

@vugenti

Description

@vugenti

In another issue you explained that the stable-diffusion.cpp API is changing over time and not all versions of StableDiffusion.NET and stable-diffusion.cpp will not be compatible. You also specified that the latest versions of each respective project are currently incompatible. What versions can be used together without causing an exception? The following versions of stable-diffusion.cpp cause SEHException:

sd-master-30b3ac8-bin-win-avx512-x64
sd-master-23de7fc-bin-win-avx512-x64
sd-master-d7c7a34-bin-win-avx512-x64

Here are the exception details when the incompatible versions are used:

Unhandled exception. System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception.
   at StableDiffusion.NET.Native.<txt2img>g____PInvoke|10_0(sd_ctx_t* __sd_ctx_native, Byte* __prompt_native, Byte* __negative_prompt_native, Int32 __clip_skip_native, Single __cfg_scale_native, Single __guidance_native, Single __eta_native, Int32 __width_native, Int32 __height_native, Sampler __sample_method_native, Int32 __sample_steps_native, Int64 __seed_native, Int32 __batch_count_native, sd_image_t* __control_cond_native, Single __control_strength_native, Single __style_strength_native, SByte __normalize_input_native, Byte* __input_id_images_path_native, Int32** __skip_layers_native, Int32 __skip_layers_count_native, Single __slg_scale_native, Single __skip_layer_start_native, Single __skip_layer_end_native)
   at StableDiffusion.NET.Native.txt2img(sd_ctx_t* sd_ctx, String prompt, String negative_prompt, Int32 clip_skip, Single cfg_scale, Single guidance, Single eta, Int32 width, Int32 height, Sampler sample_method, Int32 sample_steps, Int64 seed, Int32 batch_count, sd_image_t* control_cond, Single control_strength, Single style_strength, Boolean normalize_input, String input_id_images_path, Int32[]& skip_layers, Int32 skip_layers_count, Single slg_scale, Single skip_layer_start, Single skip_layer_end)
   at StableDiffusion.NET.DiffusionModel.Txt2Img(NativeParameters parameter)
   at StableDiffusion.NET.DiffusionModel.TextToImage(String prompt, DiffusionParameter parameter)
   at Program.<Main>$(String[] args)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions