Skip to content

Commit df5d7d8

Browse files
authored
Merge pull request TensorPy#8 from TensorPy/update-requirements
Update requirements
2 parents 803d25c + 750180d commit df5d7d8

4 files changed

Lines changed: 10 additions & 9 deletions

File tree

install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ value="$(uname)"
88
if [ $value == "Linux" ]
99
then
1010
echo "Initializing TensorFlow setup on a Linux machine..."
11-
export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.0.0-cp34-cp34m-linux_x86_64.whl
11+
export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.0.1-cp34-cp34m-linux_x86_64.whl
1212
pip install --ignore-installed --upgrade $TF_BINARY_URL
1313
elif [ $value == "Darwin" ]
1414
then
1515
echo "Initializing TensorFlow setup on a MAC..."
16-
export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.0.0-py2-none-any.whl
16+
export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.0.1-py2-none-any.whl
1717
pip install --ignore-installed --upgrade $TF_BINARY_URL
1818
else
1919
echo "Incompatible machine for TensorFlow. Exiting script..."

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
requests==2.11.1
1+
requests==2.13.0
22
six==1.10.0
3-
Pillow==3.4.2
3+
Pillow==4.0.0
44
BeautifulSoup==3.2.1
55
-e .

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@
88

99
setup(
1010
name='tensorpy',
11-
version='1.0.11',
11+
version='1.0.12',
1212
url='http://tensorpy.com',
1313
author='Michael Mintz',
1414
author_email='@mintzworld',
1515
maintainer='Michael Mintz',
1616
description='Image Classification with TensorFlow made easy!',
1717
license='The MIT License',
1818
install_requires=[
19-
'requests==2.11.1',
19+
'requests==2.13.0',
2020
'six==1.10.0',
21-
'Pillow==3.4.2',
21+
'Pillow==4.0.0',
2222
'BeautifulSoup==3.2.1',
2323
],
2424
packages=['tensorpy'],

tensorpy/classify.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,14 @@ def main():
9292
pool.join()
9393
else:
9494
# Single-threading the image classification work
95+
min_w_h = settings.MIN_W_H # Minimum size for classification
9596
for image in image_list:
9697
web_core.save_file_as(image, "temp_image.png")
9798
image_base.convert_image_file_to_jpg(
9899
"downloads_folder/temp_image.png")
99100
width, height = image_base.get_image_file_dimensions(
100101
"downloads_folder/temp_image.jpg")
101-
if width >= 50 and height >= 50:
102+
if width >= min_w_h and height >= min_w_h:
102103
best_guess = classify_image.external_run(
103104
"downloads_folder/temp_image.jpg")
104105
if images_classified == 0:
@@ -117,7 +118,7 @@ def main():
117118

118119
if images_classified == 0:
119120
print("\nCould not find images to classify on the page! "
120-
"(Min size = %dx%d)" % (
121+
"(Min size = %dx%d pixels)" % (
121122
settings.MIN_W_H, settings.MIN_W_H))
122123
print("")
123124
else:

0 commit comments

Comments
 (0)