Bug
贰の⑩次方
这个作者很懒,什么都没留下…
展开
-
RuntimeError: storage has wrong size | Unable to load weights from pytorch checkpoint file
报错1: RuntimeError: storage has wrong size: expected 768 got 2359296报错2: Unable to load weights from pytorch checkpoint file报错场景: 使用torch.nn.parallel.DistributedDataParallel进行单机多卡模型训练, 保存的bert模型在读取的时候报上述错误, 原因是保存模型的时候使用多线程保存, 猜想是多卡同时写入, 文件在保存过程中出了问题解决原创 2021-11-05 18:17:58 · 2249 阅读 · 0 评论 -
import mtcnn cannot import name ‘get_config’ from ‘tensorflow.python.eager.context’
import mtcnn 报错ImportError: cannot import name ‘get_config’ from 'tensorflow.python.eager.context’环境: tensorflow2.2, tensorflow2.3, mtcnn0.1.0>>> import mtcnnD:\anaconda\lib\site-packages\numpy\_distributor_init.py:30: UserWarning: loaded more原创 2021-05-25 16:29:40 · 21105 阅读 · 7 评论