pytorchbearer / torchbearer

torchbearer: A model fitting library for PyTorch
http://pytorchbearer.org
MIT License
636 stars 65 forks source link

Allow manually control the parameters of tqdm #323

Closed huhk-sysu closed 6 years ago

huhk-sysu commented 6 years ago

Currently tqdm can't work correctly on Windows console(see here).

Windows consoles often only partially support unicode and thus often require explicit ascii=True. This is due to either normal-width unicode characters being incorrectly displayed as "wide", or some unicode characters not rendering.

Please provide a way to control the parameters of tqdm(e.g. set ascii=True). Thanks for your work!

ethanwharris commented 6 years ago

Thanks for your issue. Should be fixed when #325 gets merged. In order to pass ascii=True, set verbose=0 in the fit call and from torchbearer.callbacks import Tqdm, then give Tqdm as a callback to the fit call. Hope that helps!