ValueError: Object arrays cannot be loaded when allow_pickle=False

使用numpy.load函数报错:
ValueError: Object arrays cannot be loaded when allow_pickle=False
解决方案:
将函数调用从numpy.load(file)改成numpy.load(file, allow_pickle=False)

你可能感兴趣的:(ValueError: Object arrays cannot be loaded when allow_pickle=False)