fossasia / visdom

A flexible tool for creating, organizing, and sharing visualizations of live, rich data. Supports Torch and Numpy.
Apache License 2.0
10.06k stars 1.13k forks source link

Visdom keeps printing "Setting up a new session..." #740

Open jaintj95 opened 4 years ago

jaintj95 commented 4 years ago

I am running a project and visdom keeps printing this several times back to back? The "Device: cpu" command is from my script but how I can stop visdom from printing the session thing in my terminal?

Setting up a new session...
Setting up a new session...
Device:  cpu
Setting up a new session...
Setting up a new session...
Device:  cpu
Setting up a new session...
Setting up a new session...
Device:  cpu
Setting up a new session...
Setting up a new session...
Device:  cpu
Setting up a new session...
Setting up a new session...
Device:  cpu
Setting up a new session...
Setting up a new session...
Device:  cpu
Setting up a new session...
Setting up a new session...

visdom_issue

no-Seaweed commented 3 years ago

I had the same problem. But it turns out I made this mistake by calling visdom.Visdom in my iterating function over and over. I should call it at the top of my entire the script instead. To target where this print happens, in the source code, it shows a logging info "Setting up a new session" is called every time visdom is initialized.

SuperRui41 commented 3 years ago

I had the same problem. But it turns out I made this mistake by calling visdom.Visdom in my iterating function over and over. I should call it at the top of my entire the script instead. To target where this print happens, in the source code, it shows a logging info "Setting up a new session" is called every time visdom is initialized.

I meet the same problem. Could you tell me how do you solve it ? I need help,please.

JackUrb commented 3 years ago

@SuperRui41 you should ensure your script only initializes visdom.Visdom() once.