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

visdom.ConnectionError: Error connecting to Visdom server #333

Closed
kangyang94 opened this issue Jul 22, 2018 · 4 comments
Closed

visdom.ConnectionError: Error connecting to Visdom server #333

kangyang94 opened this issue Jul 22, 2018 · 4 comments

Comments

@kangyang94
Copy link

I have install every necessary packets successfully.But when I train the pix2pix following the course, I get the error like following:
Traceback (most recent call last):
File "train.py", line 16, in
visualizer = Visualizer(opt)
File "/home/ky/pytorch-CycleGAN-and-pix2pix/util/visualizer.py", line 47, in init
self.vis = visdom.Visdom(server=opt.display_server, port=opt.display_port, raise_exceptions=True)
File "/home/ky/miniconda2/lib/python2.7/site-packages/visdom/init.py", line 324, in init
}, endpoint='env/' + env)
File "/home/ky/miniconda2/lib/python2.7/site-packages/visdom/init.py", line 445, in _send
raise ConnectionError("Error connecting to Visdom server")
visdom.ConnectionError: Error connecting to Visdom server

I firstly use visdom.Does anyone know how to fix this error?Thanks!

@junyanz
Copy link
Owner

junyanz commented Jul 23, 2018

See #230 for more details.

@ghost
Copy link

ghost commented Aug 1, 2018

Thanks a lot , it works.

@aamirhr
Copy link

aamirhr commented Dec 22, 2021

Hello guys my code works but i still get this in the beginning
Could not connect to Visdom server.
Trying to start a server....
Command: /home/bvde103/anaconda3/envs/pytorch-CycleGAN-and-pix2pix/bin/python -m visdom.server -p 8097 &>/dev/null &

and while training i dont see any graph plots for loss, i only see print visualizer printing different losses but plot visualizer for loss graphs i dont see. The function def plot_current_losses(self, epoch, counter_ratio, losses): in visualizer.py is for creating loss graphs for the training right ? Pls help

@junyanz
Copy link
Owner

junyanz commented Jan 20, 2022

Your understanding is correct. plot_current_losses is for creating loss graphs. If visdom doesn't work well for you, you can also use wandb instead via --use_wandb.

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

3 participants