当前位置:网站首页>Pytoch -- used by visdom
Pytoch -- used by visdom
2022-07-26 22:02:00 【Like a few dollars】
First step :
open Anaconda Prompt
# Input installation before installation visdom
pip install visdom
# After installation, input and start ( Every time )
python -m visdom.server

The second step :
Open the browser , Input :http://localhost:8097 Open the following interface

The third step :
open Jupyter Notebook-> Build the environment -> Code implementation

Fourth : Related codes

for ii in range(0,10):
x=t.Tensor([ii])
y=x
vis.line(X=x,Y=y,win='polynomial',update='append' if ii>0 else None)
x=t.arange(0,9,0.1)
y=(x**2)/9
vis.line(X=x,Y=y,win='polynomial',name='this is a new Trace',update='append')
# Gray picture
vis.image(t.randn(64,64).numpy(),win='random1')
# Color picture
vis.image(t.randn(3,64,64).numpy(),win='random2')
#36 Random color pictures , Each row 6 Zhang
vis.images(t.randn(36,3,64,64).numpy(),nrow=6,win='random3',opts={'title':'random_imgs'}) 
vis.text(u'''<h1>hello visdom</h1><br>visdom yes Facebook Specially for <b>Pytorch</b> A visualization tool developed ''',
win='visdom',opts={'title':u'visdom brief introduction '}
)
# Set linearity and color
import numpy as np
win=vis.line(
X=np.column_stack((
np.arange(0,10),
np.arange(0,10),
np.arange(0,10),
)),
Y=np.column_stack((
np.linspace(5,10,10),
np.linspace(5,10,10)+5,
np.linspace(5,10,10)+10,
)),
opts={
'dash':np.array(['solid','dash','dashdot']),
'linecolor':np.array([
[0,101,255],
[0,61,255],
[255,155,0],
]),
'title':'Different line dash types'
}
) 
# Draw two broken lines
vis.line(
X=[1, 2, 3, 4],
Y=[1, 4, 9, 16],
win='line1',# window id
name='test line1',# Line name
update='append',
opts={
'showlegend':True,# Show grid
'title':'Demo line in Visdom',
'xlabel':"x1",#x Axis labels
'ylabel':"y1",#y Axis labels
},
)
vis.line(
X=[1, 2, 3, 4],
Y=[0.5, 2, 4.5, 8],
name='test line2',
win='line1',
update='append'
) 
边栏推荐
- Six instructions of Memcache based caching mechanism
- 一篇让小百彻底搞懂性能调优
- 知识库工具 | 微网站、文档中心、形象展示页拖拽即可生成(附模板,直接用)
- July training (the 26th day) - and check the collection
- Keyword maintenance of dream weaving document doesn't work
- Four solutions of distributed session
- day07-
- MPLS基础知识概述
- xshell7个人免费下载,使用
- When deploying Flink on a single machine and creating the connection table of oracle19c RAC, the error ora-12505 is reported. Who can help
猜你喜欢

Isilon 的OneFs常见操作命令(一)

Thoroughly understand the principle and implementation of service discovery

Selenium自动化测试面试题全家桶

Altium designer 22 modify the layer properties of the selected component

flask 源码启动阶段

从手动测试,到自动化测试老司机,只用了几个月,我的薪资翻了一倍

正规方程法(Normal Equation)原理以及与梯度下降法的区别

day07-

Use of cmake

Isilon's onefs common operation commands (I)
随机推荐
新来个技术总监要我做一个 IP 属地功能~
Triangular wave spectrum of MATLAB excitation model
matlab 画短时平均幅度谱
TASK04|分类分析
45、实例分割的labelme数据集转coco数据集以及coco数据集转labelme数据集
Vi和Vim文本编辑器
Oppo self-developed large-scale knowledge map and its application in digital intelligence engineering
Kalibr calibration realsensed435i -- multi camera calibration
npm, npm中文文档, npm学习使用
Altium Designer 22 中文字符乱码
flask 源码启动阶段
Go----Go 语言命名规范
d和c的符区别
Flextronics responded to the "seizure of Huawei materials" incident: deeply regretted, looking forward to continuing cooperation!
Samsung releases 108million pixel image sensor isocell bright HMX, and Xiaomi will launch
七月集训(第26天) —— 并查集
cmake编译obs-studio-27.2.0
逻辑漏洞----任意账号注册
开发转测试:从零开始的6年自动化之路
Flink's real-time data analysis practice in iFLYTEK AI marketing business