RuntimeError: Attempted to set the storage of a tensor on device “cuda:0“ to a storage on different

在运行yolact++模型时,出现如题的错误。


解决办法为找到报错点209行


在yolact.py的位置添加--------------,map_location='cuda:0'

猜你喜欢

转载自blog.csdn.net/qq_43384629/article/details/131333590