Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need tips for progress bar #3

Closed
russellfei opened this issue Sep 13, 2014 · 3 comments
Closed

need tips for progress bar #3

russellfei opened this issue Sep 13, 2014 · 3 comments

Comments

@russellfei
Copy link

Hi, all~
When I run demo train-on-cifar from torch7-demos on Gnome terminal, the progress bar is printed full of the window like this:

th> for i=1,20 do
xlua.progress(i,20)
print('\r')
end
 [==>..........................................................................]                                   1/20 ms | Step: 0ms
 [======>......................................................................]                                   2/20 ms | Step: 0ms
 [==========>..................................................................]                                   3/20 ms | Step: 0ms
 [==============>..............................................................]                                   4/20 ms | Step: 0ms
 [==================>..........................................................]                                   5/20 ms | Step: 0ms
 [======================>......................................................]                                   6/20 ms | Step: 0ms
 [=========================>...................................................]                                   7/20 ms | Step: 0ms
 [=============================>...............................................]                                   8/20 ms | Step: 0ms
 [=================================>...........................................]                                   9/20 ms | Step: 0ms
 [=====================================>.......................................]                                   10/20 s | Step: 0ms
 [=========================================>...................................]                                   11/20 s | Step: 0ms
 [=============================================>...............................]                                   12/20 s | Step: 0ms
 [=================================================>...........................]                                   13/20 s | Step: 0ms
 [====================================================>........................]                                   14/20 s | Step: 0ms
 [========================================================>....................]                                   15/20 s | Step: 0ms
 [============================================================>................]                                   16/20 s | Step: 0ms
 [================================================================>............]                                   17/20 s | Step: 0ms
 [====================================================================>........]                                   18/20 s | Step: 0ms
 [========================================================================>....]                                   19/20 s | Step: 0ms
 [============================================================================>]                                   20/20 s | Step: 0ms

However, when I run the same code on Cnetos terminal, there's only one progress bar.
What's wrong with Gnome terminal? Can anyone help me to figure out?

@russellfei
Copy link
Author

Well, still none replies once again.
Thankfully, there's always a chance for active searching. It has been solved by screen utility.
reference is accessible at this ask ubuntu

In summary, the gnome-terminal in ubuntu release cannot do this word wrap, but there's other versions do. screen is the right solution to this issue. Surprisingly, I ran program in screen through ssh to Centos all the time, while if the same code is implemented at pure terminal on Centos, the result is identical.

It's a pity that few people use and pay attention to this project.

@nicholas-leonard
Copy link
Member

Yeah I have the same problem. I also found that screen solved it. Sorry about the no-replies.

@russellfei
Copy link
Author

Well, I checked the wiki page last night, torch is supported through mailing list hosted by Google group--what is not accessible for me frequently, even though I use GAE.

In addition, github's repo such as purcell/emacs.d, the issues can be send as email automatically, maybe there's something could be tinkered to enable this function. Besides, maybe I'll email to you or soumith directly due to your helpful advice and hints, thx~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants