当前位置:网站首页>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
边栏推荐
- 2022.02.13 - 238. Maximum number of "balloons"
- Report on Market Research and investment prospects of China's silver powder industry (2022 Edition)
- 2022 Inner Mongolia latest water conservancy and hydropower construction safety officer simulation examination questions and answers
- Colorlog combined with logging to print colored logs
- 被破解毁掉的国产游戏之光
- Summary of MySQL index failure scenarios
- Unified ordering background interface product description Chinese garbled
- Leetcode question brushing (5.31) string
- egg. JS project deployment online server
- C language - bit segment
猜你喜欢
Summary of phased use of sonic one-stop open source distributed cluster cloud real machine test platform
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
[cloud native] teach you how to build ferry open source work order system
IoT -- 解读物联网四层架构
FairGuard游戏加固:游戏出海热潮下,游戏安全面临新挑战
synchronized 解决共享带来的问题
[secretly kill little partner pytorch20 days -day01- example of structured data modeling process]
2022.02.13 - 238. Maximum number of "balloons"
JVM performance tuning and practical basic theory - Part 1
同一局域网的手机和电脑相互访问,IIS设置
随机推荐
Leetcode question brushing (5.28) hash table
[luatos-air551g] 6.2 repair: restart caused by line drawing
按位逻辑运算符
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
Browser thread
Huawei cloud OBS file upload and download tool class
China polyether amine Market Forecast and investment strategy report (2022 Edition)
【Nvidia开发板】常见问题集 (不定时更新)
ESP系列引脚说明图汇总
同一局域网的手机和电脑相互访问,IIS设置
电脑清理,删除的系统文件
Hungry for 4 years + Ali for 2 years: some conclusions and Thoughts on the road of research and development
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
torch建立的网络模型使用torchviz显示
Cisp-pte practice explanation
logback1.3. X configuration details and Practice
What is CSRF (Cross Site Request Forgery)?
2022.02.13 - NC002. sort
sublime text中conda环境中plt.show无法弹出显示图片的问题
Image,cv2读取图片的numpy数组的转换和尺寸resize变化