当前位置:网站首页>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

边栏推荐
- Mobile Test Engineer occupation yyds dry goods inventory
- Browser thread
- Yyds dry goods inventory three JS source code interpretation eventdispatcher
- Wincc7.5 download and installation tutorial (win10 system)
- ROS编译 调用第三方动态库(xxx.so)
- leetcode刷题 (5.28) 哈希表
- Synchronized solves problems caused by sharing
- 查看局域网中电脑设备
- Use dumping to back up tidb cluster data to S3 compatible storage
- 根据csv文件某一列字符串中某个数字排序
猜你喜欢

Beijing invitation media

ESP系列引脚說明圖匯總

Circular reference of ES6 module

JVM 快速入门

The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower

【ROS】usb_cam相机标定

化不掉的钟薛高,逃不出网红产品的生命周期

Leetcode question brushing (5.28) hash table

2022.02.13 - NC002. sort

Roguelike游戏成破解重灾区,如何破局?
随机推荐
Wincc7.5 download and installation tutorial (win10 system)
游戏解包的危害及资源加密的重要性
堆排序详解
China's high purity aluminum target market status and investment forecast report (2022 Edition)
Analysis of the source code of cocos2d-x for mobile game security (mobile game reverse and protection)
synchronized 解决共享带来的问题
China vanadium battery Market Research and future prospects report (2022 Edition)
egg. JS getting started navigation: installation, use and learning
China high purity silver nitrate Market Research and investment strategy report (2022 Edition)
Browser thread
C语言双指针——经典题型
leetcode刷题 (5.28) 哈希表
Grayscale upgrade tidb operator
生成器参数传入参数
LDAP Application Section (4) Jenkins Access
Use br to back up tidb cluster data to S3 compatible storage
JS pure function
Online yaml to CSV tool
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
化不掉的钟薛高,逃不出网红产品的生命周期