Image classification models for TensorFlow
Project description
Large-scale image classification networks
Collection of large-scale image classification models on TensorFlow, pretrained 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.
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 init_variables_from_state_dict as tfcv_init_variables_from_state_dict
import tensorflow as tf
net = tfcv_get_model("resnet18", pretrained=True)
x = tf.placeholder(dtype=tf.float32, shape=(None, 3, 224, 224), name='xx')
y_net = net(x)
with tf.Session() as sess:
tfcv_init_variables_from_state_dict(sess=sess, state_dict=net.state_dict)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tensorflowcv-0.0.10.tar.gz.
File metadata
- Download URL: tensorflowcv-0.0.10.tar.gz
- Upload date:
- Size: 38.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e905dacf90f38ee6d3b78febc638b9ad152b3149bebb76e154c0641c40587e63
|
|
| MD5 |
641c2402e51e63c9fab40dedc757efe3
|
|
| BLAKE2b-256 |
54048d9360f1572cc645b84bc347bf18bfadf6dbf21b8a306a8a77891848bb07
|
File details
Details for the file tensorflowcv-0.0.10-py2.py3-none-any.whl.
File metadata
- Download URL: tensorflowcv-0.0.10-py2.py3-none-any.whl
- Upload date:
- Size: 70.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4bb3fc8af5c680879cf177a2ab490c863bbc54ac435243d69019aadb08e5eb86
|
|
| MD5 |
8d8cd97933ea1d685c5789c47747bf83
|
|
| BLAKE2b-256 |
af6ec69cae4ff0b36f1b9c701762940a3219e6a48c99b78663476c1e4e241a81
|