当前位置:网站首页>Installation and use of tensorboard
Installation and use of tensorboard
2022-07-22 15:32:00 【I am a little duck】
Tensorboard install (pip install )
Anaconda Prompt install tensorboard
(base) C:\Users\ Yellow duck >activate python3.6
(python3.6) C:\Users\ Yellow duck >pip install tensorboard --target=D:\Tool\Anaconda\envs\python3.6\Lib\site-packages
pip install **–target Specify the corresponding Anaconda Of python Environmental Directory **
tensorboard Use
import torchvision
from torch.utils.tensorboard import SummaryWriter
# Set data set transformation tensor
dataset_transform = torchvision.transforms.Compose([torchvision.transforms.ToTensor()])
# Get the test data set
test_set = torchvision.datasets.CIFAR10(root='./dataset', train=False, transform=dataset_transform, download=True)
# Specify output directory
writer = SummaryWriter("logs")
# Output 10 A picture
for i in range(10):
img,target = test_set[i]
writer.add_image('test_set',img,global_step=i)
writer.close()
Click on the run , that will do .
(python3.6) D:\Tool\Anaconda\Scripts>tensorboard --logdir=D:\Space\PythonSpace\torchvision-01\logs
TensorFlow installation not found - running with reduced feature set.
Serving TensorBoard on localhost; to expose to the network, use a proxy or pass --bind_all
TensorBoard 2.9.1 at http://localhost:6006/ (Press CTRL+C to quit)
边栏推荐
- Redis master-slave replication
- How to use current probe correctly
- [C language - program compilation] how does the line by line code get to an executable program step by step?
- MySQL练习一数据库的知识
- Aidl summary
- MySQL locking mechanism: MyISAM table lock, InnoDB row lock
- Still asking what to use for interface testing? Universal JMeter creates a performance test data platform
- df.describe() 详解+用法+示例
- MySQL的增删查改(第二话)
- MySQL (28) - transaction related
猜你喜欢
云原生IDE:iVX首个通用且强大无代码开发平台
When configuring Eureka, the status displays the computer name instead of localhost and IPADDR, which is the local IP
Kubernetes basic part learning notes
Redis master-slave replication
K-均值聚类建模以及编程实现
PLT draw and save the results
MySQL练习一数据库的知识
AutoLabel(自动标签)
df. Describe() detailed + usage + Example
Reasons for driving voltage deviation caused by high voltage differential probe
随机推荐
【07】函数调用:为什么会发生stack overflow?
Delete Nan points in 3D point cloud TXT file
机器学习笔记 - 机器学习系统设计流程概述
数据库的相关知识
Redis master-slave replication
Seaborn barplot drawing summary
[C language - file] the data can finally be out of the memory. Go to the outside world to have a look / (o)/~~
The difference between static variables and global variables
Tdengine learning notes
codeforces每日5题(均1500)-第二十二天
Write a maze game with R
JMeter notes 1 | introduction and architecture of JMeter
时序数据库
DM8: query the data file size limit of Dameng database
Barcode(条形码)
JDBC programming
码蹄集 - MT2201 · 各位之和
temporal database
【华为机试真题】组成最大数【2022 Q3 | 100分】
MySQL練習一數據庫的知識