当前位置:网站首页>When pycharm debugs, view the tensor image of pytorch in the console
When pycharm debugs, view the tensor image of pytorch in the console
2022-04-23 21:57:00 【Three stone orders】
Stop at the breakpoint , Enter relevant instructions on the console ;
# debug At the time console View in tensor Images
image_tensor = target.cpu()
image_array = image_tensor.numpy()
from PIL import Image
image_PIL = Image.fromarray(image_array.astype('uint8'))
image_PIL.save("/home/wang/home/wang/aa.jpg")
版权声明
本文为[Three stone orders]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204200615437195.html
边栏推荐
- CUDA, NVIDIA driver, cudnn download address and version correspondence
- Google tries to use rust in Chrome
- JS prototype and prototype chain
- What if Jenkins forgot his password
- Cancel the default open project setting of idea
- Getting started with detectron2
- flomo软件推荐
- Correction of date conversion format error after Oracle adds a row total
- Question brushing plan -- backtracking method (I)
- Ubutnu20 installer centernet
猜你喜欢
Database Experiment 8 trigger experiment
Plato Farm元宇宙IEO上线四大,链上交易颇高
Problem brushing plan -- dynamic programming (III)
opencv应用——以图拼图
Ali has another "against the sky" container framework! This kubernetes advanced manual is too complete
Cancel the default open project setting of idea
Chrome 94 introduces the controversial idle detection API, which apple and Mozilla oppose
Database Experiment 7 stored procedure experiment
thinkphp5+数据大屏展示效果
Centos7 builds MySQL master-slave replication from scratch (avoid stepping on the pit)
随机推荐
Cvpr2022 | efficient pre training based on knowledge distillation
一文解决浏览器跨域问题
Pytorch preserves different forms of pre training models
[leetcode refers to offer 47. Maximum value of gift (medium)]
Correction of date conversion format error after Oracle adds a row total
Crisis is opportunity. Why will the efficiency of telecommuting improve?
Pytorch selects the first k maximum (minimum) values and their indexes in the data
Presto on spark supports 3.1.3 records
Centralized record of experimental problems
C# ftpHelper
Database Experiment four View experiment
[※ leetcode refers to offer 48. The longest substring without repeated characters (medium)]
韩国或将禁止苹果和谷歌向开发者抽佣 创全球首例
Google 尝试在 Chrome 中使用 Rust
IOT design and development
Daily operation and maintenance knowledge -- 1
Deep understanding of modern mobile GPU (continuously updating)
使用mbean 自动执行heap dump
C winfrom DataGridView click on the column header can not automatically sort the problem
Detectron2 usage model