Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

open file weights.db fail #39

Open
maxwell60701 opened this issue Jun 17, 2024 · 0 comments
Open

open file weights.db fail #39

maxwell60701 opened this issue Jun 17, 2024 · 0 comments

Comments

@maxwell60701
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant