Merge pull request #59 from xaviviro/revert-55-test-torch

Revert "a hack to for onnxruntime to use cuda"
This commit is contained in:
xaviviro
2023-06-27 20:39:38 +02:00
committed by GitHub
4 changed files with 2 additions and 4 deletions

View File

@@ -6,7 +6,6 @@
import numpy as np import numpy as np
import cv2 import cv2
import torch # hack to use onnxruntime with cuda
import onnx import onnx
import onnxruntime import onnxruntime
import face_align import face_align

View File

@@ -5,7 +5,6 @@ import os.path as osp
import argparse import argparse
import cv2 import cv2
import numpy as np import numpy as np
import torch # hack to use onnxruntime with cuda
import onnxruntime import onnxruntime
from scrfd import SCRFD from scrfd import SCRFD
from arcface_onnx import ArcFaceONNX from arcface_onnx import ArcFaceONNX

View File

@@ -2,7 +2,7 @@
from __future__ import division from __future__ import division
import datetime import datetime
import numpy as np import numpy as np
import torch # hack to use onnxruntime with cuda #import onnx
import onnxruntime import onnxruntime
import os import os
import os.path as osp import os.path as osp

View File

@@ -1,11 +1,11 @@
import cv2 import cv2
import torch # hack to use onnxruntime with cuda
import onnxruntime as rt import onnxruntime as rt
import sys import sys
from insightface.app import FaceAnalysis from insightface.app import FaceAnalysis
sys.path.insert(1, './recognition') sys.path.insert(1, './recognition')
from scrfd import SCRFD from scrfd import SCRFD
from arcface_onnx import ArcFaceONNX from arcface_onnx import ArcFaceONNX
import os.path as osp
import os import os
from pathlib import Path from pathlib import Path
from tqdm import tqdm from tqdm import tqdm