import numpy as np
from PIL import Image
import sys
import matplotlib.pyplot as plt
import caffe
import caffe
import glob
fileList=glob.glob('/home/yangwb/FCN/jpeg/*.jpg')#遍历读取jpg文件
for filename in fileList:
# load image, switch to BGR, subtract mean, and make dims C x H x W for Caffe
im = Image.open(filename)
in_ = np.array(im, dtype=np.float32)
in_ = in_[
python FCN批量测试图片
最新推荐文章于 2023-01-10 11:06:17 发布