cassiebreviu / StableDiffusion

Inference Stable Diffusion with C# and ONNX Runtime
MIT License
218 stars 49 forks source link

device feedback for GraphOptimizationLevel #38

Open songshizhao opened 2 months ago

songshizhao commented 2 months ago

im using a 5600G cpu with intergrated gpu from AMD and i got Microsoft.ML.OnnxRuntime.OnnxRuntimeException:“[ErrorCode:Fail] ” after i set GraphOptimizationLevel from ORT_ENABLE_ALL to ORT_DISABLE_ALL ,it worked you can give some infos or close this .just let you know.:> //sessionOptions.GraphOptimizationLevel = GraphOptimizationLevel.ORT_ENABLE_ALL; sessionOptions.GraphOptimizationLevel = GraphOptimizationLevel.ORT_DISABLE_ALL; and is there a way to load safetensors files or how to convert safetensors to onnx?