use cpu error #161

Open
opened 2021-11-24 12:05:36 +01:00 by liuchunyu524 · 0 comments
liuchunyu524 commented 2021-11-24 12:05:36 +01:00 (Migrated from github.com)

netArc_checkpoint = torch.load(netArc_checkpoint, map_location=torch.device('cpu'))

Traceback (most recent call last):
File "/Users/liuchunyu/Downloads/SimSwap-main/test_wholeimage_swapsingle.py", line 37, in
model = create_model(opt)
File "/Users/liuchunyu/Downloads/SimSwap-main/models/models.py", line 18, in create_model
model.initialize(opt)
File "/Users/liuchunyu/Downloads/SimSwap-main/models/fs_model.py", line 64, in initialize
netArc_checkpoint = torch.load(netArc_checkpoint, map_location=torch.device('cpu'))
File "/Users/liuchunyu/Documents/data/pythonenv/faceswap/lib/python3.9/site-packages/torch/serialization.py", line 608, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "/Users/liuchunyu/Documents/data/pythonenv/faceswap/lib/python3.9/site-packages/torch/serialization.py", line 794, in _legacy_load
deserialized_objects[key]._set_from_file(f, offset, f_should_read_directly)
RuntimeError: storage has wrong size: expected -7082037704977806789 got 4096

netArc_checkpoint = torch.load(netArc_checkpoint, map_location=torch.device('cpu')) Traceback (most recent call last): File "/Users/liuchunyu/Downloads/SimSwap-main/test_wholeimage_swapsingle.py", line 37, in <module> model = create_model(opt) File "/Users/liuchunyu/Downloads/SimSwap-main/models/models.py", line 18, in create_model model.initialize(opt) File "/Users/liuchunyu/Downloads/SimSwap-main/models/fs_model.py", line 64, in initialize netArc_checkpoint = torch.load(netArc_checkpoint, map_location=torch.device('cpu')) File "/Users/liuchunyu/Documents/data/pythonenv/faceswap/lib/python3.9/site-packages/torch/serialization.py", line 608, in load return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args) File "/Users/liuchunyu/Documents/data/pythonenv/faceswap/lib/python3.9/site-packages/torch/serialization.py", line 794, in _legacy_load deserialized_objects[key]._set_from_file(f, offset, f_should_read_directly) RuntimeError: storage has wrong size: expected -7082037704977806789 got 4096
Sign in to join this conversation.