Skip to content

Commit

Permalink
fix: Removed models directory dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Anurag Dixit <[email protected]>
  • Loading branch information
Anurag Dixit committed Dec 16, 2021
1 parent 588e1d1 commit c4413e1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/benchmark/py/config/vgg16.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ input:
- 224
num_inputs: 1
model:
filename: vgg16_traced.jit.pt
filename: models/vgg16_traced.jit.pt
name: vgg16
runtime:
device: 0
Expand Down
2 changes: 1 addition & 1 deletion examples/benchmark/py/config/vgg16_trt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ input:
- 224
num_inputs: 1
model:
filename: model.plan
filename: models/model.plan
name: vgg16
calibration_cache:
- vgg16.cache
Expand Down
3 changes: 1 addition & 2 deletions examples/benchmark/py/perf_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def load_model(params):
model = None
is_trt_engine = False
# Load torch model traced/scripted
model_file = os.path.join("models", params.get('model').get('filename'))
model_file = params.get('model').get('filename')

if model_file.endswith('.jit.pt'):
model = torch.jit.load(model_file).cuda()
Expand All @@ -278,7 +278,6 @@ def load_model(params):
parser = ConfigParser(args.config)
# Load YAML params
params = parser.read_config()

print("Loading model: ", params.get('model').get('filename'))

model = None
Expand Down

0 comments on commit c4413e1

Please sign in to comment.