hshatti / TONNXRuntime

TOnnxRuntime is a Microsoft ONNXRuntime AI and Machine Learning Library for Freepascal / Delphi
MIT License
49 stars 10 forks source link

Delphi example doesn't work #1

Closed safwatbasha closed 1 year ago

safwatbasha commented 1 year ago

when I run Delphi example it' compile ok but application does not work (message :) Capture

hshatti commented 1 year ago

Hi, this could be an optimizer issue with Delphi Community Edition (10.4 Update 2) , try to rebuild the example (Shift - F9) instead of compiling and run again see if the problem is solved. Cheers H

safwatbasha commented 1 year ago

I'm using Delphi 11.1 . tried to rebuild and I have the same issue .

hshatti commented 1 year ago

There could be many reasons causing this issue, i don't know what environment you are using but here are some steps to check:

Let me know if this works Cheers H

safwatbasha commented 1 year ago

working fine . thank you

On Sun, Mar 5, 2023 at 2:25 PM Haitham Shatti @.***> wrote:

There could be many reasons causing this issue, i don't know what environment you are using but here are some steps to check:

  • The examples were tested on onnxruntime version 1.13.1, in case you are using Windows x64, download the library and place the dll's next to the output executable, you can find the library here:

    https://github.com/microsoft/onnxruntime/releases/download/v1.13.1/onnxruntime-win-x64-1.13.1.zip

  • the example runs on Windows 11 , x64 bit so make sure the onnx libraries and the example are build with 64 bit otherwise use the onnxruntime relevant library
  • the Delphi example uses an FMX project make sure your Delphi FMX libraries are installed or you can refere to the Lazarus project to build in VCL
  • always make sure to build the project before compiling to ensure all unit libraries were updated Cheers H

— Reply to this email directly, view it on GitHub https://github.com/hshatti/TONNXRuntime/issues/1#issuecomment-1455077235, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL6S27753PLKG5H7BQ47CDLW2SA5BANCNFSM6AAAAAAVN3YKSA . You are receiving this because you authored the thread.Message ID: @.***>