YU1ut / MixMatch-pytorch

Code for "MixMatch - A Holistic Approach to Semi-Supervised Learning"
MIT License
636 stars 129 forks source link

I can not find the class 'Bar' in the code. Anyone could help me please! #30

Open Alagirl opened 4 years ago

Alagirl commented 4 years ago

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()
xzhws commented 4 years ago

from progress.bar import Bar as Bar.

you can use conda to install progess to solve this issue.

Alagirl commented 4 years ago

Ok,thank you for your help!

周楠

签名由网易邮箱大师定制 On 7/22/2020 16:20,zhiqiang xienotifications@github.com 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.