File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,12 +8,12 @@ value="$(uname)"
88if [ $value == " Linux" ]
99then
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
1313elif [ $value == " Darwin" ]
1414then
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
1818else
1919 echo " Incompatible machine for TensorFlow. Exiting script..."
Original file line number Diff line number Diff line change 1- requests == 2.11.1
1+ requests == 2.13.0
22six == 1.10.0
3- Pillow == 3.4.2
3+ Pillow == 4.0.0
44BeautifulSoup == 3.2.1
55-e .
Original file line number Diff line number Diff line change 88
99setup (
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' ],
Original file line number Diff line number Diff 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 ("\n Could 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 :
You can’t perform that action at this time.
0 commit comments