open file weights.db fail
Opened this issue · 0 comments
i use branch Direct-ML-EP,here is my stacktrace:
Microsoft.ML.OnnxRuntime.OnnxRuntimeException
HResult=0x80131500
Message=[ErrorCode:Fail] Deserialize tensor up_blocks.1.attentions.1.transformer_blocks.0.norm1.weight failed.GetFileLength for StableDiffusion\bin\x64\Debug\net6.0\unet\weights.pb failed:open file weights.pb fail, errcode = 2 - ϵͳ�Ҳ���ָ�����ļ���
Source=Microsoft.ML.OnnxRuntime
StackTrace:
at Microsoft.ML.OnnxRuntime.NativeApiStatus.VerifySuccess(IntPtr nativeStatus)
at Microsoft.ML.OnnxRuntime.InferenceSession.Init(String modelPath, SessionOptions options, PrePackedWeightsContainer prepackedWeightsContainer)
at Microsoft.ML.OnnxRuntime.InferenceSession..ctor(String modelPath, SessionOptions options)
at StableDiffusion.ML.OnnxRuntime.UNet.Inference(String prompt, StableDiffusionConfig config) at StableDiffusionOnnx\StableDiffusion.ML.OnnxRuntime\UNet.cs :line 89
at StableDiffusion.Program.Main(String[] args) at StableDiffusionOnnx\StableDiffusion\Program.cs : line 37
my graphic card is nvidia RTX3060, installed cuda 11.6