본문 바로가기

ML or DL/개발환경11

[딥러닝 개발환경] Ubuntu 환경 CUDA 삭제 Ubuntu 환경에서 설치되어있는 CUDA 를 삭제하기 위한 방법 출처 : https://askubuntu.com/questions/530043/removing-nvidia-cuda-toolkit-and-installing-new-one Removing Nvidia CUDA Toolkit and installing new one I installed the CUDA 5.5 package on Ubuntu 14.04 (which is not supported for this version of Ubuntu version) , and I didn't do it well. I want to remove what I've installed earlier and install a new askubuntu.com .. 2022. 5. 12.
[딥러닝 환경구축(3/3)] RTX 3090 + Windows 10 + CUDA +cuDNN RTX 30 시리즈는 CUDA 버전 11 이상만이 호환되고, 이에 따라 cuDNN 버전 8 이상, tensorflow 버전 2.5 이상의 설치가 필수 (출처 : https://uhou.tistory.com/207) CUDA 11 이상을 설치하려면 nvidia-driver 455 버전 이상이 필요 (RTX 30시리즈는 Ampere 아키텍쳐여서 Nvidia Driver 450+ 에서만 동작 (https://docs.nvidia.com/deploy/cuda-compatibility/index.html) ) 따라서 아래와 같은 환경을 세팅한다. 환경 RTX 3080 & 3090 / Windows10 nvidia-driver : 456.43 CUDA 11.0 : cuda_11.0.3_451.82_win10 cuD.. 2022. 5. 12.
[딥러닝 환경구축] Tensorflow-gpu 정상 작동 확인하기 (GPU 점유확인) 이전 글에서 CUDA, cuDNN, Tensorflow-gpu 가 정상적으로 확인하기 위한 테스트. 기본적으로 아래 코드를 통해 정상 작동하는지 확인 할 수 있다. import tensorflow as tf tf.test.is_built_with_cuda() tf.config.list_physical_devices('GPU') # tensorflow >=2.4.0 tf.test.is_gpu_available('GPU') #tensorflow 1.x tf.sysconfig.get_build_info() 추가로 실제 딥러닝 코드에서 Train 및 Inference 가 잘 되는지를 확인. https://keras.io/examples/timeseries/timeseries_anomaly_detection/ K.. 2022. 5. 11.
[딥러닝 환경구축 (2/3)] RTX 3080 (Laptop) + Windows 10 + CUDA + cuDNN 2022.04.14 기존 Ubuntu 18.04 에서 20.04 로 바꾸며 새로이 개발 환경 세팅을 정리하고자 한다. 2022.05.09 Ubuntu에서 Windows10으로 엎으면서 NVIDA Driver, CUDA, cuDNN 버전을 맞추고자 한다. 환경 RTX 3080 (Laptop) / Windows10 Tensorflow 2.5.0 / cuDNN 8.1 / CUDA 11.2 / NVIDIA Driver 471.96 0. 버전 맞추기 (중요) - https://www.tensorflow.org/install/source#gpu - 가장먼저 필요한 tf 버전을 확인하고, 이에 맞는 CUDA , cuDNN 을 찾는게 확실하다. 최신버전 사용시 warning 발생 가능. - Tensorflow 2.5... 2022. 4. 14.
[Jupyter notebook] jupytext 이용한 Git 버전 / 형상 관리 https://crazyj.tistory.com/174 ipynb 노트북 파일 형상관리 ipynbgit jupyter 노트북 ipynb과 git 연동시 문제 ipynb 노트북 파일을 git에 올려서 형상관리를 하기란 쉽지 않다. 소스코드만이 아니라 output 이 포함되어 있고, 그 외 라인 번호 등 여러가지 crazyj.tistory.com https://github.com/jupyterlab/jupyterlab-git GitHub - jupyterlab/jupyterlab-git: A Git extension for JupyterLab A Git extension for JupyterLab. Contribute to jupyterlab/jupyterlab-git development by creati.. 2022. 1. 20.
[Jupyter notebook] notebook 폰트 변경 https://kkaeruk.tistory.com/8 [Jupyter Notebook] 주피터 노트북 폰트 설정, 원래 코드가 잘 작동이 안될 때 for Windows 항상 mac으로만 주피터 노트북을 쓰다가, 교육에서 노트북을 대여해줘서 오랜만에 윈도우로 주피터를 쓰게 되었습니다! 그런데 폰트가 너무 못생겨서 너무 신경쓰이더라구요..! 다들 아시겠지만 kkaeruk.tistory.com 밑에 css 작성 까지 확인 2022. 1. 20.
[딥러닝 환경구축] Pytorch 설치 / RTX 3090 에 맞는 pytorch 설치 환경 RTX 3090 / Windows 10 NVIDIA Driver 471.96 CUDA 11.2 cuDNN 8.1 출처 : https://ssaru.github.io/2021/05/05/20210505-til_install_rtx3090_supported_pytorch/ (TIL) RTX 3090을 지원하는 PyTorch 버전설치 2021.05.05 현재 RTX3090은 CUDA11 이상을 지원하는 딥러닝 프레임워크에 버전에서만 사용할 수 있습니다. 하지만 단순하게 pip install torch==1.7.1 torchvision==0.8.2 형태로 설치하면 CUDA error: no kernel image is ava ssaru.github.io RTX 3090 은 CUDA 버전 11 이상을 지원하.. 2021. 10. 26.
[Jupyter notebook] Jupyter Notebook에서 import torch 안될 때 Anaconda IDE 에서는 python >> import torch 가 정상 작동하나 jupyter notebook을 실행해서 import torch 를 하면 모듈 불러오기가 불가능할 때, 해결방법 : pytorch를 설치한 후, conda로 jupyter notebook을 다시 설치 conda install jupyter pytorch 설치 후 jupyter notebook을 conda로 설치해주면 torch 환경을 jupyter notebook kernel에서 사용할 수 있게 된다. * 다른 방법으로는 pytorch 설치 이후 jupyter notebook에 ipykernel을 추가 출처 : https://keepdev.tistory.com/51 2021. 10. 26.
Termnial Command watch -n 1 nvidia-smi nvcc -V https://sci-hub.se/https://doi.org/10.1145/3292500.3330672 Robust Anomaly Detection for Multivariate Time Series through Stochastic Recurrent Neural Network 2021. 9. 1.