-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new apple's model #28
Labels
Comments
Anyone could contribute! Thanks. 😎 |
FCRN-DepthPrediction Demo |
MobileNetV2, Resnet50, SqueezeNet Demohttps://github.com/tucan9389/ImageClassification-CoreML/ |
YOLOv3, YOLOv3-Tiny Demo |
Image ClassificationModel Size (MB), Minimum iOS Version
Infernece Time (ms)
Total Time (ms)
FPS
|
Object DetectionModel Size (MB), Minimum iOS Version
Infernece Time (ms)
Total Time (ms)
FPS
|
Table Convert ScriptConvert text to markdown table format dict = {}
device_name = None
device_names = []
f = open("performance-classification.txt", 'r')
lines = f.readlines()
for line in lines:
componants = line.split()
# if len(componants) == 0:
if len(componants) == 0:
continue
if len(componants) != 5:
device_name = " ".join(componants)
device_names.append(device_name)
continue
else:
model_name = componants[0]
inference_time = componants[2]
total_time = componants[3]
fps = componants[4]
if model_name not in dict:
dict[model_name] = {}
dict[model_name][device_name] = {
"inference_time": inference_time,
"total_time": total_time,
"fps": fps
}
f.close()
def get_markdown_table(dict, colunm_name = "inference_time"):
result = ""
row_text = "| Model vs. Device | "
row_text = row_text + " | ".join(device_names)
row_text = row_text + " |"
result += row_text + "\n"
# print(row_text)
row_text = "| ----: | "
for i in range(len(device_names)):
row_text += ":----: | "
result += row_text + "\n"
# print(row_text)
for model_name in dict.keys():
row_text = "| " + model_name + " | "
for device_name in device_names:
row_text += dict[model_name][device_name][colunm_name] + " | "
result += row_text + "\n"
return result
# inference_time
# total_time
# fps
print()
print()
print()
print("## Object Detection")
print()
print("### Infernece Time (ms)")
print()
print(get_markdown_table(dict=dict, colunm_name="inference_time"))
print("### Total Time (ms)")
print()
print(get_markdown_table(dict=dict, colunm_name="total_time"))
print("### FPS")
print()
print(get_markdown_table(dict=dict, colunm_name="fps")) Input text file
Output text
|
The results are weird. Maximum FPS is 23.. (Not 30) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Models
Vision
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
Text
TODO
TODO
TODO
TODO
Related Links
The text was updated successfully, but these errors were encountered: