728x90
반응형
관련있는 포스팅 : https://yjs-program.tistory.com/303
라벨미에 적용되어 있는 json open 코드에서 encoding이 별도로 설정되어 있지 않아 생기는 이슈로, 주로 낮은 labelme버전으로 작성한 코드를 최신 버전으로 열 때 발생한다.
labelme가 깔려있는 환경 내에서 실제 labelme package 관련 코드들을 살펴보면 "label_file.py"라는 파일을 수정하면 된다.
@contextlib.contextmanager
def open(name, mode):
assert mode in ["r", "w"]
if PY2:
mode += "b"
encoding = None
else:
# previous code
# encoding = "utf-8"
encoding = "utf-8-sig"
yield io.open(name, mode, encoding=encoding)
return
https://github.com/wkentaro/labelme/issues/299
728x90
반응형
'사소한 Tip . 오류 해결법' 카테고리의 다른 글
[pytorch] RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory (0) | 2023.09.14 |
---|---|
[맥OS to Windows] 한글(파일명) 깨짐/자소분리 (0) | 2023.09.07 |
[pip] package install 중 unicodeDecodeError : 'cp949'(labelme) (1) | 2023.09.06 |
[vscode] permission denied, ssh 연결 중에 권한 이슈 (0) | 2023.09.01 |
[glob] glob 사용시, 경로에 대괄호(bracket)가 있는 경우 (0) | 2023.09.01 |