Skip to content
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

tf.contrib.slim is not worked in tensorflow 2.0 what is the alternative for that? #8020

Closed
sreenupadidapu opened this issue Jan 9, 2020 · 8 comments
Assignees
Labels
models:research models that come under research directory type:support

Comments

@sreenupadidapu
Copy link

Please go to Stack Overflow for help and support:

http://stackoverflow.com/questions/tagged/tensorflow

Also, please understand that many of the models included in this repository are experimental and research-style code. If you open a GitHub issue, here is our policy:

  1. It must be a bug, a feature request, or a significant problem with documentation (for small docs fixes please send a PR instead).
  2. The form below must be filled out.

Here's why we have that policy: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.


System information

  • What is the top-level directory of the model you are using:
  • Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
  • TensorFlow installed from (source or binary):
  • TensorFlow version (use command below):
  • Bazel version (if compiling from source):
  • CUDA/cuDNN version:
  • GPU model and memory:
  • Exact command to reproduce:

You can collect some of this information using our environment capture script:

https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh

You can obtain the TensorFlow version with

python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"

Describe the problem

Describe the problem clearly here. Be sure to convey here why it's a bug in TensorFlow or a feature request.

Source code / logs

Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.

@saberkun
Copy link
Member

saberkun commented Jan 9, 2020

https://github.com/google-research/tf-slim
Slim has a mirror outside TF now. To use it with TF2 in compatible mode, you should install it as a package.

@sreenupadidapu
Copy link
Author

sreenupadidapu commented Jan 10, 2020 via email

@saberkun
Copy link
Member

All contrib usage need to go away.
If you are using object detection api and models other than official models, maintainers may not upgrade to TF2 symbols. Please contact the code owners to know the status.

@amahendrakar amahendrakar added models:research models that come under research directory type:support labels Jan 13, 2020
@dragonsan17
Copy link

I had a similar error when importing evaluation. Go to "https://github.com/google-research/tf-slim/tree/master/tf_slim" and download evaluation.py in some directory and include that directory in your path. That solved the error for me

@ynjiun
Copy link

ynjiun commented May 6, 2020

Hi dragonsan17, could you elaborate how do you replace eval_util.py with evaluation.py in tf_slim? I don't think they are equivalent, are they? I got stuck between tf-1.5 and tf-2.1: if run in tf-1.5, I have "compat.v1" issue, and if run in tf-2.1, I have "no contrib" issue. I am highly interested on how do you solve the 'no contrib' issue running in tf-2.1. Thanks in advance for your help.

@dragonsan17
Copy link

The link I mentioned above contains files which you can assume to be inside "tf.contrib.python". And then you can import training.evaluation from it

@ravikyram
Copy link

@sreenupadidapu

Is this still an issue?. Please, close this thread if your issue was resolved.Thanks!

@ravikyram ravikyram self-assigned this Jun 15, 2020
@ravikyram
Copy link

Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
models:research models that come under research directory type:support
Projects
None yet
Development

No branches or pull requests

6 participants