본문 바로가기
  • AI 개발자가 될래요

Python35

[Conda] 콘다 업데이트의 위험성.. / CondaSSLError: OpenSSL 아찔했던 경험을 기록함으로써 같은 실수를 반복하기 않게 기억하고자 한다.. CondaSSLError: OpenSSL appears to be unavailable on this machine. OpenSSL is required to download and install packages. 이 문구를 본 사람들도 이 글이 도움이 될 것이다. 회사에서 전시회 등에 사용중인 소프트웨어 시범용 노트북으로 개발중인데 아나콘다로 가상환경을 설치하던 중 아래와 같은 매혹적인 문구를 발견했다. 현재 콘다 버전은 4.11.0 인데 최신 버전이 22.11.1이니 업데이트를 하라는 문구였다. 살짝의 불안함은 있었지만 그냥 업데이트 해버렸다 .. 이게 오늘 나의 정신을 피폐하게 만들지도 모르고.. 얼마 후 업데이트가 완료되어.. 2022. 12. 20.
[PyTorch] CUDA capability sm_86 is not compatible with the current PyTorch installation 실험도 여러 개 하고.. 장비도 여러 개 사용하다보니 환경 문제에 자주 부딪힌다. 오늘은 DeepFake 오픈소스 좀 돌려보려 했더니 이런 에러가 떴다. 오픈소스 requirements에는 pytorch 1.8.1, cuda 10.2 를 사용해서 # CUDA 10.2 conda install pytorch==1.8.1 torchvision==0.9.1 torchaudio==0.8.1 cudatoolkit=10.2 -c pytorch 이 명령어로 설치했었는데.. 이 버전이랑 RTX A5000이랑 안맞나보다ㅜ 결국 노가다로 맞는 버전 찾을 수 밖에ㅡㅜㅠ 아래 명령어로 pytorch랑 cudatoolkit을 지우고 다시 깔아보자. conda uninstall pytorch cudatoolkit PyTorch .. 2022. 12. 12.
경로 내의 파일명 가져오는 방법 딥러닝 모델을 학습시키기 위해서는 파일시스템에서 데이터셋을 가져와야 한다. 여러 개의 이미지로 구성된 데이터셋을 가져오려면 파일시스템에서 정해진 경로 내에 있는 모든 파일명을 읽어올 필요가 있다. 경로 내의 파일명을 가져오는 코드는 다음과 같다. dir_name = "D:/Dataset/Training_Dataset/" train_list = os.listdir(dir_name) 2022. 7. 15.
[Tensorflow] Pycharm tensorflow Error This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN)to use the following CPU instructions in performance-critical operations: AVX AVX2 To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. 프로그램을 돌려보니 위와 같은 에러 메세지가 떴다. 에러라기보단 워닝에 가까운것 같은게, 그 뒤의 프로그램들은 오류 없이 잘 실행되었다. 위와 같은 경고 메세지를 없애는 방법은 간단하다. import os os.environ['TF_CPP_MIN_L.. 2022. 5. 25.
[Anaconda]sudo 명령어 없이 ffmpeg 설치 https://anaconda.org/conda-forge/ffmpeg Ffmpeg :: Anaconda.org Cross-platform solution to record, convert and stream audio and video. anaconda.org To install this package with conda run one of the following: conda install -c conda-forge ffmpeg conda install -c conda-forge/label/gcc7 ffmpeg conda install -c conda-forge/label/broken ffmpeg conda install -c conda-forge/label/cf201901 ffmpeg conda i.. 2022. 5. 23.