当前位置:网站首页>Visual implementation and inspection of visdom
Visual implementation and inspection of visdom
2022-07-06 08:32:00 【MAR-Sky】
Reference resources :https://blog.csdn.net/weixin_41010198/article/details/117853358、https://www.w3cschool.cn/article/86830765.html
Install and use
1、pip install visdom, Or use conda install visdom library
2、 important : The premise is to install another library ,jsonpatch, Otherwise, an error will be reported
3、 start-up visdom Service for ,python -m visdom.server, Determine the environment ,** closed ** as long as ** close cmd Start the command window ** Just go
Use python -m visdom.server after
Checking for scripts.
Downloading scripts, this may take a little while
It's Alive!
INFO:root:Application Started
You can navigate to http://localhost:8097
And then in browser Input in http://localhost:8097 View the display
A simple example and display settings on the interface
The entire steps shown :
- Start the service in the corresponding environment ,python -m visdom.server, Get the local address of the browser that can be accessed
- Put the local address of the browser into the address bar of the browser
- function python Of .py Program ,
import visdom
import numpy as np
vis = visdom.Visdom()
vis.text('Hello, world!')
# vis.image(np.ones((3, 10, 10)))
x = list(range(10))
y = list(range(10))
# Use line Function to draw a line And select the display axis
vis.line(X=np.array(x), Y=np.array(y), opts=dict(showlegend=True))

Multiple environment displays
import visdom
import numpy as np
import torch
vis = visdom.Visdom(env='sin')
x = torch.arange(0, 100, 0.1)
y = torch.sin(x)
vis.line(X=x,Y=y,win='sin(x)',opts=dict(showlegend=True))
vis = visdom.Visdom(env='my_windows')
x = list(range(10))
y = list(range(10))
# Use line Function to draw a line And select the display axis
vis.line(X=np.array(x), Y=np.array(y), opts=dict(showlegend=True))
vis = visdom.Visdom(env='my_doub')
x = list(range(10))
y = list(range(10))
z = list(range(1,11))
vis.line(X=np.array(x), Y=np.column_stack((np.array(y), np.array(z))), opts=dict(showlegend=True))

From the image , Establish three environments
visdom The interface in the browser is used together with the operation of editing software

边栏推荐
- sublime text没关闭其他运行就使用CTRL+b运行另外的程序问题
- Grayscale upgrade tidb operator
- Research Report on supply and demand and development prospects of China's high purity aluminum market (2022 Edition)
- 2022.02.13 - NC003. Design LRU cache structure
- LDAP application (4) Jenkins access
- China Light conveyor belt in-depth research and investment strategy report (2022 Edition)
- Sort according to a number in a string in a column of CSV file
- [luatos-air551g] 6.2 repair: restart caused by line drawing
- 角色动画(Character Animation)的现状与趋势
- China high purity silver nitrate Market Research and investment strategy report (2022 Edition)
猜你喜欢

Cisp-pte practice explanation
![[MySQL] log](/img/e9/1617122888c096cf6aba2bdb88f0ef.png)
[MySQL] log

Roguelike游戏成破解重灾区,如何破局?

JS inheritance method

指针进阶---指针数组,数组指针
![[research materials] 2021 live broadcast annual data report of e-commerce - Download attached](/img/a6/74da2f44c7b6b22fed2f8e41a55988.jpg)
[research materials] 2021 live broadcast annual data report of e-commerce - Download attached

2022.02.13 - NC002. sort

Beijing invitation media

IOT -- interpreting the four tier architecture of the Internet of things

C语言深度解剖——C语言关键字
随机推荐
[2022 广东省赛M] 拉格朗日插值 (多元函数极值 分治NTT)
China vanadium battery Market Research and future prospects report (2022 Edition)
win10系统中的截图,win+prtSc保存位置
[research materials] 2021 live broadcast annual data report of e-commerce - Download attached
sublime text的编写程序时的Tab和空格缩进问题
leetcode刷题 (5.29) 哈希表
C language - bit segment
China Light conveyor belt in-depth research and investment strategy report (2022 Edition)
Research Report on Market Research and investment strategy of microcrystalline graphite materials in China (2022 Edition)
All the ArrayList knowledge you want to know is here
2022 Inner Mongolia latest construction tower crane (construction special operation) simulation examination question bank and answers
【MySQL】日志
Report on Market Research and investment prospects of China's silver powder industry (2022 Edition)
LDAP Application Section (4) Jenkins Access
2022.02.13 - NC001. Reverse linked list
Summary of MySQL index failure scenarios
角色动画(Character Animation)的现状与趋势
Résumé des diagrammes de description des broches de la série ESP
JVM performance tuning and practical basic theory - Part 1
China dihydrolaurenol market forecast and investment strategy report (2022 Edition)