Open MatsumotoHiroko opened 6 years ago
I'd like to send you additional information. My error has happened on this line. https://github.com/algorithmiaio/sample-apps/blob/master/deep_dive_demos/open_images_detection/preprocessing/process_images.py#L34
checking if images are valid from label index: 0%| | 0/315 [00:00<?, ?it/s]stored_path::/tmp/download_images/0000626c3e317247.jpg
image_opend
open_im::::
im.verify()
verify_im:::::<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=4452x3144 at 0x7FF843DA9B00>
Traceback (most recent call last):
File "/anaconda/envs/py35/lib/python3.5/site-packages/PIL/ImageFile.py", line 139, in load
read = self.load_read
AttributeError: 'JpegImageFile' object has no attribute 'load_read'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "process_images.py", line 68, in <module>
filtered_points = process_images(images_directory, resized_directory, points)
File "process_images.py", line 39, in process_images
im.thumbnail((256, 256))
File "/anaconda/envs/py35/lib/python3.5/site-packages/PIL/Image.py", line 1812, in thumbnail
im = self.resize(size, resample)
File "/anaconda/envs/py35/lib/python3.5/site-packages/PIL/Image.py", line 1543, in resize
self.load()
File "/anaconda/envs/py35/lib/python3.5/site-packages/PIL/ImageFile.py", line 143, in load
read = self.fp.read
AttributeError: 'NoneType' object has no attribute 'read'
I can resolve this problem myself at "process_images.py". We must reopen image after call im.verify(). http://pillow.readthedocs.io/en/4.3.x/reference/Image.html?highlight=verify#PIL.Image.Image.verify
In addition, we must feed format's parameter of "JPEG" instead of "JPG" in im.save. http://pillow.readthedocs.io/en/4.3.x/handbook/image-file-formats.html#fully-supported-formats
Furthermore, I have a mistake. I should set "/tmp/data/output/image_index_output.csv" instead of "/tmp/data/output/point_output.csv" in a parameter of "datapoints_input_path"
After that, I might send a pull request.
Hello everyone, I'm a beginner of TensorFlow (and Machine Learning).
I'd like to use Object Detection with openimages. I am trying to run your article titled by "Deep Dive into Object Detection with Open Images, using Tensorflow". https://blog.algorithmia.com/deep-dive-into-object-detection-with-open-images-using-tensorflow/ I have progressed to "Step1: Image Downloading".
Right now, I can't understand how I do set parameters and I am stopping. Which file do we set at all paths? Particularly, "datapoints_input_path" in "process_images.py"? https://github.com/algorithmiaio/sample-apps/blob/master/deep_dive_demos/open_images_detection/preprocessing/process_images.py#L49 After "process_images.py" has finished, "datapoints_output_path"'s output file was empty. In the first place, I might probably mistake my paramater.
Could you teach us about which file we give these codes?
By the way, I fed below into the codes.
translate_class_descriptions.py
process_metadata.py
download_images.py
process_images.py
I'm looking foword your advice šāāļø Thank you.