-
Notifications
You must be signed in to change notification settings - Fork 45.8k
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
ObjectDetection API not suitable for tf 2.0.0-alpha0 #6423
Comments
The current version of the object detection API requires Tensorflow 1.X (>1.12).Because the current version requires contrib.slim, which was removed in Tensorflow 2.0. |
Is there any date or plan in the future to migrate it to 2.0? |
I don't know the specific situation.But the object detection API will be updated to Tensorflow 2.0. |
Oh yeah! Thanks a lot. |
@rootkitchao Any idea what the timeline for that is? Just curious, I know it will likely require a lot of work. |
did you find something? I cant use train.py, it still giving this error: I tried to use model_main.py but nothing changes. I don't know what should I do |
We are collaborating with TF team to migrate to 2.0 now, but this is a huge effort which may take months. |
Any update on the actual status of migration to TF 2.0? Are there some particular actions/points that the community may be helpful? |
@omerrciftcii I think your best option right now is to just create a virtual env with tensorflow 1.x |
@pkulzc How's the progress going? |
We've made some progress but are still not ready for full migration or release. |
@pkulzc thank you for the update! |
while having tf 2.0.0: how to handle "module 'tensorflow' has no attribute 'GraphDef' "? |
@pkulzc any updates on the migration status? |
I used model_main.py in TF2.0 with the same problem. I tried to use the tf_upgrade_v2 cmd to the eval_util.py and model_main.py its doesn't work. Although I know this behavior is not scientific. |
Until the Object Detection API is updated to TensorFlow 2 simply use TensorFlow 1.15 ( |
hi, how's the progress going? Is it now possible to use Object Detection API with TF 2.0 ? |
@jpacifico I guess it is already released... https://github.com/tensorflow/models/releases/tag/v2.0 |
Object Detection API is not yet released with TF 2.0 I guess |
yes I guess too, still have the same 'contrib' error with TF 2 |
As anyone knows any other ways to train the model with TF2.0 for now situation? |
I tried it and it has the same contrib error. Did anyone get it up and running successfully? |
Hey guys.. does anyone know if the object detection API was updated for TF2 and is working fine? |
So, need how long we can use the TF2.0 object detection what do you guys think? |
@pkulzc Thanks for keeping us updated. Is there an experimental Obj Det branch we can pull from before an official update is released? |
@pkulzc thanks for all your assistance. Are there any updates on this? Would be a great 1 year anniversary present for this comment :P |
Also wondering when this will be updated to Tensorflow 2.0! Thanks! |
Hi, Currently,Which version of tf supports training on custom data set using object detection API ? |
Is there any ongoing progress? |
Thought tensorflow was the tool I need to begin AI study but I can't even run a tutorial code without errors :( |
Isn't this a real bummer for Google? I mean, there are a few mature object detection frameworks based on PyTorch (e.g. Detectron2, which is a great piece of software btw.), which seem to get more and more attention. Isn't Google risking that more and more people would switch to PyTorch if Google doesn't provide a proper and fully documented (!!) object detection framework for TF2?
@pkulzc Is there any estimation on this issue, in terms of what "soon" means? I would assume a fully working object detection framework for TF2 is one of the most anticipated features for TensorFlow these days ... |
@Masoud-Ghodrati They have also provided instructions for local installation in the same page. It might be helpful. You may check out it or can directly go from here: installation instructions. For training it locally: running locally |
so, there is no way to train a new model with any version of tensorflow? is that it ?? |
It's been a few months now... Is there any update ? For contrib support in TF2>=2? |
Also I cannot downgrade TF to any of the lower versions as pip shows only versions available are 2.2 , 2.2a, latest ones |
+1 subscriber to TF 2.0+ Object Detection API status. |
sad day as I have now no choice but to return to pyTorch :( |
@nickkimer Same here. I'm now porting everything off of Tensorflow. |
I would really be interested to know what Google "officially" thinks and plans about htis matter. Aren't they a bit afraid that with every week while nothing happens in this matter more and more users switch to PyTorch (or GluonCV or something else)? |
Hi guys, any news of this migration? |
That's very likely because you are on python 3.8 and tf==1.15 does not support 3.8. You'll need an environment with python 3.7.6 and this should work. |
Also worth noting that it's now possible to set the colab TPU tensorflow version. This means you can continue to use tensorflow 1.15 & OD API in colab:
|
TensorFlow Object Detection API supports both TensorFlow 2 (TF2) and TensorFlow 1 (TF1) officially now. https://github.com/tensorflow/models/tree/master/research/object_detection |
Could anyone help me how to use eval_utils.py for evaluation of the training and get the mAP mIOU scores. |
System information
PIPELINE_CONFIG_PATH='/home/jovyan/Codelab/model/pipeline.config'
MODEL_DIR='/home/jovyan/Codelab/data'
NUM_TRAIN_STEPS=50000
SAMPLE_1_OF_N_EVAL_EXAMPLES=1
python3 object_detection/model_main.py
--pipeline_config_path=${PIPELINE_CONFIG_PATH}
--model_dir=${MODEL_DIR}
--num_train_steps=${NUM_TRAIN_STEPS}
--sample_1_of_n_eval_examples=$SAMPLE_1_OF_N_EVAL_EXAMPLES
--alsologtostderr
tf_upgrade_v2 --intree . --outtree . --copyotherfiles False
Describe the problem
I try to use ObjectDetection API in TensorFlow 2.0.0-alpha0, but the program told me that
AttributeError: module 'tensorflow' has no attribute 'contrib'
, clearly Google has delete the contrlib library. So next step I try to use thetf_upgrade_v2 utility
to help me converting existing TensorFlow 1.x Python scripts to TensorFlow 2.0. But finally I failed. Here are the message from terminal.Source code / logs
@wangtz
The text was updated successfully, but these errors were encountered: