mirror of
https://github.com/RootKit-Org/AI-Aimbot.git
synced 2025-06-21 02:41:01 +08:00
Fixed The AMD_GPU file to not import cuda and added the forgotton torch DML import (#63)
* Update main_onnx_amd.py * Update main_onnx_amd.py
This commit is contained in:
parent
8e6d0d3ac7
commit
bc9af95607
@ -1,6 +1,5 @@
|
||||
import onnxruntime as ort
|
||||
import numpy as np
|
||||
import cupy as cp
|
||||
import pyautogui
|
||||
import gc
|
||||
import numpy as np
|
||||
@ -12,6 +11,7 @@ import pandas as pd
|
||||
from utils.general import (cv2, non_max_suppression, xyxy2xywh)
|
||||
import dxcam
|
||||
import torch
|
||||
import torch_directml
|
||||
|
||||
|
||||
def main():
|
||||
@ -109,7 +109,7 @@ def main():
|
||||
npImg = npImg.astype(cp.half)
|
||||
npImg = cp.moveaxis(npImg, 3, 1)
|
||||
|
||||
outputs = ort_sess.run(None, {'images': cp.asnumpy(npImg)})
|
||||
outputs = ort_sess.run(None, {'images': npImg})
|
||||
|
||||
im = torch.from_numpy(outputs[0]).to('cpu')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user