LPRNet_Pytorch icon indicating copy to clipboard operation
LPRNet_Pytorch copied to clipboard

run system with CPU only

Open daynial132 opened this issue 5 years ago • 2 comments
trafficstars

hello,

I dont have GPU right now but wants to try your example, is there any way to do so kind regard's

daynial132 avatar Jul 24 '20 19:07 daynial132

@daynial132

change device to :

device = torch.device("cuda:0" if torch.cuda.is_available()else "cpu")

MyraBaba avatar Aug 09 '22 15:08 MyraBaba

change device and change laod """lprnet.load_state_dict(torch.load(args.pretrained_model))"""

change load to :

lprnet.load_state_dict(torch.load(args.pretrained_model, map_location=torch.device('cpu')))

linearpi avatar Sep 21 '22 01:09 linearpi