astrorama / SourceXtractorPlusPlus

SourceXtractor++, the next generation SExtractor
https://astrorama.github.io/SourceXtractorPlusPlus/
GNU Lesser General Public License v3.0
72 stars 9 forks source link

ONNX support not available #569

Closed louisquilley closed 4 months ago

louisquilley commented 5 months ago

Hello, I am trying to run some old configurations files that used to work, and also the example from @mkuemmel 2022 paper for bar and ring model in M95, that have in common to use ONNX ad hoc models for the model-fitting. In all cases srx++ fails with the message SourceXtractor FATAL : Trying to use ONNX models but ONNX support is not available

I understand that I am missing something but it is unclear to me what ONNX support refers to ?

Thank you in advance for your help. Louis

marcschefer commented 5 months ago

Hi Louis,

The SX++ executable needs to be compiled with the ONNX runtime library in order to be able to use that functionality. Our pre-compiled executables should already have it and install ONNX as a dependency if needed. Which version of SX++ are you using and how did you install it?

If it was built from source you need to have the onnx runtime library (1.15) installed during compilation.

Cheers, Marc

louisquilley commented 5 months ago

Thank you for your quick answer. I am running my jobs on a cluster of machines managed by @ebertin so he dealt with the installation and I will have to ask him for more details. What I can tell you for sure is that it is the version 0.19.2 of SX++

marcschefer commented 5 months ago

The onnx runtime must be missing from that installation, then.

For version 0.19.2, So it should be ONNX runtime < 1.15 and for version 0.21 it should be >= 1.15

louisquilley commented 5 months ago

Ok thank you, I will see to get it installed then

mkuemmel commented 4 months ago

@louisquilley is this solved? Can we close this?

louisquilley commented 4 months ago

Yes it is solved