jupyter notebook3 [Error] Jupyter notebook에서 parser 사용 시 SystemExit 에러 나는 PyCharm 환경에서 Jupyter notebook을 사용하고 있다. parser 사용 시 다음과 같은 에러가 발생하였다. 문제 상황 나는 config.py 파일에 argparser를 사용하여 코드에서 사용할 파라미터들을 정의해두었다. 아래 코드는 중요한 것은 아니고 그저 "argparser를 사용했다"라고만 알아두면 된다. # config.py import os import platform from argparse import ArgumentParser import torch class ModelConfig(object): """Wrapper class for model hyperparameters.""" def __init__(self): """ Defaults """ self.parser =.. 2024. 2. 22. [Error] Jupyter notebook 이미지 출력 시 색 반전 문제 PyCharm 환경에서 imshow를 한 결과, RGB 전환을 했음에도 불구하고 색이 반전되어 나오는 현상이 있었다. 문제 상황 PyCharm 환경 Jupyter Notebook 커널 Python 3 cv2의 imshow 사용 아무리 검색해도 나와 같은 문제가 발생한 경우가 없어 반 포기 상태였는데... 우연히 해결되었다. 해결 방법은 매우 간단했다. 나는 PyCharm dark 테마를 사용하고 있었는데, dark 테마로 인해서 이미지 출력에 문제가 생겼던 것 같다. light 테마로 변경해주고, 해당 셀을 다시 실행하여 출력 결과를 보니 정상적으로 RGB 이미지가 출력되었다. 해결 방법 1. PyCharm 설정 PyCharm 설정에 들어가준다. 우측 상단의 설정 버튼을 클릭하면 된다. 2. Theme .. 2024. 2. 22. Anaconda 가상 환경에서 Jupyter notebook 실행 먼저 Anaconda가 없다면 Anaconda부터 설치해야 한다. 이미 설치했다면 이 부분은 생략하면 된다. 1. Anaconda 설치 https://docs.anaconda.com/free/anaconda/install/index.html Installation — Anaconda documentation Installation Review the system requirements listed below before installing Anaconda Distribution. If you don’t want the hundreds of packages included with Anaconda, install Miniconda, a mini version of Anaconda that includes .. 2024. 2. 6. 이전 1 다음