Failed submission

I converted my model and I get this message “The model in your submission is invalid. Please try again!”

I converted it using this command:
!tensorflowjs_converter --input_format=keras {saved_model_path} ./

and TensorFlow Version: 2.11.0

tensorflowjs-4.2.0

You need to use tensorflow version <= 2.2.0. There are a few posts here that face issues with getting this version of tensorflow to work. If you use anaconda then if you look at my post it may help; “C1W3 Run the TensorFlow.js Converter on The Saved Keras Model Error.”

1 Like

i’m using google colab, it can’t install 2.2

I installed anaconda but I get the same message once I try to install tensorflow version 2.2

@Osama_Saad_Farouk, anaconda will not let you install tensorflow 2.2. You have to use conda to install tensorflow 2.1 and then use pip to install tensorflow 2.2. Also, make sure you do this in the anaconda prompt as I stated in the following response.

1 Like

when I try to install tensorflow 2.2.0 it gives me the first error.

when i try to fix this error and install the compatible versions it tells me that I should keep the pervious versions.

what should I do

Try running this line by line individually in anaconda’s conda prompt, not in jupyter lab:

  1. conda create -n tf210 tensorflow=2.1.0 python=3.7
  2. conda activate tf210
  3. pip install tensorflowjs==2.0.0
  4. pip install tensorflow-intel==0.0.1
  5. pip install tensorflow-cpu==2.1.0
  6. pip install tensorflow-estimator==2.1.0rc0
  7. pip install tensorflow==2.2.0
  8. pip install matplotlib

You should still get errors and package compatibility errors but ignore those. So, you can ignore the gast and tensorboard package errors. Then go to anaconda navigator, install jupyter lab in the tf210 environment, and complete the assignment. Do not install anything in the assignment. Comment out the pip installs in the assignment, and you should see that you are using tensorflow 2.2.0.

If this doesn’t work, then change the first line to conda create -n tf210 tensorflow=2.0.0 python=3.0. If that doesn’t work, then I am sorry but I don’t have any more suggestions.

1 Like