Online meter ploter for pytorch. Real time ploting Accuracy, Loss, mAP, AUC, Confusion Matrix
python -m visdom.server
# python -m visdom.server -port 9999 # to specify port to ex, 9999
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
Easy to plot multi-meter with just one-line code:
mlog.update_meter(output, target, meters={'accuracy', 'map'})
# 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')
mlog = MeterLogger(server="Server's IP", nclass=10, title="mnist")
Open your browser with URL:
http://localhost:9999
# or
http://ip:9999