forked from tensorflow/hub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorganize docs on community, hosting, installation for TF2
PiperOrigin-RevId: 273956378
- Loading branch information
1 parent
0b0a4e9
commit 662e23b
Showing
9 changed files
with
169 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Community and support | ||
|
||
* Please join us on the [TensorFlow Hub mailing | ||
list](https://groups.google.com/a/tensorflow.org/forum/#!forum/hub) | ||
for announcements, general questions and discussions. | ||
* You can use tag [tensorflow-hub on Stack | ||
Overflow](https://stackoverflow.com/questions/tagged/tensorflow-hub) | ||
for help on how to use TensorFlow Hub. | ||
* The source code is available on [GitHub](https://github.com/tensorflow/hub). | ||
We use [GitHub issues](https://github.com/tensorflow/hub/issues) | ||
for tracking feature requests and bugs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Contribute on GitHub | ||
|
||
Learn more about how to contribute to the `tensorflow/hub` project | ||
[on GitHub](https://github.com/tensorflow/hub/blob/master/CONTRIBUTING.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,64 @@ | ||
# Installation | ||
# Installation and usage notes | ||
|
||
The `tensorflow_hub` library can be installed alongside TensorFlow 1 | ||
and TensorFlow 2. We recommend that new users start with TensorFlow 2 | ||
right away, and current users upgrade to it. | ||
## Installing tensorflow_hub | ||
|
||
## Use with TensorFlow 2 | ||
The `tensorflow_hub` library can be installed alongside TensorFlow 1 and | ||
TensorFlow 2. We recommend that new users start with TensorFlow 2 right away, | ||
and current users upgrade to it. | ||
|
||
### Use with TensorFlow 2 | ||
|
||
Use [pip](https://pip.pypa.io/) to | ||
[install TensorFlow 2](https://www.tensorflow.org/install) as usual. | ||
(See there for extra instructions about GPU support.) | ||
Then install a current version of | ||
[`tensorflow-hub`](https://pypi.org/project/tensorflow-hub/) | ||
next to it (must be 0.5.0 or newer). | ||
|
||
[install TensorFlow 2](https://www.tensorflow.org/install) as usual. (See there | ||
for extra instructions about GPU support.) Then install a current version of | ||
[`tensorflow-hub`](https://pypi.org/project/tensorflow-hub/) next to it (must be | ||
0.5.0 or newer). | ||
|
||
```bash | ||
$ pip install "tensorflow>=2.0.0" | ||
$ pip install --upgrade tensorflow-hub | ||
``` | ||
|
||
The TF1-style API of TensorFlow Hub works with the v1 compatibility mode | ||
of TensorFlow 2. | ||
The TF1-style API of TensorFlow Hub works with the v1 compatibility mode of | ||
TensorFlow 2. | ||
|
||
## Legacy use with TensorFlow 1 | ||
### Legacy use with TensorFlow 1 | ||
|
||
The `tensorflow_hub` library requires TensorFlow version 1.7 or greater. | ||
|
||
We strongly recommend to install it with TensorFlow 1.15, which defaults | ||
to TF1-compatible behavior but contains many TF2 features under the hood | ||
to allow some use of TensorFlow Hub's TF2-style APIs. | ||
We strongly recommend to install it with TensorFlow 1.15, which defaults to | ||
TF1-compatible behavior but contains many TF2 features under the hood to allow | ||
some use of TensorFlow Hub's TF2-style APIs. | ||
|
||
```bash | ||
$ pip install "tensorflow>=1.15,<2.0" | ||
$ pip install --upgrade tensorflow-hub | ||
``` | ||
|
||
## Use of pre-release versions | ||
### Use of pre-release versions | ||
|
||
The pip packages `tf-nightly` and `tf-hub-nightly` are built automatically from | ||
the source code on github, with no release testing. This lets developers try out | ||
the latest code without [building from source](build_from_source.md). | ||
|
||
## API stability | ||
|
||
Although we hope to prevent breaking changes, this project is still under active | ||
development and is not yet guaranteed to have a stable API or model format. | ||
|
||
## Fairness | ||
|
||
As in all of machine learning, [fairness](http://ml-fairness.com) is an | ||
[important](https://research.googleblog.com/2016/10/equality-of-opportunity-in-machine.html) | ||
consideration. Many pre-trained models are trained on large datasets. When | ||
reusing any model, it’s important to be mindful of what data the model was | ||
trained on (and whether there are any existing biases there), and how these | ||
might impact your use of it. | ||
|
||
## Security | ||
|
||
The pip packages `tf-nightly` and `tf-hub-nightly` are built automatically | ||
from the source code on github, with no release testing. This lets | ||
developers try out the latest code without | ||
[building from source](build_from_source.md). | ||
Since they contain arbitrary TensorFlow graphs, models can be thought of as | ||
programs. | ||
[Using TensorFlow Securely](https://github.com/tensorflow/tensorflow/blob/master/SECURITY.md) | ||
describes the security implications of referencing a model from an untrusted | ||
source. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,19 @@ | ||
# TensorFlow Hub | ||
|
||
## Publishing on tfhub.dev | ||
|
||
Are you interested in publishing your modules on tfhub.dev? Express your | ||
interest via our [Publisher | ||
Survey](https://services.google.com/fb/forms/tensorflowhubpublishersurvey/). We | ||
appreciate your valuable feedback, and will be providing more information about | ||
publishing modules in the coming months. For now, please read our documentation | ||
about [Hosting a Module](hosting.md). | ||
|
||
## Fairness | ||
|
||
As in all of machine learning, [fairness](http://ml-fairness.com) is an | ||
[important](https://research.googleblog.com/2016/10/equality-of-opportunity-in-machine.html) | ||
consideration. Modules typically leverage large pretrained datasets. When | ||
reusing such a dataset, it’s important to be mindful of what data it contains | ||
(and whether there are any existing biases there), and how these might impact | ||
your downstream experiments. | ||
|
||
|
||
## Status | ||
|
||
Although we hope to prevent breaking changes, this project is still under active | ||
development and is not yet guaranteed to have a stable API or module format. | ||
|
||
|
||
## Security | ||
|
||
Since they contain arbitrary TensorFlow graphs, modules can be thought of as | ||
programs. [Using TensorFlow Securely](https://github.com/tensorflow/tensorflow/blob/master/SECURITY.md) | ||
describes the security implications of referencing a module from an untrusted | ||
source. | ||
|
||
|
||
## Source-Code & Bug Reports | ||
|
||
The source code is available on [GitHub](https://github.com/tensorflow/hub). | ||
Use [GitHub issues](https://github.com/tensorflow/hub/issues) for feature requests | ||
and bugs. Please see the [TensorFlow Hub mailing | ||
list](https://groups.google.com/a/tensorflow.org/forum/#!forum/hub) for general | ||
questions and discussion. | ||
TensorFlow Hub is a repository and library for reusable machine learning. The | ||
[tfhub.dev](https://tfhub.dev) repository provides many pre-trained models: text | ||
embeddings, image classification models, and more. The `tensorflow_hub` library | ||
lets you download and reuse them in your TensorFlow program with a minimum | ||
amount of code. | ||
|
||
Get started with TensorFlow Hub: | ||
|
||
- [Install TensorFlow Hub](installation.md) | ||
- [TensorFlow Hub in TF2](tf2_saved_model.md) | ||
- [Legacy: TensorFlow Hub in TF1](tf1_hub_module.md) | ||
- Tutorials: | ||
- [Text classification](https://github.com/tensorflow/hub/blob/master/examples/colab/tf2_text_classification.ipynb) | ||
- [Image classification](https://github.com/tensorflow/hub/blob/master/examples/colab/tf2_text_classification.ipynb) | ||
- Additional examples | ||
[on GitHub](https://github.com/tensorflow/hub/blob/master/examples/README.md) | ||
- Find models on [tfhub.dev](https://tfhub.dev) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Publishing on tfhub.dev | ||
|
||
Are you interested in publishing your models on tfhub.dev? Express your interest | ||
via our | ||
[Publisher Survey](https://services.google.com/fb/forms/tensorflowhubpublishersurvey/). | ||
We appreciate your valuable feedback and will be providing more information | ||
about publishing modules in the coming months. |