Open wangjt1216 opened 4 years ago
code runs perfectly (on W10)
Hello, dr
I test this code in ubuntu and it works pretty well, but when I try it on win10 with the same python env, i meet some problem:
`Could not connect to Visdom server.
Trying to start a server....
Command: D:\SDKs\Python\Anaconda\envs\cut\python.exe -m visdom.server -p 8097 &>/dev/null &
create web directory ./checkpoints\singleimage_monet_etretat\web...
Traceback (most recent call last):
File "train.py", line 31, in
(cut) D:\Code\Python\CUT>Traceback (most recent call last):
File "
Python envs:
Python = 3.6.12 pytorch=1.4.0 torchvision==0.5.0 visdom==0.1.8 packaging GPUtil==1.4.0
it seems to visdom does not work well. Could you please tell me how to solve this problem? Thanks!
I had the same problem. It's related to pytorch windows thread issues. To solve go to data/__init__.py
and
change the number of worker threads (line 79).
self.dataset,
batch_size=opt.batch_size,
shuffle=not opt.serial_batches,
# num_workers=int(opt.num_threads), This is the problem, change it to 0
num_workers = int(0),
drop_last=True if opt.isTrain else False,`
Duplicate of #37
I had the same problem. It's related to pytorch windows thread issues. To solve go to
data/__init__.py
and change the number of worker threads (line 79).self.dataset, batch_size=opt.batch_size, shuffle=not opt.serial_batches, # num_workers=int(opt.num_threads), This is the problem, change it to 0 num_workers = int(0), drop_last=True if opt.isTrain else False,`
Thanks! Solved!
code runs perfectly (on W10)