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 |
Tags
- OmniSLAM
- Multi-viewRegistration
- PaperReview
- Omnidirectional
- LayoutEstimation
- RuntimeError
- tensorboard
- Python
- Deeplearning
- hstack
- LearnGitBranching
- ICCV2019
- git
- MirrorSegmentation
- pytorch
- vstack
- SensorFusion
- Kinect
- numpy
- ComputerVision
- MirrorDiscrimination
- 3d vision
- deep learning
- IndoorReconstruction
- RGBD
- 다단
- CONCATENATE
- unsupervised learning
- CVPR2020
- DepthEstimation
Archives
- Today
- Total
목록CONCATENATE (1)
let me graduate
Numpy stack from empty ndarray
처음에 빈 array인 numpy.array([ ]) 를 정의해 놓고 for loop 안에서 numpy.stack을 이용해 쌓아줘야할 때가 있다. 하지만 빈 행렬에 (n,1) 차원의 벡터를 쌓으려고 할 때 에러가 발생한다. ValueError: all the input array dimensions except for the concatenation axis must match exactly 차원이 맞지 않는 array를 쌓을 수 없다는 것이다. 이 경우에 처음에 빈 array를 numpy.array([ ]).reshape(n,-1) 로 초기화시켜주고, 쌓을 array도 reshape(n,1)로 바꿔서 쌓으면 에러 없이 for loop 안에서 array를 쌓을 수 있다. C = len(doc_to_shi..
공부한 것들
2020. 4. 21. 00:38