Merge pull request #55 from phineas-pta/test-torch

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

View File

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

View File

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

View File

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

View File

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