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

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