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

边栏推荐
- Day29-t77 & t1726-2022-02-13-don't answer by yourself
- Leetcode skimming (5.29) hash table
- 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
- Migrate data from SQL files to tidb
- Restore backup data on S3 compatible storage with br
- Restful API design specification
- Verrouillage [MySQL]
- 深度剖析C语言数据在内存中的存储
- 【MySQL】锁
- Research Report on Market Research and investment strategy of microcrystalline graphite materials in China (2022 Edition)
猜你喜欢

egg. JS project deployment online server

Wincc7.5 download and installation tutorial (win10 system)

Chrome浏览器的crash问题

2022.02.13 - NC002. sort

JVM 快速入门
![[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

egg. JS getting started navigation: installation, use and learning

pytorch训练好的模型在加载和保存过程中的问题

MySQL learning records 12jdbc operation transactions

3. File operation 3-with
随机推荐
Sort according to a number in a string in a column of CSV file
marathon-envs项目环境配置(强化学习模仿参考动作)
China's high purity aluminum target market status and investment forecast report (2022 Edition)
Ruffian Heng embedded bimonthly, issue 49
logback1.3. X configuration details and Practice
leetcode刷题 (5.31) 字符串
JS native implementation shuttle box
Use Alibaba icon in uniapp
Online yaml to CSV tool
按位逻辑运算符
Golang force buckle leetcode 1020 Number of enclaves
CISP-PTE实操练习讲解
[secretly kill little partner pytorch20 days -day01- example of structured data modeling process]
egg. JS directory structure
The mysqlbinlog command uses
On the inverse order problem of 01 knapsack problem in one-dimensional state
2022 Inner Mongolia latest water conservancy and hydropower construction safety officer simulation examination questions and answers
Permutation and combination function
Erc20 token agreement
gcc动态库fPIC和fpic编译选项差异介绍