Skip to content

RuntimeError: CUDA error: device-side assert triggered #14

@shashini4296

Description

@shashini4296

Traceback (most recent call last):
File "E:\Virtual try on\ACGPN-master\test.py", line 122, in
main()
File "E:\Virtual try on\ACGPN-master\test.py", line 97, in main
fake_image, warped_cloth, refined_cloth = model(Variable(data['label'].cuda()), Variable(data['edge'].cuda()), Variable(img_fore.cuda()), Variable(
File "C:\Users\SM\AppData\Roaming\Python\Python39\site-packages\torch\nn\modules\module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "E:\Virtual try on\ACGPN-master\models\pix2pixHD_model.py", line 492, in forward
return self.inference(label, pre_clothes_mask, img_fore, clothes_mask, clothes, all_clothes_label, real_image, pose, grid, mask_fore)
File "E:\Virtual try on\ACGPN-master\models\pix2pixHD_model.py", line 384, in inference
input_label, masked_label, all_clothes_label = self.encode_input(
File "E:\Virtual try on\ACGPN-master\models\pix2pixHD_model.py", line 233, in encode_input
1, (label_map * (1 - clothes_mask)).data.long().cuda(), 1.0)
File "C:\Users\SM\AppData\Roaming\Python\Python39\site-packages\torch\tensor.py", line 528, in rsub
return _C._VariableFunctions.rsub(self, other)
RuntimeError: CUDA error: device-side assert triggered

How can I fix this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions