Skip to content

Online meter ploter for pytorch. Real time ploting Accuracy, Loss, mAP, AUC, Confusion Matrix

Notifications You must be signed in to change notification settings

kuixu/pytorch_online_plotter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pytorch_online_ploter

Online meter ploter for pytorch. Real time ploting Accuracy, Loss, mAP, AUC, Confusion Matrix

Start Visdom on a server

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

Basic MNIST Example

pip install -r requirements.txt
python mnist.py
# CUDA_VISIBLE_DEVICES=1 python mnist.py  # to specify GPU id to ex. 1

# if you run Visdom with 9999
# python mnist.py --port 9999

Multi-meter

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

Plotting Accuracy, mAP

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

Plotting Loss Curve

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

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

Remote Plotting

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

Real time plotting

Open your browser with URL:

http://localhost:9999
# or
http://ip:9999

visdom.png

About

Online meter ploter for pytorch. Real time ploting Accuracy, Loss, mAP, AUC, Confusion Matrix

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages