CTCModel
It seems like there are two import statements for **CTCModel** from different locations:
```
from keras_ctcmodel.CTCModel import CTCModel as CTCModel
from CTCModel import CTCModel
```
You should remove one of the import statements, depending on where the **CTCModel** class is defined in your project. 
Ok, I understood, thanks a lot.
________________________________
De : Durgesh Patel ***@***.***>
Envoyé : samedi 25 mars 2023 21:41
À : tensorflow/tensorflow ***@***.***>
Cc : Achraf EL ASRI ***@***.***>; Author ***@***.***>
Objet : Re: [tensorflow/tensorflow] CTCModel (Issue #60063)


It seems like there are two import statements for CTCModel from different locations:

from keras_ctcmodel.CTCModel import CTCModel as CTCModel
from CTCModel import CTCModel


You should remove one of the import statements, depending on where the CTCModel class is defined in your project.

—
Reply to this email directly, view it on GitHub<https://github.com/tensorflow/tensorflow/issues/60063#issuecomment-1483917680>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ASD4HAUQYP7L3LQMAYB7753W55KANANCNFSM6AAAAAAWDSQCY4>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
 @MrAchraf10 Could you please see the installation instructions as below 
```
$ pip install keras-ctcmodel

OR

$ git clone https://github.com/cyprienruffino/CTCModel
 python setup.py install --user


```
Let us know if you still face the issue for importing CTCModel using the following 
```
from keras_ctcmodel.CTCModel import CTCModel as CTCModel

```
Thank you! This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you. This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further. Are you satisfied with the resolution of your issue?
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60063">Yes</a>
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60063">No</a>

<details><summary>Click to expand!</summary> 
 
 ### Issue Type

Bug

### Have you reproduced the bug with TF nightly?

Yes

### Source

source

### Tensorflow Version

2.11.1

### Custom Code

Yes

### OS Platform and Distribution

_No response_

### Mobile device

_No response_

### Python version

_No response_

### Bazel version

_No response_

### GCC/Compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current Behaviour?

```shell
ImportError                               Traceback (most recent call last)
Cell In[1], line 7
      5 from keras.models import Model
      6 import tensorflow_addons as tfa
----> 7 from keras_ctcmodel.CTCModel import CTCModel as CTCModel
      8 from CTCModel import CTCModel
      9 import pickle

File ~\anaconda3\envs\tensorflow\lib\site-packages\keras_ctcmodel\CTCModel.py:7
      5 import os
      6 from keras import Input
----> 7 from keras.engine import Model
      8 from keras.layers import Lambda
      9 from keras.models import model_from_json, Sequential

ImportError: cannot import name 'Model' from 'keras.engine'

I can't find a solution to this problem, please, I need your help !!
```


### Standalone code to reproduce the issue

```shell
from keras.layers import TimeDistributed, Activation, Dense, Input, Bidirectional, LSTM, Masking, GaussianNoise
from keras.layers import Conv2D, MaxPooling2D, Reshape, Flatten, Dense
from tensorflow.keras.layers import BatchNormalization
from keras.optimizers import Adam
from keras.models import Model
import tensorflow_addons as tfa
from keras_ctcmodel.CTCModel import CTCModel as CTCModel
from CTCModel import CTCModel
```


### Relevant log output

_No response_</details>