Keras-RetinaNet-for-Open-Images-Challenge-2018 icon indicating copy to clipboard operation
Keras-RetinaNet-for-Open-Images-Challenge-2018 copied to clipboard

Tensorflow & Keras version issues

Open nattu22 opened this issue 4 years ago • 2 comments
trafficstars

Hi, I tried with various versions of tensorflow and keras, but not able to run the code. If possible add the requirements.txt.

nattu22 avatar Aug 08 '21 06:08 nattu22

In retinanet issues, someone routed the these version. Installed it, but not working !pip install -U -q segmentation-models !pip install -q tensorflow==2.1 !pip install -q keras==2.3.1 !pip install -q tensorflow-estimator==2.1.

import os os.environ['CUDA_VISIBLE_DEVICES'] = '0' os.environ["SM_FRAMEWORK"] = "tf.keras"

from tensorflow import keras import segmentation_models as sm

nattu22 avatar Aug 08 '21 07:08 nattu22

It's very old code. It works with TF 1.* version:

Try this settings:

tensorflow-gpu==1.15.3
keras==2.2.3
keras-resnet==0.1.0
keras-retinanet==0.4.1

or this - I used in my latest project with given code. But I probably changed something:

tensorflow-gpu==1.15.3
keras==2.3.1
keras-resnet==0.1.0
keras-retinanet==0.5.1

ZFTurbo avatar Aug 08 '21 07:08 ZFTurbo