You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in my .net8 WinUI project.
My codes:
public MainWindow()
{
this.InitializeComponent();
// 获取当前应用的安装目录
string model_folder = Path.Combine(Package.Current.InstalledLocation.Path, "model");
// 构建完整的模型路径
var fluxPath = Path.Combine(model_folder, "flux1-schnell-q4_k.gguf");
var clipPath = Path.Combine(model_folder, "clip_l.safetensors");
var t5xxlPath = Path.Combine(model_folder, "t5xxl_fp8_e4m3fn.safetensors");
var aePath = Path.Combine(model_folder, "ae.safetensors");
// 初始化模型
model = ModelBuilder.Flux(fluxPath, clipPath, t5xxlPath, aePath)
.WithMultithreading()
.Build();
}
in the line:
model = ModelBuilder.Flux(fluxPath, clipPath, t5xxlPath, aePath)
.WithMultithreading()
.Build();
run error:
Unable to load DLL 'stable-diffusion' or one of its dependencies: 找不到指定的模块。 (0x8007007E)
How to solve it?
Thank you.
The text was updated successfully, but these errors were encountered:
Assuming that you have installed one of the backend packages, I'd guess it's the same as #11
Some packaging issue that I can't really help with as it's a project specific thing.
Are you running your application in 32bit? Otherwise I'm pretty sure the dll is just not found which would be related to your project setup/publish/packing. You could try to call StableDiffusionCpp.LoadNativeLibrary at application start with the path to the stable-diffusion.dll
in my .net8 WinUI project.
My codes:
public MainWindow()
{
this.InitializeComponent();
}
in the line:
model = ModelBuilder.Flux(fluxPath, clipPath, t5xxlPath, aePath)
.WithMultithreading()
.Build();
run error:
Unable to load DLL 'stable-diffusion' or one of its dependencies: 找不到指定的模块。 (0x8007007E)
How to solve it?
Thank you.
The text was updated successfully, but these errors were encountered: