SNU-LIST / chi-separation

Code for magnetic susceptibility source separation
22 stars 7 forks source link

Error using onnxmex with Chisep_script #5

Open weberam2 opened 11 months ago

weberam2 commented 11 months ago

Hello,

I get the following error when trying to run chi_sepnet_general:

Expiry Date:06-Feb-2025 Error using onnxmex Opening file '~/matlab/chi-separation/Chi_Sep_Tool/models/QSMmodel.onnx' failed.

Error in nnet.internal.cnn.onnx.ModelProto (line 33) ModelPtr = onnxmex(int32(FuncName.EdeserializeFromFile), filename);

Error in nnet.internal.cnn.onnx.importONNXNetwork (line 7) modelProto = nnet.internal.cnn.onnx.ModelProto(Filename);

Error in importONNXNetwork (line 52) Network = nnet.internal.cnn.onnx.importONNXNetwork(modelfile, varargin{:});

Error in chi_sepnet

Error in chi_sepnet

Error in chi_sepnet_general

Error in Chisep_script_v1 (line 179) [x_pos, x_neg, x_tot] = chi_sepnet_general(home_directory, local_field_hz, map, mask_brain_new, Dr, B0_direction, CF, voxel_size, matrix_size, have_r2map);

What is weird is that it did work ONCE...

I am on: Matlab R2021a Ubuntu 20.04.6 LTS x86_64

weberam2 commented 11 months ago

What is weird is I don't get the same error when running the GUI