Metadata-Version: 2.1
Name: tensorflowcv
Version: 0.0.2
Summary: Image classification models for TensorFlow
Home-page: https://github.com/osmr/imgclsmob
Author: osmr
Author-email: osemery@gmail.com
License: MIT
Keywords: machine-learning deep-learning neuralnetwork image-classification imagenet tensorflow
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Scientific/Engineering :: Image Recognition
Description-Content-Type: text/markdown
Requires-Dist: numpy
Requires-Dist: requests

# Large-scale image classification networks

Several large-scale image classification models on TensorFlow, trained on the ImageNet-1k dataset.

## Installation

To install, use:
```
pip install tensorflowcv tensorflow-gpu>=1.11.0
```
To enable/disable different hardware supports, check out TensorFlow installation [instructions](https://www.tensorflow.org/).

Note that the models use NCHW data format. The current version of TensorFlow cannot work with them on CPU.

## Usage

Example of using the pretrained ResNet-18 model:
```
from tensorflowcv.model_provider import get_model as tfcv_get_model
from tensorflowcv.model_provider import load_model as tfcv_load_model
import tensorflow as tf
net_lambda, net_file_path = tfcv_get_model("resnet18", pretrained=True)
x = tf.placeholder(dtype=tf.float32, shape=(None, 3, 224, 224), name='xx')
y_net = net_lambda(x)
with tf.Session() as sess:
    tfcv_load_model(sess=sess, file_path=net_file_path)
```


