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

Can i install tensorflow/models package with pip install? #917

Closed
yunjey opened this issue Jan 18, 2017 · 27 comments
Closed

Can i install tensorflow/models package with pip install? #917

yunjey opened this issue Jan 18, 2017 · 27 comments

Comments

@yunjey
Copy link

yunjey commented Jan 18, 2017

tensorflow/models

I installed tensorflow through anaconda, and here I want to include the tensorflow/model.
Can i install tensorflow/models package with pip install?

I want to import the code as shown below.

import nets.inception_resnet_v2

@asimshankar
Copy link
Contributor

We do not yet, nor do we currently have any plans to, package tensorflow/models in a pip package. You'll have to clone the repository and/or copy-paste the code.

@tcwalther
Copy link

I understand this issue is closed, but wanted to put this back on the radar. I believe that installing pre-trained models is a fair use case, and having the ability to run pip install tensorflow-models would be fantastic. Could you elaborate a bit more on the reasons for not considering a pip package for tensorflow/models?

@ashwinvijayakumar
Copy link

21 votes not enough to reopen this issue, or at least provide a close justification?

@asimshankar
Copy link
Contributor

Apologies, this was closed more than a year ago (before TensorFlow 1.0, i.e., before API stability guarantees from main TensorFlow).

This may be worth revisiting now.
@karmel - any thoughts?

@asimshankar asimshankar reopened this Feb 21, 2018
@asimshankar asimshankar added the stat:awaiting model gardener Waiting on input from TensorFlow model gardener label Feb 21, 2018
@karmel karmel added type:build/install type:feature and removed stat:awaiting model gardener Waiting on input from TensorFlow model gardener labels Feb 21, 2018
@karmel
Copy link
Contributor

karmel commented Feb 21, 2018

We have discussed this, and everyone agrees it is a good idea. Let's leave this open to track for now.

@bignamehyp bignamehyp added the stat:awaiting model gardener Waiting on input from TensorFlow model gardener label Feb 22, 2018
@karmel karmel removed the stat:awaiting model gardener Waiting on input from TensorFlow model gardener label Feb 22, 2018
@bignamehyp bignamehyp added the stat:awaiting response Waiting on input from the contributor label Feb 22, 2018
@karmel karmel added stat:awaiting maintainer Waiting on input from the maintainer and removed stat:awaiting response Waiting on input from the contributor labels Apr 9, 2018
@karmel karmel self-assigned this Apr 15, 2018
@viksit
Copy link

viksit commented Apr 22, 2018

@asimshankar @karmel it would also be useful to have official.utils.logs import hooks_helper and official.utils.misc import model_helpers as an installable package as well. There are very few examples out there of using them.

@ghost
Copy link

ghost commented May 11, 2018

The amount of IT work involved in just getting official/wide_deep to run due to the use of official.utils is pretty ridiculous. Please either provide a write-up on how to get working easier or update the packages used within the py files.

@karmel
Copy link
Contributor

karmel commented May 11, 2018

@bstreit -- please see the Official Models README for instructions in setting up the Python path. If you have further issues with that, please open up a new issue, and we can help resolve.

@hadim
Copy link

hadim commented Jul 24, 2018

Could you also create a Pip installable package for the research folder?

@karmel
Copy link
Contributor

karmel commented Jul 24, 2018

That's an interesting suggestion, but pip installation for /research is not planned. Each model is owned and maintained by the researchers in question, so providing tooling on top of all of those would be exceedingly hard to maintain.

@hadim
Copy link

hadim commented Jul 24, 2018

Actually, I was thinking about the object_detection folder. It would make it more easy and reproducible its usage. We should be able to easily pip install it instead of cloning the whole repository. What do you think?

@karmel
Copy link
Contributor

karmel commented Jul 24, 2018

That would be under the purview of the researchers-- can you open a separate issue for that?

@hadim
Copy link

hadim commented Jul 24, 2018

Done #4887.

@PatrickLittlefield
Copy link

Any progress on the pip installable update to object detection or (even better) all of the models? Eagerly awaiting this.

@karmel
Copy link
Contributor

karmel commented Sep 14, 2018

For the official models, we have not made any progress-- though if someone wants to pitch in, I'm marking this as Contributions Welcome. For object detection, please see #4887

@karmel karmel added help wanted and removed stat:awaiting maintainer Waiting on input from the maintainer labels Sep 14, 2018
@karmel karmel removed their assignment Sep 14, 2018
@arshdefoamed
Copy link

Hello, is there an update on this ?

@karmel
Copy link
Contributor

karmel commented Jan 8, 2019

There are no current contributors who have picked this up, AFAIK. @lintian06 -- you may also be interested, as pip installation is an oft requested feature.

@lintian06 lintian06 self-assigned this Jan 16, 2019
@lintian06
Copy link
Contributor

Thank you @karmel! I'll take a look at this.

A general thought is that we need some sorts of design for different subfolders inside the project, since they may have different configurations and prerequisites.

@Sri-vatsa
Copy link

Would be interested in contributing to making the package pip installable.

@wqnow
Copy link

wqnow commented May 11, 2019

What a pity for two years waiting...

@saberkun
Copy link
Member

Working in progress. We have an initial package out for official models.

@saberkun
Copy link
Member

We plan to release an light pip package along with TF 2.1 release.

@saberkun saberkun assigned saberkun and rachellj218 and unassigned lintian06 Dec 18, 2019
@AnuragAnalog
Copy link

Yes, You can install it
pip install tensorflow (for python2)
pip3 install tensorflow (for python3)

@jaeyounkim jaeyounkim self-assigned this Feb 4, 2020
@epignatelli
Copy link

Where is the module actually being installed?
import tensorflow.models raise an error.

@aichendouble
Copy link
Contributor

Where is the module actually being installed?
import tensorflow.models raise an error.

Please install the nightly pip first:
pip install tf-models-nightly

And then import in the following way for example:
from official.nlp.bert import ...

We may make the import easier in the future.

@saberkun
Copy link
Member

Thanks, Chen!

@jaeyounkim Shall we close this issue?

@jaeyounkim
Copy link
Collaborator

Yes, we can close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests