일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- docker exec
- numpy
- aiffel exploration
- Jupyter notebook
- 사회조사분석사2급
- docker
- 티스토리챌린지
- AIFFEL
- GIT
- HookNet
- 오블완
- ssh
- 기초확률론
- Multi-Resolution Networks for Semantic Segmentation in Whole Slide Images
- docker attach
- cs231n
- airflow
- 백신후원
- IVI
- Pull Request
- CellPin
- logistic regression
- cocre
- vscode
- 도커
- 코크리
- 히비스서커스
- WSSS
- 프로그래머스
- Decision Boundary
Archives
- Today
- Total
목록np.argmax 후 cv2.resize 에러 (1)
히비스서커스의 블로그
[OpenCV] error: OpenCV(4.5.4) /tmp/pip-req-build-sokf1_ny/opencv/modules/imgproc/src/resize.cpp:3929: error: (-215:Assertion failed) func != 0 in function 'resize'
상황 np.argmax함수를 쓴 후 cv2.resize 해주려던 찰나 다음과 같은 에러 메세지를 마주하였다. 대략적인 코드 import numpy as np import cv2 # np.argmax를 위한 과정 arg_max = np.zeros((512,512,3)) arg_max[...,1] = np.where(mask==1,1,0) arg_max[...,2] = np.where(mask==2,1,0) arg_max[...,0] = np.ones((512,512)) - arg_max[...,1] - arg_max[...,2] arg_max = np.argmax(arg_max, axis=2) # cv2.resize를 위한 과정 arg_max_resized = cv2.resize(arg_max, (128,..
Programming/Python
2021. 12. 20. 19:00