Hello World!

  • 홈
  • 태그
  • 방명록

RuntimeError 1

ResNet Image Feature Extraction

ref : https://github.com/josharnoldjosh/Resnet-Extract-Image-Feature-Pytorch-Python/blob/master/extract_image_feature.py RuntimeError : The size of tensor a (4) must match the size of tensor b (3) at non-singleton dimension 0 def get_vector(image_name): # 1. Load the image with Pillow library img = Image.open(image_name).convert('RGB') 코드를 .convert('RGB')로 수정하면 작동

Pytorch 2023.09.04
이전
1
다음
더보기
프로필사진

Hello World!

  • 분류 전체보기 (68)
    • PostgreSQL (7)
    • Tensorflow (0)
    • Pytorch (17)
    • Project (2)
    • GAN (6)
    • ML (17)
    • Linux (4)
    • Algorithms (11)
    • Paper (4)

Archives

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

  • LAB
  • Git

티스토리툴바