我尝试使用自己的权重但是却出现了解密失败。
F:\py3.8\python.exe F:\aim\yolov7aim\cod19.py
Traceback (most recent call last):
File "F:\aim\yolov7aim\cod19.py", line 17, in
apex = ApexAimBot(config_path='configs/cod19.yaml', onnx_path='weights/cod19.onnx', engine_path='weights/cod19.trt')
File "F:\aim\yolov7aim\cod19.py", line 8, in init
super().init(config_path, onnx_path, engine_path)
File "F:\aim\yolov7aim\AimBot.py", line 34, in init
self.engine = BaseEngine(engine_path)
File "F:\aim\yolov7aim\utils\InferenceEngine.py", line 21, in init
serialized_engine = fw.decrypt(f.read())
File "F:\py3.8\lib\site-packages\cryptography\fernet.py", line 85, in decrypt
timestamp, data = Fernet._get_unverified_token_data(token)
File "F:\py3.8\lib\site-packages\cryptography\fernet.py", line 121, in _get_unverified_token_data
raise InvalidToken
cryptography.fernet.InvalidToken
我尝试使用自己的权重但是却出现了解密失败。 F:\py3.8\python.exe F:\aim\yolov7aim\cod19.py Traceback (most recent call last): File "F:\aim\yolov7aim\cod19.py", line 17, in
apex = ApexAimBot(config_path='configs/cod19.yaml', onnx_path='weights/cod19.onnx', engine_path='weights/cod19.trt')
File "F:\aim\yolov7aim\cod19.py", line 8, in init
super().init(config_path, onnx_path, engine_path)
File "F:\aim\yolov7aim\AimBot.py", line 34, in init
self.engine = BaseEngine(engine_path)
File "F:\aim\yolov7aim\utils\InferenceEngine.py", line 21, in init
serialized_engine = fw.decrypt(f.read())
File "F:\py3.8\lib\site-packages\cryptography\fernet.py", line 85, in decrypt
timestamp, data = Fernet._get_unverified_token_data(token)
File "F:\py3.8\lib\site-packages\cryptography\fernet.py", line 121, in _get_unverified_token_data
raise InvalidToken
cryptography.fernet.InvalidToken