hylee commited on
Commit
c47cf0c
1 Parent(s): 2c549e3
Files changed (1) hide show
  1. p2c/test_onnx.py +1 -0
p2c/test_onnx.py CHANGED
@@ -9,6 +9,7 @@ class Photo2Cartoon:
9
  def __init__(self):
10
  self.pre = Preprocess()
11
  curPath = os.path.abspath(os.path.dirname(__file__))
 
12
  # assert os.path.exists('./models/photo2cartoon_weights.onnx'), "[Step1: load weights] Can not find 'photo2cartoon_weights.onnx' in folder 'models!!!'"
13
  self.session = onnxruntime.InferenceSession(os.path.join(curPath, 'models/photo2cartoon_weights.onnx'))
14
  print('[Step1: load weights] success!')
 
9
  def __init__(self):
10
  self.pre = Preprocess()
11
  curPath = os.path.abspath(os.path.dirname(__file__))
12
+ print(os.path.join(curPath, 'models/photo2cartoon_weights.onnx'))
13
  # assert os.path.exists('./models/photo2cartoon_weights.onnx'), "[Step1: load weights] Can not find 'photo2cartoon_weights.onnx' in folder 'models!!!'"
14
  self.session = onnxruntime.InferenceSession(os.path.join(curPath, 'models/photo2cartoon_weights.onnx'))
15
  print('[Step1: load weights] success!')