MixMatch-pytorch
MixMatch-pytorch copied to clipboard
I can not find the class 'Bar' in the code. Anyone could help me please!
in the train.py ,code import Bar and display train process.But I can not find the class define in the utils. Please help me. from utils import Bar, Logger, AverageMeter, accuracy, mkdir_p, savefig # plot progress bar.suffix = '({batch}/{size}) Data: {data:.3f}s | Batch: {bt:.3f}s | Total: {total:} | ETA: {eta:} | Loss: {loss:.4f} | Loss_x: {loss_x:.4f} | Loss_u: {loss_u:.4f} | W: {w:.4f}'.format( batch=batch_idx + 1, size=args.val_iteration, data=data_time.avg, bt=batch_time.avg, total=bar.elapsed_td, eta=bar.eta_td, loss=losses.avg, loss_x=losses_x.avg, loss_u=losses_u.avg, w=ws.avg, ) bar.next() bar.finish()
from progress.bar import Bar as Bar.
you can use conda to install progess to solve this issue.
Ok,thank you for your help!
| | 周楠 | | | 签名由网易邮箱大师定制 On 7/22/2020 16:20,zhiqiang xie[email protected] wrote:
from progress.bar import Bar as Bar.
you can use conda to install progess to solve this issue.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.