akhaliq HF staff commited on
Commit
b55b1ea
1 Parent(s): a301be4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -19,7 +19,8 @@ preprocess = transforms.Compose([
19
  # based on the build flags) when instantiating InferenceSession.
20
  # For example, if NVIDIA GPU is available and ORT Python package is built with CUDA, then call API as following:
21
  # onnxruntime.InferenceSession(path/to/model, providers=['CUDAExecutionProvider'])
22
- sess = rt.InferenceSession("../model/fcn-resnet101-11.onnx")
 
23
 
24
  outputs = sess.get_outputs()
25
  output_names = list(map(lambda output: output.name, outputs))
 
19
  # based on the build flags) when instantiating InferenceSession.
20
  # For example, if NVIDIA GPU is available and ORT Python package is built with CUDA, then call API as following:
21
  # onnxruntime.InferenceSession(path/to/model, providers=['CUDAExecutionProvider'])
22
+ os.system("wget https://github.com/AK391/models/raw/main/vision/object_detection_segmentation/fcn/model/fcn-resnet101-11.onnx")
23
+ sess = rt.InferenceSession("fcn-resnet101-11.onnx")
24
 
25
  outputs = sess.get_outputs()
26
  output_names = list(map(lambda output: output.name, outputs))