Closed zswzifir closed 6 years ago
From the code that you support , I can not figure out the key part which makes a training error. Maybe you should check LR, policies and input images more carefully.
Thanks for reply, My lr=0.001, and multiply 0.1 every 10 epochs; the policies is same with your code. I will check my code again, thanks again.
hi did you find the reason. same thing happens to me as well.
Hi, I have the trouble to train the model, the model didnot convergence,. I really need your help, thx very much. my some code: The optimizer setting:
policies = get_optim_policies(model) criterion = nn.CrossEntropyLoss().cuda() optimizer = torch.optim.SGD(policies, args.lr, momentum=args.momentum, weight_decay= rgs.weight_decay)
The transform setting: ` train_transform = video_transforms.Compose([ video_transforms.Scale((182)), video_transforms.MultiScaleCrop((160, 160), scale_ratios), video_transforms.RandomHorizontalFlip(), video_transforms.ToTensor(), normalize ])
the Train steps: ` def train(train_loader, model, criterion, optimizer, epoch): batch_time = AverageMeter() data_time = AverageMeter() losses = AverageMeter() top1 = AverageMeter() top3 = AverageMeter() model.train() end = time.time() for i, (inp, target) in enumerate(train_loader):
measure data loading time
`
Can you help me to check if there are some mistakes?