Skip to content

Commit

Permalink
Update OpenVINO test file (#572)
Browse files Browse the repository at this point in the history
  • Loading branch information
lutzroeder committed Jan 28, 2024
1 parent 6cc593a commit 7373157
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions source/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -5762,6 +5762,12 @@ view.ModelFactoryService = class {
matches.some((context) => context.identifier.toLowerCase().split('/').pop() === 'metadata.json')) {
matches = matches.filter((context) => context.identifier.toLowerCase().split('/').pop() == 'config.json');
}
// OpenVINO
if (matches.length === 2 &&
matches.some((context) => context.identifier.toLowerCase().endsWith('.xml')) &&
matches.some((context) => context.identifier.toLowerCase().endsWith('.bin'))) {
matches = matches.filter((context) => context.identifier.toLowerCase().endsWith('.xml'));
}
// Hailo
if (matches.length >= 2 &&
matches.some((context) => context.identifier.toLowerCase().endsWith('.metadata.json'))) {
Expand Down
4 changes: 2 additions & 2 deletions test/models.json
Original file line number Diff line number Diff line change
Expand Up @@ -4344,8 +4344,8 @@
},
{
"type": "openvino",
"target": "0572.xml,0572.bin",
"source": "https://github.com/lutzroeder/netron/files/14076953/0572.zip[0572.xml,0572.bin]",
"target": "0572.zip",
"source": "https://github.com/lutzroeder/netron/files/14076953/0572.zip",
"format": "OpenVINO IR",
"link": "https://github.com/lutzroeder/netron/issues/572"
},
Expand Down

0 comments on commit 7373157

Please sign in to comment.