본문 바로가기

분류 전체보기115

ImportError: Could not import PIL.Image. The use of `load_img` requires PIL. 오류 메세지: ImportError: Could not import PIL.Image. The use of `load_img` requires PIL. test generator를 생성할 때 load_img를 사용하는데, 이는 PIL.Image에 속해있고 이를 쓰려면 PIL 라이브러리를 설치해야 한다. 따라서 pip나 conda 중 설치할 때 사용한 명령어를 이용해 pillow를 설치해주면 된다. 해결 방법: pip install pillow 2024. 1. 3.
AttributeError: module 'numpy' has no attribute 'object'. from tensorflow.keras import * 에서 오류 발생. 오류 메세지: AttributeError: module 'numpy' has no attribute 'object'. `np.object` was a deprecated alias for the builtin `object`. To avoid this error in existing code, use `object` by itself. Doing this will not modify any behavior and is safe. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at.. 2024. 1. 3.
github 사용법 컴퓨터에 git이 설치되어 있다는 전제하에 진행 1. github에 새 repository 생성 2. Code의 HTTPS 주소[원격저장소 주소] 복사 3. github에 올릴 코드가 있는 폴더로 이동하여 마우스 오른쪽 버튼을 누르고 Git Bash Here 클릭 4. 명령어 입력 # 로컬 저장소와 원격 저장소 연결 $ git init $ git remote add origin [원격 저장소 주소] -> master에서 main으로 바뀜 $ git branch -m master main (main으로 변경되면 생략 가능) # 원격 저장소에 파일 업로드 $ git pull origin [브랜치명] $ git add . 혹은 git add 추가할 파일.파일형식 ex) $ git add python.py ab.. 2024. 1. 2.