当前位置:网站首页>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'
) 
边栏推荐
- 会用redis吗?那还不快来了解下redis protocol
- The United States once again challenged: Forbidding contractors to purchase the equipment and technology of these five Chinese companies
- FreeRTOS个人笔记-事件
- It is said that Samsung obtained EUV photoresist from Belgium
- 安全浏览器“隐身”模式可以查看历史记录吗?
- Afnetworking understand
- Pytoch uses RNN model to build person name classifier
- Pytoch squeeze() unsqueeze() usage
- Selenium自动化测试面试题全家桶
- FreeRTOS personal notes - Events
猜你喜欢

day07-

测试员:“我有五年测试经验”HR: “不,你只是把一年的工作经验用了五年”

知识库工具 | 微网站、文档中心、形象展示页拖拽即可生成(附模板,直接用)

flask 源码启动阶段

LDAP——实现用户统一登录管理

A new technical director asked me to do an IP territorial function~
![[shutter -- geTx] pop up - dialog, snackBar, bottomsheet](/img/17/af2e45620e96a78235081145b7bb76.png)
[shutter -- geTx] pop up - dialog, snackBar, bottomsheet

My SQL is OK. Why is it still so slow? MySQL locking rules

matlab 画短时平均幅度谱

仅需一个依赖给Swagger换上新皮肤,既简单又炫酷
随机推荐
Resume in 2022 is dead in the sea. Don't vote. Software testing positions are saturated
寻找数字零售的发展新方向,才是保证数字零售可以进入到全新发展阶段的关键
Flag decodes token, mounts token, decorator, and seven cattle cloud upload
虾皮shopee根据ID取商品详情 API
梦里的一碗面
浏览器主页被篡改怎么办,主页被篡改恢复方法
知识库工具 | 微网站、文档中心、形象展示页拖拽即可生成(附模板,直接用)
Technology sharing | do you know the functions of the server interface automated testing and requests library?
Oppo self-developed large-scale knowledge map and its application in digital intelligence engineering
Oppo self-developed large-scale knowledge map and its application in digital intelligence engineering
Triangular wave spectrum of MATLAB excitation model
开发转测试:从零开始的6年自动化之路
方法重载与方法重写
Six instructions of Memcache based caching mechanism
ansible安装及使用
[MySql]substr用法-查询表的某个字段的具体位数的值
Altium Designer 22 中文字符乱码
Samsung releases 108million pixel image sensor isocell bright HMX, and Xiaomi will launch
The principle of normal equation method and its difference from gradient descent method
Altium designer 22 Chinese character garbled