diff --git a/ppdet/utils/download.py b/ppdet/utils/download.py index 5697e14b6b68bbd295ff35569b60398b582f51ab..9f08d8aa36b155c27a2a281ce8420d1f541e7b89 100644 --- a/ppdet/utils/download.py +++ b/ppdet/utils/download.py @@ -298,7 +298,8 @@ def _download(url, path, md5sum=None): content_md5 = req.headers.get('content-md5') if not content_md5 or _md5check( tmp_fullname, - binascii.hexlify(base64.b64decode(content_md5.strip('"')))): + binascii.hexlify(base64.b64decode(content_md5.strip( + '"'))).decode()): shutil.move(tmp_fullname, fullname) return fullname else: