Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# TensorPy
![](http://cdn2.hubspot.net/hubfs/100006/images/tensorpy_logo_p.png "TensorPy")

[![pypi](https://img.shields.io/pypi/v/tensorpy.svg)](https://pypi.python.org/pypi/tensorpy) [![Python version](https://img.shields.io/badge/python-2.7-22AADD.svg "Python version")](https://docs.python.org/2/) [![MIT License](http://img.shields.io/badge/license-MIT-22BBCC.svg "MIT License")](https://github.com/mdmintz/TensorPy/blob/master/LICENSE)
[![pypi](https://img.shields.io/pypi/v/tensorpy.svg)](https://pypi.python.org/pypi/tensorpy) [![Python version](https://img.shields.io/badge/python-2.7-22AADD.svg "Python version")](https://docs.python.org/2/) [![MIT License](http://img.shields.io/badge/license-MIT-22BBCC.svg "MIT License")](https://github.com/TensorPy/TensorPy/blob/master/LICENSE)

**Making TensorFlow easier to use with Python**

Expand All @@ -10,22 +10,22 @@ You can use TensorPy to classify images by simply passing a URL. [TensorFlow](ht

### Setup Instructions for Mac and Ubuntu/Linux

(**Windows & Docker users**: See the [Docker ReadMe](https://github.com/mdmintz/TensorPy/blob/master/docker/ReadMe.md) for running on a Docker machine. Windows requires Docker to run TensorFlow.)
(**Windows & Docker users**: See the [Docker ReadMe](https://github.com/TensorPy/TensorPy/blob/master/docker/ReadMe.md) for running on a Docker machine. Windows requires Docker to run TensorFlow.)

#### **Step 1:** Create and activate a virtual environment named "tensorpy"

If you're not sure how to create a virtual environment, **[follow these instructions](https://github.com/mdmintz/TensorPy/blob/master/help_docs/virtualenv_instructions.md)** to learn how.
If you're not sure how to create a virtual environment, **[follow these instructions](https://github.com/TensorPy/TensorPy/blob/master/help_docs/virtualenv_instructions.md)** to learn how.

#### **Step 2:** Clone the TensorPy repo from GitHub

```bash
git clone https://github.com/mdmintz/TensorPy.git
git clone https://github.com/TensorPy/TensorPy.git
cd TensorPy
```

#### **Step 3:** Install TensorPy, TensorFlow, and ImageNet

One script installs them all. (See [install.sh](https://github.com/mdmintz/TensorPy/blob/master/install.sh) for details.)
One script installs them all. (See [install.sh](https://github.com/TensorPy/TensorPy/blob/master/install.sh) for details.)

```bash
./install.sh
Expand All @@ -36,16 +36,16 @@ One script installs them all. (See [install.sh](https://github.com/mdmintz/Tenso
Classify a single image from a URL:

```bash
classify "https://raw.githubusercontent.com/mdmintz/TensorPy/master/sample_images/happy_animal.jpg"
classify "https://raw.githubusercontent.com/TensorPy/TensorPy/master/sample_images/happy_animal.jpg"
```

Classify all images on a web page:

```bash
classify "https://github.com/mdmintz/TensorPy/tree/master/sample_images"
classify "https://github.com/TensorPy/TensorPy/tree/master/sample_images"
```

Classify a single image from a URL from within a Python program: (See [test_python_classify.py](https://github.com/mdmintz/TensorPy/blob/master/examples/test_python_classify.py) for details.)
Classify a single image from a URL from within a Python program: (See [test_python_classify.py](https://github.com/TensorPy/TensorPy/blob/master/examples/test_python_classify.py) for details.)

```bash
cd examples
Expand Down
2 changes: 1 addition & 1 deletion docker/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

eval "$(docker-machine env tensorpy)"

#### 4. Go to the TensorPy home directory on the command line, which is where [Dockerfile](https://github.com/mdmintz/TensorPy/blob/master/Dockerfile) is located. (This assumes you've already cloned the TensorPy repo.)
#### 4. Go to the TensorPy home directory on the command line, which is where [Dockerfile](https://github.com/TensorPy/TensorPy/blob/master/Dockerfile) is located. (This assumes you've already cloned the TensorPy repo.)

#### 5. Create your Docker image from your Dockerfile: (Get ready to wait awhile)

Expand Down
4 changes: 2 additions & 2 deletions docker/run_docker_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ set -e
# Run example test from inside Docker image
cd /TensorPy/
echo "Running example test: Classify a single image from a url."
echo "python classify.py https://raw.githubusercontent.com/mdmintz/TensorPy/master/sample_images/happy_animal.jpg"
python classify.py "https://raw.githubusercontent.com/mdmintz/TensorPy/master/sample_images/happy_animal.jpg"
echo "python classify.py https://raw.githubusercontent.com/TensorPy/TensorPy/master/sample_images/happy_animal.jpg"
python classify.py "https://raw.githubusercontent.com/TensorPy/TensorPy/master/sample_images/happy_animal.jpg"
exec "$@"
2 changes: 1 addition & 1 deletion examples/test_classify_image.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
classify "https://raw.githubusercontent.com/mdmintz/TensorPy/master/sample_images/happy_animal.jpg"
classify "https://raw.githubusercontent.com/TensorPy/TensorPy/master/sample_images/happy_animal.jpg"
2 changes: 1 addition & 1 deletion examples/test_classify_page.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
classify "https://github.com/mdmintz/TensorPy/tree/master/sample_images"
classify "https://github.com/TensorPy/TensorPy/tree/master/sample_images"
2 changes: 1 addition & 1 deletion examples/test_python_classify.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from tensorpy import image_base

result = image_base.classify(
"https://raw.githubusercontent.com/mdmintz/TensorPy/master/sample_images/happy_animal.jpg") # noqa
"https://raw.githubusercontent.com/TensorPy/TensorPy/master/sample_images/happy_animal.jpg") # noqa
print("\nBest match classification:\n%s\n" % result)
10 changes: 5 additions & 5 deletions sample_images/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

File names are purposely left a bit ambiguous to demonstrate that classifications are based on the image itself and not from any text that appears beside the image.

![](https://raw.githubusercontent.com/mdmintz/TensorPy/master/sample_images/bird_animal.jpg "Animal")
![](https://raw.githubusercontent.com/TensorPy/TensorPy/master/sample_images/bird_animal.jpg "Animal")

![](https://raw.githubusercontent.com/mdmintz/TensorPy/master/sample_images/cat_animal.jpg "Animal")
![](https://raw.githubusercontent.com/TensorPy/TensorPy/master/sample_images/cat_animal.jpg "Animal")

![](https://raw.githubusercontent.com/mdmintz/TensorPy/master/sample_images/happy_animal.jpg "Animal")
![](https://raw.githubusercontent.com/TensorPy/TensorPy/master/sample_images/happy_animal.jpg "Animal")

![](https://raw.githubusercontent.com/mdmintz/TensorPy/master/sample_images/reptile_animal.jpg "Animal")
![](https://raw.githubusercontent.com/TensorPy/TensorPy/master/sample_images/reptile_animal.jpg "Animal")

![](https://raw.githubusercontent.com/mdmintz/TensorPy/master/sample_images/water_animal.jpg "Animal")
![](https://raw.githubusercontent.com/TensorPy/TensorPy/master/sample_images/water_animal.jpg "Animal")
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name='tensorpy',
version='1.0.4',
version='1.0.5',
url='http://tensorpy.com',
author='Michael Mintz',
author_email='@mintzworld',
Expand Down