Skip to content

Commit c96733c

Browse files
committed
HouseNumberDetection.
Signed-off-by: Robert Altena <[email protected]>
1 parent f2d19a4 commit c96733c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

dl4j-examples/src/main/java/org/deeplearning4j/examples/convolution/objectdetection/HouseNumberDetection.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*******************************************************************************
1+
/* *****************************************************************************
22
* Copyright (c) 2015-2019 Skymind, Inc.
33
*
44
* This program and the accompanying materials are made available under the
@@ -54,7 +54,6 @@
5454
import java.util.Random;
5555

5656
import org.bytedeco.opencv.opencv_core.*;
57-
import org.bytedeco.opencv.opencv_imgproc.*;
5857
import static org.bytedeco.opencv.global.opencv_core.*;
5958
import static org.bytedeco.opencv.global.opencv_imgproc.*;
6059

@@ -96,7 +95,6 @@ public static void main(String[] args) throws java.lang.Exception {
9695
int batchSize = 10;
9796
int nEpochs = 20;
9897
double learningRate = 1e-4;
99-
double lrMomentum = 0.9;
10098

10199
int seed = 123;
102100
Random rng = new Random(seed);
@@ -149,8 +147,8 @@ public static void main(String[] args) throws java.lang.Exception {
149147
//.updater(new Nesterovs.Builder().learningRate(learningRate).momentum(lrMomentum).build())
150148
.l2(0.00001)
151149
.activation(Activation.IDENTITY)
152-
.trainingWorkspaceMode(WorkspaceMode.SEPARATE)
153-
.inferenceWorkspaceMode(WorkspaceMode.SEPARATE)
150+
.trainingWorkspaceMode(WorkspaceMode.ENABLED)
151+
.inferenceWorkspaceMode(WorkspaceMode.ENABLED)
154152
.build();
155153

156154
model = new TransferLearning.GraphBuilder(pretrained)

0 commit comments

Comments
 (0)