from keras.applications.vgg16 import preprocess_input -> from keras.applications.imagenet_utils import preprocess_input
2. preprocess.py
1 2
with open(os.path.join(origin_txt_dir, o_img_fname[:-4] + '.txt'), 'r') as f: -> with open(os.path.join(origin_txt_dir, o_img_fname[:-4] + '.txt'), 'r', encoding='UTF-8') as f: