Recent Posts
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 자료구조
- math
- Depth estimation
- cs
- nerf
- algorithm
- PRML
- FineGrained
- FGVC
- REACT
- Vision
- 3d
- computervision
- pytorch
- Python
- 딥러닝
- classification
- ML
- 알고리즘
- Front
- GAN
- CV
- Meta Learning
- dl
- nlp
- Torch
- SSL
- web
- clean code
- 머신러닝
- Today
- Total
목록Machine Learning (1)
KalelPark's LAB
[CODE] Masking imaging 코드 구현
import torch from PIL import Image import numpy as np from torchvision.transforms import transforms tf = transforms.ToPILImage() # Load image image = Image.open("/content/img.jpeg") image = np.array(image) tensor_image = torch.tensor(image) tensor_image = tensor_image.float() mask = torch.zeros_like(tensor_image) # Create binary mask mask[50:300, 200:300, :] = 1.0 # column, row mask[50:300, 420:..
Data Science/CODE
2023. 3. 29. 20:05