IsoNet-cryoET / IsoNet

Self-supervised learning for isotropic cryoET reconstruction
https://www.nature.com/articles/s41467-022-33957-8
MIT License
67 stars 12 forks source link

suport for tf 2.1 dropped? #12

Closed genio0815 closed 2 years ago

genio0815 commented 3 years ago

Hi,

when using the latest version of the software with tensorflow 2.1, following the tutorial the analysis crashes at the refine step with the error msg:

File "/software/f2020/software/tensorflow/2.1.0-fosscuda-2019a-python-3.7.2/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/training_utils.py", line 874, in collect_per_output_metric_info

    Expected a list or dictionary, found:  + str(metrics))

TypeError: Type of metrics argument not understood. Expected a list or dictionary, found: ('mse', 'mae') `

Is this possibly due to changes in this commit https://github.com/Heng-Z/IsoNet/commit/4c0e1b44b496feb2ff2d10f59b945bc17e5c1bfc , thus dropped support for tf 2.1?

cheers

procyontao commented 3 years ago

Hi,

Thank you very much for the feedback. We realized that the current software indeed does not support tensorflow2.1 and there is no easy fix of this problem.

Please upgrade your tensorflow for now. We may or may not able to resolve this compatibility issue.

Cheers

genio0815 commented 3 years ago

Hi,

right, using tf 2.5 it's working - thx!

cheers