[Feature]: Change map_location to cpu
parent
5244b66d5c
commit
976de2e518
tools/model_converters
|
@ -71,7 +71,7 @@ def main():
|
|||
parser.add_argument('dst', help='save path')
|
||||
args = parser.parse_args()
|
||||
|
||||
checkpoint = _load_checkpoint(args.src)
|
||||
checkpoint = _load_checkpoint(args.src, map_location='cpu')
|
||||
if 'state_dict' in checkpoint:
|
||||
state_dict = checkpoint['state_dict']
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue