ZFTurbo / classification_models_3D

Set of models for classifcation of 3D volumes
MIT License
150 stars 30 forks source link

Update convnext.py #19

Closed kadirb4rut closed 10 months ago

kadirb4rut commented 10 months ago

in the latest tensorflow versions (TF 2.13, 2.14, 2.15), the keras.engine, keras.layers, keras.utils packages have been moved under the tensorflow.python package.

ZFTurbo commented 10 months ago

Did you check if overall package works in latest TF/Keras?

kadirb4rut commented 10 months ago
Ekran Resmi 2023-11-27 03 50 30 Ekran Resmi 2023-11-27 03 51 01

Yes, I have been working with 3D models using this library for a while, and thanks to these changes I made in the efficientnet.py, efficientnet_v2.py and convnext.py files, I can use them without any errors. I am also sending two sample images of the "Module Not Found" errors I received before making changes to these files, you can see the errors I received there.

ZFTurbo commented 10 months ago

What exact version of tensorflow and keras are you using? We need to change requirements too I think.

kadirb4rut commented 10 months ago

I am currently using TF 2.15 and Keras 2.15. However, in my tests, the lowest versions on which these changes work are TF 2.14 and Keras 2.14. So you can change the requirements to "tensorflow>=2.14.0" and "keras>=2.14.0" for both packages.