F:\ssd300\ssd.pytorch-master\ssd.py:34: UserWarning: volatile was removed and now has no effect. Use with torch.no_grad():
instead.
self.priors = Variable(self.priorbox.forward(), volatile=True)
错误说明volatile已经没有用了。原因是随着版本的迭代, 已经不需要了。要用with torch.no_grad(): 故修改如下:
with torch.no_grad():
self.priors = Variable(self.priorbox.forward())