pt.darts icon indicating copy to clipboard operation
pt.darts copied to clipboard

validate loss cannot update

Open Arui1 opened this issue 5 years ago • 2 comments

image loss and prec1 during training is a normal drop, but during validate ,loss is always some value, prec1 also keep zero. do you met this problem?

Arui1 avatar Sep 29 '19 02:09 Arui1

I have no problem on the cifar10 dataset, but I got the same problem as you when transfer to my own local data. Have you solved the problem?

JiyueWang avatar Jan 05 '20 08:01 JiyueWang

I have solved my problem. The reason is the trainset is not shuffled before split it. Shuffle the indices before split indices = list(range(n_train)) shuffle = 1 if shuffle: np.random.seed(42) np.random.shuffle(indices) train_sampler = torch.utils.data.sampler.SubsetRandomSampler(indices[:split])

JiyueWang avatar Jan 09 '20 03:01 JiyueWang