전체 글 (130) 썸네일형 리스트형 [에러 해결] csv로 저장한 timestamp 객체가 string이 되어버렸을 때 / pd.to_datetime 1. csv로 저장한 timestamp 객체가 string이 되어버렸어요 CSV로 저장하면서 timestamp 객체가 그냥 string이 되어버렸다 2. pd.to_datetime 함수를 쓰면 된다 import pandas의 pd.to_datetime 함수로 둘러싸서 column을 바꾸면 된다. ReferenceGPT [에러 해결] TypeError: a bytes-like object is required, not 'str' / bytes로 이미지 읽기 ast.literal_eval 1. ByteIO가 csv에 string으로 저장될 때 원래 데이터에서 bytes 타입으로 잘 읽어졌었지만 csv로 저장한 후 다시 읽어보니 TypeError: a bytes-like object is required, not 'str' TypeError: a bytes-like object is required, not 'str'BytesIO가 읽어야 하는 객체가 string이라는 에러가 났다 2. base64.b64decode 를 둘러싼다 base64 모듈에 있는 b64decode 함수를 활용해서 BytesIO가 읽을 수 있는 객체로 바꾼다 위에 있는 내용으로는 이미지가 해독이 안된다 import ast 의 모듈에서 ast.literal_eval로 원래 string을.. [에러 해결ing] Torch Cuda version error / conda install 여러 버전 1. Torch Cuda Error 오늘도 발생한 cuda 패키지 충돌 에러.. 2. 해결했던 코드들 https://pytorch.org/get-started/previous-versions/ Previous PyTorch VersionsInstalling previous versions of PyTorchpytorch.org 우선 공식 pytorch 홈페이지에서 pytorch, torchvision, 등 cuda랑 맞는 버전을 찾는다 2. pytorch-cuda 는 포함되도록 설치하기 CUDA 118을 사용하면 conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidiaconda install.. 이전 1 ··· 26 27 28 29 30 31 32 ··· 44 다음