Closed Coderx7 closed 6 years ago
Found the cause of the error! I had to use transform.ToTensor()
prior to calling the Lighting() method. failing to do so results in an PIL image being sent as the input for lightining() which expects a Tensor and thats why the error occurs.
Hi, Why am I facing this error ? its complaining about this line:
alpha = img.new().resize_(3).normal_(0, self.alphastd)
Whats wrong here? I'm using Pytorch 0.4