Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_migraphx
Commits
bdddfe27
Commit
bdddfe27
authored
Jun 09, 2023
by
liucong
Browse files
去改部分代码
parent
0ffa7cb7
Pipeline
#333
failed with stages
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
Src/Resnet50/resnet50.cpp
Src/Resnet50/resnet50.cpp
+1
-1
Src/Resnet50/resnet50.h
Src/Resnet50/resnet50.h
+0
-4
No files found.
Src/Resnet50/resnet50.cpp
View file @
bdddfe27
...
@@ -37,7 +37,7 @@ ErrorCode Classifier::Initialize(InitializationParameterOfClassifier initializat
...
@@ -37,7 +37,7 @@ ErrorCode Classifier::Initialize(InitializationParameterOfClassifier initializat
// 获取配置文件参数
// 获取配置文件参数
FileNode
netNode
=
configurationFile
[
"Classifier"
];
FileNode
netNode
=
configurationFile
[
"Classifier"
];
std
::
string
modelPath
=
initializationParameter
.
parentPath
+
(
std
::
string
)
netNode
[
"ModelPath"
];
std
::
string
modelPath
=
(
std
::
string
)
netNode
[
"ModelPath"
];
scale
=
(
float
)
netNode
[
"Scale"
];
scale
=
(
float
)
netNode
[
"Scale"
];
meanValue
.
val
[
0
]
=
(
float
)
netNode
[
"MeanValue1"
];
meanValue
.
val
[
0
]
=
(
float
)
netNode
[
"MeanValue1"
];
meanValue
.
val
[
1
]
=
(
float
)
netNode
[
"MeanValue2"
];
meanValue
.
val
[
1
]
=
(
float
)
netNode
[
"MeanValue2"
];
...
...
Src/Resnet50/resnet50.h
View file @
bdddfe27
...
@@ -20,12 +20,8 @@ public:
...
@@ -20,12 +20,8 @@ public:
ErrorCode
Classify
(
const
std
::
vector
<
cv
::
Mat
>
&
srcImages
,
std
::
vector
<
std
::
vector
<
ResultOfPrediction
>>
&
predictions
);
ErrorCode
Classify
(
const
std
::
vector
<
cv
::
Mat
>
&
srcImages
,
std
::
vector
<
std
::
vector
<
ResultOfPrediction
>>
&
predictions
);
private:
ErrorCode
DoCommonInitialization
(
InitializationParameterOfClassifier
initializationParameterOfClassifier
);
private:
private:
cv
::
FileStorage
configurationFile
;
cv
::
FileStorage
configurationFile
;
InitializationParameterOfClassifier
initializationParameter
;
FILE
*
logFile
;
FILE
*
logFile
;
migraphx
::
program
net
;
migraphx
::
program
net
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment