JetBrains-Research / kinference

Running ONNX models in vanilla Kotlin
Apache License 2.0
155 stars 6 forks source link

Enable to start exemple #159

Open Solido opened 1 year ago

Solido commented 1 year ago

Thanks for the initiative!

It seems to look for a specific patched version of onnx Could not find com.microsoft.onnxruntime:onnxruntime:1.13.1.patched

Specifying an explicit version will find it but I'm not sure it's compatible. implementation("com.microsoft.onnxruntime:onnxruntime:1.13.1")

I run through a lot of errors then java.lang.ClassNotFoundException: javaslang.λ

cupertank commented 10 months ago

I'm sorry for long answer, I just didn't get notification about your issue. implementation("com.microsoft.onnxruntime:onnxruntime:1.13.1") is not compatible, you mustn't override it.

Please add this to your build.gradle.kts file:

repositories {
        maven(url = "https://packages.jetbrains.team/maven/p/ki/maven")
        maven(url = "https://packages.jetbrains.team/maven/p/grazi/grazie-platform-public")
}

and remove implementation("com.microsoft.onnxruntime:onnxruntime:1.13.1")

I'll add it to our README