aabobakr
aabobakr
Pix2pix training on convergence curves on Facades dataset using batch sizes of 1, 16, 32, respectively.   
make sure you run the ./configure script.. double check the paths for cuda and cudnn.. if not sure try system defaults
I tried all the following but the results remained stochastic: ``` torch.manual_seed(12) torch.cuda.manual_seed(12) np.random.seed(12) random.seed(12) torch.backends.cudnn.deterministic=True ``` The only thing that worked was also setting num_workers=0 in the DataLoader constructor....
Thanks @fmassa, I tried that as well but didn't work ``` train_loader = torch.utils.data.DataLoader(train_dataset, batch_size=args.batch_size, shuffle=True, num_workers=args.workers, pin_memory=True, worker_init_fn=np.random.seed(12)) val_loader = torch.utils.data.DataLoader(val_dataset, batch_size=args.batch_size, shuffle=False, num_workers=args.workers, pin_memory=True, worker_init_fn=np.random.seed(12)) ```
@zzd1992 I passed the random seed to both the train and val loader, "updated my comment". Maybe there is a difference in 0.5, I think I will stick to 0...
@fmassa I was expecting it to crash too as np.random.seed(12) is not init function at all, but it didn't. But thank you it works now.
Thanks I have compiled the master branch and it worked.
the reason for this mismatch is that you are compiling with hdf5 lib from brew and running with anaconda one.. you may do `conda uninstall hdf5` and use to the...
@monajalal have you installed boost ? `sudo apt-get install --no-install-recommends libboost-all-dev`
@gheinrich Yes that is exactly what I am asking about. But, your REST API suggestion is fantastic. I will give it a try.