models icon indicating copy to clipboard operation
models copied to clipboard

Make the object_detection folder pip installable

Open hadim opened this issue 8 years ago • 14 comments

Please see https://github.com/tensorflow/models/issues/917#issuecomment-407552473 for history.

In short, that would allow to really use object_detection as a lib and an API without having to clone the whole repository.

It would make it more easy to use and everyone's code using this API more reproducible.

Now it's up to you whether you want to keep it in this repo or create a separate repo from models. The advantage of the later is that you can easily install whatever git commit you to want with something like that: pip install https://github.com/tensorflow/models/archive/6c21084503b27a9ab118e1db25f79957d5ef540b.zip.

That being said I am totally fine with regularly upload wheels to PyPi from only the research/object_detection folder.

The last thing for a pip installable package, you would have to compile PB files in the setup.py file, but that should not be too hard. I can submit a PR if you want/need.

Hope this makes sense to you.

hadim avatar Jul 24 '18 21:07 hadim

I am also aware that a lot of Python files are meant to be used as runnable scripts. One option would be to make them available as scripts or entry points in the setup.py: http://python-packaging.readthedocs.io/en/latest/command-line-scripts.html

hadim avatar Jul 24 '18 21:07 hadim

Here is a PR to demonstrate my point: https://github.com/tensorflow/models/pull/4889

hadim avatar Jul 25 '18 01:07 hadim

@bitfort is this something you would consider?

hadim avatar Aug 31 '18 16:08 hadim

ping @karmel

hadim avatar Aug 31 '18 16:08 hadim

any update on this ? thanks

yaceben avatar Dec 09 '18 22:12 yaceben

This would be extremely useful to have, any update on this?

danielvdende avatar Jan 30 '19 13:01 danielvdende

Would love to help to make the folder pip installable if it is open for contributions!

Sri-vatsa avatar Mar 02 '19 06:03 Sri-vatsa

@hadim on issue #62, I attempted to bring the object_detection API to conda-forge compiled from a seperate github repo just for the OO-API but @hajapy suggested doing so from the tensorflow's official source. I noticed you tried to pip installable tarball but the whole effort seem open. Has there been any improvement on this direction? would you be interested in helping me add this to the conda channel?

adbedada avatar Jun 20 '19 17:06 adbedada

Good luck with that! I don't think it will be easy as long as Google folks don't want to help to convert this repo in a python package. And I don't want to maintain a sync-fork myself... So unless a Googlers wants to help here I don't think there is much hope to get a conda forge package accepted.

hadim avatar Jun 21 '19 01:06 hadim

If model is not in an internal competition with keras-cv I hope that all the reusable components (libs/utils) could be adopted directly in keras-cv /cc @tanzhenyu

bhack avatar Jul 12 '20 11:07 bhack

This Is just the on of the largest API surfsce exposed in model directly but more in general this topic is tracked at https://github.com/tensorflow/community/issues/223

bhack avatar Jul 12 '20 11:07 bhack

Looks like this is an old thread -- I'm not sure if people are still tracking this. Keras-CV should be the place for "object detection as a lib and an API without having to clone the whole repository". If you'd like to contribute directly we'd welcome that

tanzhenyu avatar Jul 13 '20 15:07 tanzhenyu

@tanzhenyu It is old but not outdated. As you can see it was just quickly re-evaulated on 9th May. @jaeyounkim added this to Needs triage in Object Detection on 9 May and the new Tensorflow object api was just released (10th July)

bhack avatar Jul 13 '20 15:07 bhack

Have the third-party attempts at https://pypi.org/search/?q=tensorflow+object+detection been evaluated?

MarkPundurs avatar Aug 09 '22 16:08 MarkPundurs