Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add keras models
Signed-off-by: zehao-intel <[email protected]>
  • Loading branch information
zehao-intel committed Jul 9, 2024
commit 00ef38723ec8e83b5f06a0dab73d78fd3f13c620
25 changes: 25 additions & 0 deletions examples/.config/model_params_keras_3x.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"keras": {
"resnetv2_50": {
"model_src_dir": "keras/cv/resnet_v2_50/quantization/ptq",
"dataset_location": "/tf_dataset/dataset/imagenet",
"input_model": "/tf_dataset2/models/tensorflow/resnetv2_50_keras/saved_model",
"main_script": "main.py",
"batch_size": 32
},
"inception_v3": {
"model_src_dir": "keras/cv/inception_v3/quantization/ptq",
"dataset_location": "/tf_dataset/dataset/imagenet",
"input_model": "/tf_dataset2/models/tensorflow/inception_v3_keras/saved_model",
"main_script": "main.py",
"batch_size": 32
},
"mobilenet_v2": {
"model_src_dir": "keras/cv/mobilenet_v2/quantization/ptq",
"dataset_location": "/tf_dataset/dataset/imagenet",
"input_model": "/tf_dataset2/models/tensorflow/mobilenet_v2_keras/saved_model",
"main_script": "main.py",
"batch_size": 32
}
}
}
7 changes: 7 additions & 0 deletions examples/.config/model_params_tensorflow_3x.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@
"main_script": "main.py",
"batch_size": 32
},
"resnetv2_50": {
"model_src_dir": "cv/resnet_v2_50/quantization/ptq",
"dataset_location": "/tf_dataset/dataset/imagenet",
"input_model": "/tf_dataset/pre-train-model-slim/pbfile/frozen_pb/frozen_resnet_v2_50.pb",
"main_script": "main.py",
"batch_size": 32
},
"vgg16": {
"model_src_dir": "cv/vgg16/quantization/ptq",
"dataset_location": "/tf_dataset/dataset/imagenet",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ def run(self):
q_model.save(args.output_graph)

if args.benchmark:
dataloader = create_dataloader('tensorflow', dataloader_args)
dataset = ImageRecordDataset(
root=args.dataset_location,
transform=ComposeTransform(transform_list= [
Expand Down
Loading