Cannot import name 'Recurrent' from 'keras.layers

I am trying to use PredNet to predict next frame using KITTI dataset (PredNet by coxlab).
i got this error after executing

2023-06-07 17:50:49.593803: I tensorflow/core/platform/] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-06-07 17:50:51.155420: W tensorflow/compiler/tf2tensorrt/utils/] TF-TRT Warning: Could not find TensorRT
Traceback (most recent call last):
File “”, line 18, in
from prednet import PredNet
File “/home/mehdiexpleo/Desktop/LIFE/Sensor_Check/PredNet/prednet/”, line 5, in
from keras.layers import Recurrent

Thank you for your time


from keras.layers import Recurrent

This layer is deprecated.

You can use ConvLSTM2D layer layer if it matches your use-case.

Thank you!