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
- REACT
- CV
- PRML
- web
- math
- Python
- dl
- SSL
- algorithm
- clean code
- ML
- Vision
- FineGrained
- FGVC
- nerf
- 자료구조
- cs
- pytorch
- GAN
- nlp
- 3d
- classification
- 머신러닝
- Depth estimation
- Front
- computervision
- Meta Learning
- 딥러닝
- Torch
- 알고리즘
- 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