Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want to use my own best_apex.onnx file model but not working,please help me! #119

Open
soapboss opened this issue Nov 18, 2023 · 4 comments

Comments

@soapboss
Copy link

I want to use my own best_apex.onnx file model. How should I uncomment the encryption code and which file the encryption code is in?

@PlutoNameless
Copy link
Collaborator

Search for 'cryptography' in the project to retrieve the corresponding code

@soapboss
Copy link
Author

it shows:

[11/19/2023-17:56:23] [TRT] [I] [MemUsageChange] Init CUDA: CPU +5, GPU +0, now: CPU 6259, GPU 1008 (MiB) [11/19/2023-17:56:28] [TRT] [I] [MemUsageChange] Init builder kernel library: CPU +512, GPU +118, now: CPU 7224, GPU 1126 (MiB)
Traceback (most recent call last): File "apex.py", line 17, in <module> apex = ApexAimBot(config_path='configs/apex.yaml', onnx_path='weights/best_apex.onnx', engine_path='weights/best_apex.trt')
File "apex.py", line 8, in __init__ super().__init__(config_path, onnx_path, engine_path)
File "C:\Users\soapb\Documents\APEX_AIMBOT-master\APEX_AIMBOT-master\AimBot.py", line 24, in __init__ self.build_trt_model(onnx_path, engine_path)
File "C:\Users\soapb\Documents\APEX_AIMBOT-master\APEX_AIMBOT-master\AimBot.py", line 65, in build_trt_model export_to_trt(onnx=onnx_path, engine=engine_path)
File "C:\Users\soapb\Documents\APEX_AIMBOT-master\APEX_AIMBOT-master\tensorrt_python\export_to_trt.py", line 290, in export_to_trt builder.create_network(args.onnx, args.end2end, args.conf_thres, args.iou_thres, args.max_det, args.encryp_password)
File "C:\Users\soapb\Documents\APEX_AIMBOT-master\APEX_AIMBOT-master\tensorrt_python\export_to_trt.py", line 130, in create_network
onnx_data = fw.decrypt(f.read())
File "C:\Users\soapb\AppData\Local\Programs\Python\Python37\lib\site-packages\cryptography\fernet.py", line 86, in decrypt timestamp, data = Fernet._get_unverified_token_data(token)
File "C:\Users\soapb\AppData\Local\Programs\Python\Python37\lib\site-packages\cryptography\fernet.py", line 122, in _get_unverified_token_data
raise InvalidToken
cryptography.fernet.InvalidToken

Sir , I still cant found which code going wrong

@PlutoNameless
Copy link
Collaborator

If you remove the encryption in your code, then you shouldn't use the models inside the project.

@soapboss
Copy link
Author

I didn't remove encrypted code yet,can you discribe specifically which file or which code line should be removed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants