gogulan-k / FID-Net

Deep Neural Networks for Analysing NMR time domain data
MIT License
10 stars 6 forks source link

installation problem #2

Closed eisoab closed 1 week ago

eisoab commented 2 months ago

I installed fidnet from scratch and tried

fidnet run-examples

but get a long trace that ends with the following error:

[....]
ValueError: A KerasTensor cannot be used as input to a TensorFlow function. A KerasTensor is a symbolic placeholder for a shape and 
dtype, used when constructing Keras Functional models or Keras Functions. You can only use it as input to a Keras layer or a Keras 
operation (from the namespaces `keras.layers` and `keras.operations`). You are likely doing something like:
[...]

My impression is some versions of current packages have become incompatible (searching for this error message finds the advice to downgrade to numpy=1.19.5, which may help but just leads to another error message.)

Could you supply a environment.yml file of a working system with all explicit package versions?

-E

TiagoLopesGomes commented 1 month ago

Got it to work by using tensorflow 2.14

Cheers,

Tiago

eisoab commented 1 month ago

That worked, thanks! Eiso

Gerardwx commented 1 month ago

@TiagoLopesGomes Which Python version are you using? I'm still getting errors with Python 3.10

TiagoLopesGomes commented 1 month ago

Hi,

Python version is 3.11.9

Cheers

gogulan-k commented 1 week ago

Current environment.yml is working on NMRBox

Gerardwx commented 1 week ago

NMRbox doesn't use the environment.yml. We're installing in a Python virtual environment.

We're using python3.11 and add the additional requirements attached. requirements.txt