Traceback (most recent call last):


 "E:/Code/MachineLearning/DFace-master/test_image.py", line 18, in <module>

bboxs, landmarks = mtcnn_detector.detect_face(img)


 "E:\Code\MachineLearning\DFace-master\dface\core\detect.py", line 610, in detect_face

boxes, boxes_align = self.detect_pnet(img)


 "E:\Code\MachineLearning\DFace-master\dface\core\detect.py", line 271, in detect_pnet

cls_map, reg = self.pnet_detector(feed_imgs)


 "D:\ProgramData\Anaconda3\lib\site-packages\torch\nn\modules\module.py", line 547, in __call__

result = self.forward(*input, **kwargs)


 "E:\Code\MachineLearning\DFace-master\dface\core\models.py", line 97, in forward

x = self.pre_layer(x)


 "D:\ProgramData\Anaconda3\lib\site-packages\torch\nn\modules\module.py", line 547, in __call__

result = self.forward(*input, **kwargs)


 "D:\ProgramData\Anaconda3\lib\site-packages\torch\nn\modules\container.py", line 92, in forward

input = module(input)


 "D:\ProgramData\Anaconda3\lib\site-packages\torch\nn\modules\module.py", line 547, in __call__

result = self.forward(*input, **kwargs)


 "D:\ProgramData\Anaconda3\lib\site-packages\torch\nn\modules\conv.py", line 343, in forward

return self.conv2d_forward(input, self.weight)


 "D:\ProgramData\Anaconda3\lib\site-packages\torch\nn\modules\conv.py", line 340, in conv2d_forward

self.padding, self.dilation, self.groups)
RuntimeError: Expected object of scalar type Double but got scalar type Float for argument #2 'weight'

Traceback (most recent call last):


 "/content/OpenNMT-py/onmt/trainer.py", line 347, in _gradient_accumulation

trunc_size=trunc_size)


 "/content/OpenNMT-py/onmt/utils/loss.py", line 158, in __call__

loss, stats = self._compute_loss(batch, **shard)


 "/content/OpenNMT-py/onmt/utils/loss.py", line 233, in _compute_loss

scores = self.generator(bottled_output)


 "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 489, in __call__

result = self.forward(*input, **kwargs)


 "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/container.py", line 92, in forward

input = module(input)


 "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 489, in __call__

result = self.forward(*input, **kwargs)


 "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/linear.py", line 67, in forward

return F.linear(input, self.weight, self.bias)


 "/usr/local/lib/python3.6/dist-packages/torch/nn/functional.py", line 1352, in linear

ret = torch.addmm(torch.jit._unwrap_optional(bias), input, weight.t())
RuntimeError: Expected object of backend CPU but got backend CUDA for argument #4 'mat1'
