Notice
Recent Posts
Recent Comments
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
- llm을 활용 단어장 앱 개발일지
- Image Processing
- Dreamhack
- bloc
- MDP
- Flutter
- BFS
- 백준
- Computer Architecture
- Widget
- PCA
- MATLAB
- pytorch
- 파이토치 트랜스포머를 활용한 자연어 처리와 컴퓨터비전 심층학습
- DART
- ARM
- C++
- system hacking
- BAEKJOON
- 영상처리
- Stream
- Algorithm
- Got
- FastAPI
- BOF
- study book
- fastapi를 사용한 파이썬 웹 개발
- rao
- Kaggle
- ML
Archives
- Today
- Total
목록rearrange (1)
Bull

pip install einops from einops import rearrange x = torch.randn(64, 3, 32, 32) patch_size = 4 # 4 pixels print('x :', x.shape) patches = rearrange(x, 'b c (h s1) (w s2) -> b (h w) (s1 s2 c)', s1=patch_size, s2=patch_size) # 64 3 32 32 = 64 3 8*4 8*4 -> 64 8*8 4*4*3 print('patches :', patches.shape) x : torch.Size([64, 3, 32, 32]) patches : torch.Size([64, 64, 48]) rearrange(x, 'b c (h s1) (w s2)..
AI programming/pytorch
2024. 4. 13. 20:30