You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
python tf_record_generation.py --label_input=labels.npz --train_rd_path=data/train_buildings.record --test_rd_path=data/test_buildings.record
You have 221 training tiles and 144 test tiles ready
Traceback (most recent call last):
File "tf_record_generation.py", line 172, in <module>
tf.app.run()
File "/home/xban/.pyenv/versions/general/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 124, in run
_sys.exit(main(argv))
File "tf_record_generation.py", line 143, in main
tf_example = create_tf_example(group, train_dir)
File "tf_record_generation.py", line 56, in create_tf_example
image = Image.open(encoded_jpg_io)
File "/home/xban/.pyenv/versions/general/lib/python3.6/site-packages/PIL/Image.py", line 2572, in open
% (filename if filename else fp))
OSError: cannot identify image file <_io.BytesIO object at 0x7fc87f2ec678>
The text was updated successfully, but these errors were encountered:
@checongcong, I have python 3.6.3 installed in my python environment and used tensorflow 1.4.1 originally, but I also tried tensorflow 1.5.0, and both worked.
Can you do two things over here:
go to your tiles folder, and inspect if all the image tiles are properly downloaded, and if they all could be opened;
assume your tiles are correctly downloaded. If you still run into the same problem, upgrade your pillow version, not sure if it's caused by pillow version particularly. I have Pillow==5.0.0 in my python environment.
My issue here was that the demo attempts to download sample content using the mapbox API. For some reason, it'll just render invalid images instead of displaying an error message (If you look at images under data/examples/Buildings, you'll find they are probably broken) .
If you look at config.json, you'll see TOKEN_KEY under the imagery URL.
Yeah replacing the ACCESS_TOKEN is noted in the README but it's pretty buried and has certainly caused its fair share of issues. I propose adding a specific check for this string in the config and displaying an error/warning if it's present
I'm following the Example Use: A building detector with TensorFlow API, and ran into an error when trying to generate the training/eval data.
System information
** What is the top-level directory of the model you are using: **
~/tensorflow/models/research/object_detection
OS Platform and Distribution: Linux Ubuntu 16.04, Elementary OS
TensorFlow installed from (source or binary): pip install tensorflow-gpu
TensorFlow version: v1.5.0
Python version: v3.6.0
CUDA/cuDNN version: CUDA 9.0, cudnn 7.0, nVidia driver: 384.111
GPU: nVidia GeForce GTX 1070 Ti 8GB memory
CPU: Intel x86-64 Intel Core i5-6400K @ 2.70GHz x 4, 16GB memory
Exact command to reproduce:
Sample code / logs:
The text was updated successfully, but these errors were encountered: