일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- simclrv2
- cifar100-c
- semi supervised learnin 가정
- tent paper
- UnderstandingDeepLearning
- mme paper
- SSL
- ConMatch
- GAN
- 최린컴퓨터구조
- dcgan
- Entropy Minimization
- CoMatch
- WGAN
- Pseudo Label
- Meta Pseudo Labels
- mocov3
- BYOL
- Pix2Pix
- 컴퓨터구조
- conjugate pseudo label paper
- CGAN
- CycleGAN
- remixmatch paper
- shrinkmatch paper
- dann paper
- shrinkmatch
- 딥러닝손실함수
- 백준 알고리즘
- adamatch paper
Archives
- Today
- Total
목록einops (1)
Hello Computer Vision
einops rearrange 공부해보기
이번에 ViT를 공부하는 와중에 텐서를 조금 더 내 자유자재로 만들 수 있는 라이브러리를 발견했다 그건 바로 einops! terminal 에 pip install einops 하면은 금방 설치할 수 있다. 한번 코드 예시를 통해 알아보겠다. 매우 직관적이므로 쉽게 알 수 있다. from einops import rearrange import torch.nn as nn import torch img = torch.rand(8, 224, 224, 3) print(img.shape) print(rearrange(img, 'b h w c -> b c h w').shape) print(rearrange(img, 'b h w c -> (b c) h w').shape) print(rearrange(img, 'b h..
딥러닝
2023. 2. 10. 13:41