CharlesShang / FastMaskRCNN

Mask RCNN in TensorFlow
Apache License 2.0
3.1k stars 1.1k forks source link

AttributeError: __trunc__ in running download_and_convert_data.py #175

Open violet17 opened 7 years ago

violet17 commented 7 years ago

when I try to run download_and_convert_data.py , then

Traceback (most recent call last): File "download_and_convert_data.py", line 41, in tf.app.run() File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 48, in run _sys.exit(main(_sys.argv[:1] + flags_passthrough)) File "download_and_convert_data.py", line 35, in main download_and_convert_coco.run(FLAGS.dataset_dir, FLAGS.dataset_split_name) File "/home/liumm/YOLO_TF/FastMaskRCNN/libs/datasets/download_and_convert_coco.py", line 457, in run dataset_split_name) File "/home/liumm/YOLO_TF/FastMaskRCNN/libs/datasets/download_and_convert_coco.py", line 303, in _add_to_tfrecord img = img.astype(np.uint8) File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 528, in getattr raise AttributeError(name) AttributeError: trunc

The version of tensorflow is 1.2.0. I don't how to deal with it.