This error message indicates that there was an issue loading weights from a PyTorch checkpoint file. If you were attempting to load a PyTorch model from a TensorFlow 2.0 checkpoint file, you may need to set the from_tf parameter to True in order to successfully load the weights. This will allow PyTorch to properly interpret the TensorFlow checkpoint file and load the weights into the PyTorch model.

OSError Unable to load weights from pytorch checkpoint file If you tried to load a PyTorch model from a TF 20 checkpoint please set from_tf=True

原文地址: http://www.cveoy.top/t/topic/bZs0 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录