티스토리 뷰
UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure
홍돌 2021. 5. 5. 17:11UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure
3D human pose쪽에서는 디버깅을 잘해야하는데, matplotlib로 3d human pose skeleton을 그릴 때 간혹 제목의 에러가 뜨는 경우가 있다. 이상하게 이전 서버에서는 안그랬는데 이 서버에서 이런 문제가 있었고, stackoverflow.com/questions/56656777/userwarning-matplotlib-is-currently-using-agg-which-is-a-non-gui-backend-so
"UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure." when plotting figure wi
I am trying to plot a simple graph using pyplot, e.g.: import matplotlib.pyplot as plt plt.plot([1,2,3],[5,7,4]) plt.show() but the figure does not appear and I get the following message: UserWa...
stackoverflow.com
이 포스트의 가장 많은 추천을 받은 밑의 해결책을 수행하면,
sudo apt-get install python3-tk
# in python script
import matplotlib
matplotlib.use('TkAgg')
TKAgg가 없다는 오류 메시지가 나온다. 제엔장 ㅜ 그래서 포기했었는데 sudo apt-get install python3.7-tk를 하니 해결이 됐다.
sudo apt-get install python3.7-tk
저 스택오버플로우 밑의 이슈에 있었던 것 같은데, 자신이 쓰는 python interpreter의 정확한 버전을 명시해야 하는 듯하다. 추측컨데, 내가 쓰는 가상환경 말고도 기본으로 깔린 python3.x가 있어서 오류가 났던 듯하다.
'Research (연구 관련)' 카테고리의 다른 글
double ssh without passwd (0) | 2021.05.24 |
---|---|
NeuralBody setting (0) | 2021.05.16 |
camera projection, 3D visualization (0) | 2021.04.06 |
openpose Pytorch code 활용 (0) | 2021.03.15 |
SPIN demo code 사용 (0) | 2021.03.11 |
- Total
- Today
- Yesterday
- focal length
- 피트니스
- nohup
- densepose
- Transformation
- 컴퓨터비전
- 헬스
- world coordinate
- 비전
- Virtual Camera
- 2d pose
- Docker
- demo
- camera coordinate
- part segmentation
- 에디톨로지
- Generative model
- 문경식
- spin
- 인터뷰
- Interview
- pyrender
- Machine Learning
- Pose2Mesh
- 컴퓨터비젼
- deep learning
- nerf
- VAE
- 머신러닝
- pytorch
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |