TIL

· TIL
Voxel 개념의 3D 데이터가 2D형태의 이미지 여러장으로 저장된 경우 3d array 형태로 바꾸어 주는 방법 from pathlib import Path import numpy as np from PIL import Image from tqdm.auto import tqdm paths = list(Path("file_path").rglob("*.이미지 확장자")) images = [] for path in tqdm(paths): img = Image.open(path) # img = Image.open(path).convert("L") # img = Image.open(path).convert("RGB") images.append(img) data = np.stack(images)
· TIL
Wandb를 사용하던중 다음과 같은 에러가 생겨 확인해보니 도커위에서 사용중인데 폴더의 소유권의 문제였다 stderr: 'fatal: detected dubious ownership in repository at '/home/ubuntu/Pytorch-UNet' To add an exception for this directory, call: ' ' ' Traceback (most recent call last): File "train.py", line 203, in amp=args.amp) File "train.py", line 51, in train_net wandb.init(project="test", entity="hunie") File "/opt/conda/lib/python3.7/site-pa..
hu-nie
'TIL' 카테고리의 글 목록