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