KranthiGV / Pretrained-Show-and-Tell-model

This repository contains pretrained Show and Tell: A Neural Image Caption Generator implemented in Tensorflow.
MIT License
198 stars 45 forks source link

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte #19

Closed DecentGradient closed 6 years ago

DecentGradient commented 6 years ago

is this an image file problem?

DecentGradient commented 6 years ago

nope i had to update run_inference.py
for filename in filenames: with tf.gfile.GFile(filename, "r") as f: to with tf.gfile.GFile(filename, "rb") as f: