use cpu error #161
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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