딥러닝
- deep learning [error-handling] ModuleNotFoundError: No module named 'german_transliterate'
-
deep learning
[pytorch] AttributeError: module 'distutils' has no attribute 'version' 에러 해결
-
deep learning
[deep learning] e4e(encoder4editing) 를 이용한 연예인 얼굴 인코딩 (feat. IU 웃게 만들기) - 1탄
-
deep learning
[deep learning] vit-adapter를 이용한 애완동물 segmentation
인기글
-
deep learning
[논문 읽기] ConvLSTM 이해하기
시계열에 좋은 LSTM! 이미지에 좋은 Conv! 이 둘을 짬뽕시킨 Convolutional LSTM을 알아보자. LSTM에 대한 사전지식이 필요하다. https://limitsinx.tistory.com/62 [코드로 이해하는 딥러닝 2-11] - RNN(Recurrent Neural Network)/LSTM(Long-Short-Term-Memory) [코드로 이해하는 딥러닝 0] - 글연재에 앞서 https://limitsinx.tistory.com/27 [코드로 이해하는 딥러닝 1] - Tensorflow 시작 https://limitsinx.tistory.com/28 [코드로 이해하는 딥러닝 2] - Tensorflow 변.. limitsinx.tistory.com $i_t$는 입력 게이트, $f..
-
기타
non manifold? manifold? 가 무엇인가
www.sculpteo.com/en/3d-learning-hub/create-3d-file/fix-non-manifold-geometry/ How to fix non-manifold geometry issues on 3D models Are you having some non-manifold geometry issues with your 3D model? Here are our tips to fix it and to prevent this from happening! www.sculpteo.com non-manifold geometry란 무엇인가? 2D로 펼쳐질 수없는 3D 형태 (펼쳐질 수 있단 건, 모든 normal vector가 한 방향을 가리킨 다는 의미) 3d printing에 왜 manifol..
-
linux
ModuleNotFoundError: No module named 'open_clip' 에러 해결
pip install open_clip_torch
-
etc
ImportError: IProgress not found. jupyter lab tqdm, notebook tqdm 에러 문제
jupyter lab을 쓰는데 tqdm이 이상하게 자꾸 줄 바뀜이 일어난다. 그래서 찾아보니 stackoverflow.com/questions/23113494/double-progress-bar-in-python Double Progress Bar in Python Is there a way to create a double progress bar in Python? I want to run two loops inside each other. For each loop I want to have a progress bar. My program looks like: import time for i1 in range... stackoverflow.com 여기에 enlighten 함수는 jupyterlab에 안..
-
기타
[노션] 노션 상위 혹은 하위 페이지 공유 안하기!!!
노션 상위 페이지가 불필요하게 공유되는 현상이 있는데, 한글로 검색해봐도 딱히 자료가 없어서 공유한다. 여기서 위의 공유용문서까지 보이는 사태가 발생하고 있었는데... 이걸 어떻게 해결할 것인가? 답은 간단하다. 공유용 문서 탭에 들어간다 -> 여기서 아래 노션 공홈에서 얘기하는 것처럼 접근 제한을 준다. https://www.notion.so/help/sharing-and-permissions Guide to using Notion’s sharing and permission settings – Notion Help Center Be in complete control of who has access to your information and what level of access they have. L..
-
deep learning
[nvidia-docker] NGC 설치로 pytorch build 필요없이 실행하기 - nvidia imaginaire 이용하는 법
하게된 배경 github.com/NVlabs/imaginaire NVlabs/imaginaire NVIDIA PyTorch GAN library with distributed and mixed precision support - NVlabs/imaginaire github.com imaginaire라는 라이브러리가 있다. 해당 라이브러리는 cuda 10.2로만 동작한다. RTX 30 시리즈는 cuda 10.2에서 지원하지 않는다는 게 문제... apex라는 라이브러리가 torch와 뭔가 연동이 되지 않아서 빌드부터 다시 해야한다고 들었다. 그런데 우리의 NGC는 apex와의 build를 cuda 11.2에서도 다 해놓았다! (NGC는 Nvidia Gpu Cloud의 약자로 Nvidia에서 AI를 쉽게 할..
머신러닝
-
machine learning rdkit 설치하기 rdkit 공식 문서를 보면 pip 도 안되고 conda로 해라고 한다. 그런데 conda로도 안돼서 여러 삽질을 거치다 다음과 같은 해결법을 알게됐다. !pip install python-rdkit 위 명령어면 한 방에 해결된다. # General Imports import os import pandas as pd import numpy as np pd.options.display.max_columns=300 import warnings warnings.filterwarnings("ignore") from rdkit import Chem from rdkit.Chem import Draw, Descriptors from rdkit import DataStructs from rdkit.Chem import.. -
machine learning [pandas] pandas dataframe 이용해서 그룹별로 train/val 나누기 가끔 dataframe 자체로 train_test_split을 해야 할 때가 있다. 그럴 땐 어떻게 해야하나... 특히 그룹별로 특정 샘플이 valset에 균등하게 포함되도록 하려면...? 간단한 방법 groupby후 sampling을 한다. validation을 0.2만큼 하고 싶으면 frac=0.2로 준다. 그렇게 나타난 valDataset의 index를 drop 해주면 된다. 이것보다 어려운 방법은 drop의 반대 방법으로 있는 부분만 iloc으로 남기는 것이다. 이상 끝
-
machine learning dtreeviz IndexError, decision tree visualization random forest 모델 혹은 decision tree 모델을 이용했을 경우 모델이 어떻게 작동하는지 설명을 요구할 때가 있다. RandomForestRegressor를 이용해서 회귀분석을 진행했다. 그런데 RandomForestRegressor같은 경우 여러 Decision tree의 앙상블 모델로 tree를 한 번에 시각화하기가 어렵다. 그래서 tree중 하나를 선택해서 시각화한다. 그러다 좋은 라이브러리를 발견했다. dtreeviz 이런식으로 쓰면되는 간단하고 편리한 라이브러리다! model = Pipeline([('scaler',MinMaxScaler()), ('DecisionTreeRegressor', DecisionTreeRegressor(criterion='mae', max_depth=..
-
machine learning epoch, iter ? epoch, iter (한 번의 epoch는 인공 신경망에서 전체 데이터 셋에 대해 forward pass/backward pass 과정을 거친 것을 말함. 즉, 전체 데이터 셋에 대해 한 번 학습을 완료한 상태) [출처] 머신 러닝 - epoch, batch size, iteration의 의미|작성자 예비개발자 메모리의 한계와 속도 저하 때문에 대부분의 경우에는 한 번의 epoch에서 모든 데이터를 한꺼번에 집어넣을 수는 없습니다. 그래서 데이터를 나누어서 주게 되는데 이때 몇 번 나누어서 주는가를 iteration, 각 iteration마다 주는 데이터 사이즈를 batch size라고 합니다. 전체 2000 개의 데이터가 있고, epochs = 20, batch_size = 500이라고 가정합시다. ..