skimage (1) 썸네일형 리스트형 skimage 이미지 일괄 리사이즈 방법 from skimage.transform import resize from skimage.io import imread_collection images = imread_collection('/content/dir/*.jpg') images = [resize(img, (size,size)) for img in images] imread_collection 으로 폴더 안의 jpg 파일을 다 불러오고, 리스트 컴프리헨션으로 한 번에 적용해줄 수 있다. 리사이즈를 하는 이유는? Transfer learning 시 include_top 옵션을 True로 주면 불러온 모델의 fully connected layer와 연결된다. (한 층의 모든 뉴런이 그다음 뉴런과 연결된 상태를 말한다.) https://keras.i.. 이전 1 다음