axodox / axodox-machinelearning

This repository contains a pure C++ ONNX implementation of multiple offline AI models, such as StableDiffusion (1.5 and XL), ControlNet, Midas, HED and OpenPose.
MIT License
604 stars 34 forks source link

Failed to set to the execution context #15

Closed lingchingteng closed 1 year ago

lingchingteng commented 1 year ago

Hi axodox,

I want to run the test, but all of the test results show "Failed to set to the execution context."

I have run update_dependencies.ps1 and build_nuget.ps1.

Did I miss something?

Thanks!

axodox commented 1 year ago

That is because Windows ships an old version of DirectML and ONNX runtime, and it is loaded instead the latest Nuget into the test runner. A workaround is to copy these files in the folder of the test runner.

However you will also need other input files and models to run the tests, which are currently not included in the repo due to their size, and GitHub LFS costs.

You may however use the tests as usage examples.