I am not able to make the last exercise/tutorial of the section “Retraining with the object detection API” work in the colab that only accepts versions above 2.8 nor in my personal computer.
Does anyone have any tips?
TIA
Hi Daniel,
I’m not sure if I’m understanding the problem. I assume that you are using TensorFlow 2.6, if this is the case, You should update the version of the TensorFlow used in Colab to 2.8, the 2.6 versions is not longer supported.
Try to update the pip install line in the Notebook to use the 2.8 versions.
Regards.
Daniel,
I see that you are refering to:
eager_few_shot_od_training_tf2_colab.ipynb
This is a Notebook from the official documentation of TensorFlow. Not sure how to solve it, we can open an issue to the official repository
By the moment if you want to explain a little bit more what error are you having I can try to open an issue to our official repository for the course, maybe they can replace the notebok with other similar.
Thanks!
Hi Pere
I encounter these two errors despite having already installed version 2.8 of tensorflow. I also tried downgrading numpy to 1.21 and using the setup.py
file provided in this week’s final assignment (C3W2 - Zombie Detector, which works fine by the way), all to no avail.
RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xf
ImportError: numpy.core.multiarray failed to import
Hi Daniel,
I tried to run it, but I can’t achieve it. It seems that we are getting some kind of incompatibility between the model_builder library / numpy and TensorFlow.
I’m going to open an issue, hope they can provide a new notebook with a similar functionality.
Regards.
Just use version 2.12.0, and it works!
i get this error when importing model_builder
:
RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xf
Hi @Soroush_Aalibagi and how you avoided the error when importing model_builder?
I tried with tf 2.12 and still getting the same error than @danielrangel
First run pip install numpy --upgrade
, then use tensorflow==“2.12.0”, then it asks you to restart the runtime. After that, you are good to go!
Thanks a lot!
I tried with numpy 1.23.5 and it works for me, I don’t know why it isn’t running with numpy 1.24 maybe because i didn’t restart the environment after install numpy 1.24.
@danielrangel just chek the numpy version with:
import numpy as np
print(np.__version__)
The notebook should work with tf 2.12 and numpy 1.23.5 or 1.24.
Thanks @Soroush_Aalibagi really appreciate your help.
Hi!
Just want to say that the notebook has been updated and know it works fine In part thanks to you both!
Hi!
Nice to know, Thank you all