뚝딱이 — 뚝딱이

전체 글

IT 공부 일지
PAPER REVIEW/Vision

Stable Diffusion: High-Resolution Image Synthesis with Latent Diffusion Models

https://arxiv.org/abs/2112.10752 Abstract Diffusion Models(DMs) Image Formation을 denoising autoencoders로 분해하여 이미지를 합성하는 Diffusion models(DMs)은 synthesis results에서 SOTA를 달성하였다. 추가적으로 retraining 없이 image generation process를 their formulation으로 제어가 가능하다. DMs 단점 일반적으로 Pixel space를 직접적으로 denoising하여 최적화하는데 수백 개의 GPU가 소모되며 Inference에 많은 비용이 든다. quality와 flexibility는 유지하면서 limited computational resourc..

ERROR

[Error] VScode에서 clear 안되는 이유

vscode에 리눅스나 맥 환경을 ssh 하여 쓴다면 clear가 됨 > 맥이나 리눅스는 "clear"를 쓰기 때문 환경이 윈도우라면 "cls"를 치면 된다.

VScode

VScode conda가상환경 적용하기

Visual Studio Code에서 conda 가상 환경 적용하기 처음에 오른쪽 아래의 가상 환경만 보고 적용이 된 줄 알았는데 PS D:\song\code> terminal에 다음과 같이 뜨면 가상환경이 적용이 안된 거다! Conda env 연결 Ctrl + Shift + P를 누른 뒤 >python: Select Interpreter을 쳐서 가상환경을 선택한다. 여기에서 설정해도 된다. Ctrl + F5 설정 후 Ctrl + F5를 눌러 설정한 환경으로 코드를 실행한다. terminal에 다음과 같이 뜨면 성공!

ERROR

AttributeError: type object 'Image' has no attribute 'BICUBIC'

transforms.Resize((opt.img_height, opt.img_width), Image.BICUBIC) Image.BICUBIC에서 에러 발생! import PIL transforms.Resize((opt.img_height, opt.img_width), PIL.Image.BICUBIC) import후 PIL.Image.BICUBIC으로 바꾸니 오류 해결됨

Python/시각화

[CV] tensor 이미지에서 엣지 추출하기

from torch.utils.data import DataLoader의 DataLoader로 저장된 tensor image 엣지 추출하기 import cv2 img, label = train_dataset[0] #numpy로 바꿔서 진행해야함 img = img.detach().cpu().numpy() # tensor -> numpy # [C,H,W] -> [H,W,C] img = np.transpose(img, (1, 2, 0)) #color로 나오게 수치 조정 img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) img = img.astype(np.uint8).copy() #엣지 추출 edge_img = cv2.Canny(img, 100, 500) #안해도 되지만 이미지가 작다..

PAPER REVIEW

A BERT Framework to Sentiment Analysis of Tweets 2023

보호되어 있는 글입니다.

파송송
뚝딱이