Skip to content

Latest commit

 

History

History
 
 

example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

mnist_with_meterlogger

Start Visdom on a server

python -m visdom.server
# python -m visdom.server -port 9999 # to specify port to ex, 9999

Run Example

python mnist_with_meterlogger.py
# CUDA_VISIBLE_DEVICES=1 python mnist_with_meterlogger.py # to specify GPU id to ex. 1

Multi-meter

Easy to plot multi-meter with just one-line code:

Plotting Accuracy, mAP

mlog.updateMeter(output, target, meters={'accuracy', 'map'})

Plotting Loss Curve

# NLL Loss
nll_loss = F.nll_loss(output, target)
mlog.updateLoss(nll_loss, meter='nll_loss')

# Cross Entropy Loss
ce_loss = F.cross_entropy(output, target)
mlog.updateLoss(ce_loss, meter='ce_loss')

Remote Plotting

mlog = MeterLogger(server="Server's IP", nclass=10, title="mnist")

Figure

visdom.png