Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lanking520 committed Nov 13, 2018
1 parent a087228 commit 33477a2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ private static BufferedImage loadIamgeFromFile(String inputImagePath) {
BufferedImage buf = null;
try {
buf = ImageIO.read(new File(inputImagePath));
} catch (Exception e) {
} catch (IOException e) {
System.err.println(e);
}
return buf;
Expand Down Expand Up @@ -147,7 +147,7 @@ public static void main(String[] args) {
try {
System.out.println("Predict with Float input");
System.out.println(printMaximumClass(result[0], inst.modelPathPrefix));
} catch (Exception e) {
} catch (IOException e) {
System.err.println(e);
}
// predict with NDArray
Expand All @@ -161,7 +161,7 @@ public static void main(String[] args) {
try {
System.out.println("Predict with NDArray");
System.out.println(printMaximumClass(ndResult.get(0).toArray(), inst.modelPathPrefix));
} catch (Exception e) {
} catch (IOException e) {
System.err.println(e);
}
}
Expand Down

0 comments on commit 33477a2

Please sign in to comment.