예시코드
#1
by
Oyounghyun
- opened
안녕하세요. 예시코드를 실행시키면 두가지 문제가 생겨서 확인차 여쭤봅니다.
- raw_image 변수
-> processor에 돌리면 아래와 같은 에러가 발생
[Error]
ValueError: Incorrect image source. Must be a valid URL starting withhttp://orhttps://, a valid path to an image file, or a base64 encoded string. Got <|start_header_id|>user<|end_header_id|>
이 이미지에는 . Failed with Incorrect padding
대안 -> 리스트로 감싸서 넣었습니다.
- self.patch_size 값
[error]
File "C:\Users\chldu\AppData\Roaming\Python\Python314\site-packages\transformers\models\llava\processing_llava.py", line 160, in call
num_image_tokens = (height // self.patch_size) * (
~~~~~~~^^~~~~~~~~~~~~~~~~
TypeError: unsupported operand type(s) for //: 'int' and 'NoneType'