当前位置:网站首页>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 
边栏推荐
- Automatic heap dump using MBean
- [SDU chart team - core] enumeration of SVG attribute class design
- Thinkphp5 + data large screen display effect
- Sqlserver edits data in the query interface (similar to Oracle's edit and ROWID)
- Introduction to tensorrt
- [leetcode refers to offer 27. Image of binary tree (simple)]
- 2022-04-24日报:在生物科学领域应用深度学习的当前进展和开放挑战
- Database Experiment 2 data query
- Deno 1.13.2 发布
- Assertionerror: invalid device ID and runtimeerror: CUDA error: invalid device ordinal
猜你喜欢
 - Database experiment I database definition and data import 
 - 管道和xargs 
 - C reads excel specific data into specific columns of DataGridView 
 - Ali has another "against the sky" container framework! This kubernetes advanced manual is too complete 
 - Preliminary analysis of Airbase 
 - Sharpness difference (SD) calculation method of image reconstruction and generation domain index 
 - 手撕《Google SRE Book》 
 - C# ftpHelper 
 - C, print the source program of beautiful bell triangle 
![[※ leetcode refers to offer 46. Translate numbers into strings (medium)]](/img/72/fbdc5d14dada16cd211c99cd8f9d31.png) - [※ leetcode refers to offer 46. Translate numbers into strings (medium)] 
随机推荐
- 2. Finishing huazi Mianjing -- 2 
- 一文解决浏览器跨域问题 
- Problem brushing plan -- dynamic programming (III) 
- Resolve the "chromedriver executable needs to be in path" error 
- Sqlserver edits data in the query interface (similar to Oracle's edit and ROWID) 
- Getting started with detectron2 
- C#,打印漂亮的贝尔三角形(Bell Triangle)的源程序 
- Tensorflow and pytorch middle note feature map size adjustment to achieve up sampling 
- NVM introduction, NVM download, installation and use (node version management) 
- [leetcode sword finger offer 58 - I. flip word order (simple)] 
- Idea import a project 
- Code cloud download history version process 
- Online timing flow chart making tool 
- The computer is out of power. How did I pass the terrible interview of Tencent cloud? 
- Database Experiment 2 data query 
- [leetcode refers to the two numbers of offer 57. And S (simple)] 
- 管道和xargs 
- Ubutnu20 installer centernet 
- 阿里又一个“逆天”容器框架!这本Kubernetes进阶手册简直太全了