-
Notifications
You must be signed in to change notification settings - Fork 11.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Could not build a TypeSpec for <KerasTensor: shape=(None, None, 4) #2458
Comments
Same here. |
I got the same error when trained with tensorflow 2.4 |
Have a look at #2427. Sounds like this will help |
@RisingPhoelix I tried this solution, and it seems worked at first. And I will do more test with this repo and tensorflow 2.4.1. Thanks! |
Hi there, I am suffering the same problem with tensorflow 2.4.1, could you give me some idea how to fix it? many thanks |
Anyone that fixed this problem? Facing the same issue |
For me, it got fixed by selection tensorflow version |
has anyone find any solution?? |
i tried the same but keras version is giving me problems. what is ur keras version? |
be sure to checkout the tesorflow2.0 branch |
found out solution? |
I resolve the problem and can work with below environment: Can solve above problem. But another problem produces:
The Solutions : There are 2 choices -
to
Hope to help you! |
I have the same problem! My TensorFlow is also 2.4.1. |
I had the same problem, when I replaced all the Once I put |
Hi everyone, I am trying to concatenate basic MLP and EfficientNet to use both image features and meta data feature. But i got same error : Can anyone help me please? def build_model():
def create_mlp(dim,regularizer=None): Create the input to the final set of layers as the output of both the MLP and EficentNet Error is giving concatenate part. Thank you in advance ! |
I got this error when I try to run this command: python3.6 |
Same problem here and I tried the solution provided by @linaouro, but it still doesn't work. Does anyone have an idea? Thank you in advance! Google colab Traceback (most recent call last): |
@enoceanwei Hi, I think we should use tensorflow v1, not v2. |
@panovr But it will give another error because rest of part it made with v2.5 |
@Tzu-Jan I think you should upgrade your python to 3.8 |
@linaouro Hello Linaouro. Thanks for the leekunhee's version. But I have a problem. When I was running the following cell in train_shapes.ipynb.
The running button had stopped but the status bar was still executing. Should I wait it or there are some problems I have to solve. |
@linaouro I figured out the problem. It had been executing 6 hours then interrupted because of running out of the GPU (Google Colab has a limit). I tried to run it again without GPU and it trained successfully. Thanks. |
Hi everyone solved this problem on colab. you should with this order on colab it worked for me ! |
Hi, I had the same problem on Colab Notebook.
TypeError: Could not build a TypeSpec for <KerasTensor: shape=(None, None, 4) #2458 (comment) |
Hi @agustinadinamarca, I did this and I am not getting the TypeError anymore but as mentioned in your comment, I am getting this error: |
@mansi-aggarwal-2504 I have also the same error. Which version of the Mask RCNN source code do you use? |
Hi @getgeosoft. I actually got caught up in errors due to version incompatibility issues. But I started afresh and created a new environment. Refer to this issue I raised. I hope this helps. |
In addition to the two options which youreternity1997 provided, here is a third option. |
Is it possible that these changes are merged by the moderators of this repository? @waleedka Also, why is this repository not actively maintained? despite people finding the use for it? I would be glad if I could help. Please guide me. |
TypeError: Could not build a TypeSpec for KerasTensor(type_spec=TensorSpec(shape=(None, None, 4), dtype=tf.float32, name=None), name='tf.math.truediv/truediv:0', description="created by layer 'tf.math.truediv'") of unsupported type <class 'tensorflow.python.keras.engine.keras_tensor.KerasTensor'>. i got this error when i try to run maskrcnn code any one fix this error |
Try @rcx986635 answer |
|
Hey, I was able to fix that issue simply by installing tf-estimator-nightly in colab. Found that it was missing by trying what @yemre-data proposed. The following solution is simpler and also doesn't require to restart the runtime
|
This is what worked for me.
TensorFlow: 2.5.0 |
yes, it take me 2 weeka now |
I fixed the issue by Downgrading python and tensorflow. But i got another error info as following: ... |
it helps me |
are u using google colab?
…On Tue, Oct 10, 2023 at 11:53 AM mikl20022002 ***@***.***> wrote:
from tensorflow.python.framework.ops import disable_eager_execution
disable_eager_execution()
it helps me
—
Reply to this email directly, view it on GitHub
<#2458 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A667UZE5EC4T24FWBV3UL3LX6WKSVAVCNFSM4VVM3DA2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZVGYYDIOJQGY2A>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
yes |
I got this error when I try to run this command:
This happens in
mrcnn/model.py:1875
The text was updated successfully, but these errors were encountered: