File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
dl4j-examples/src/main/java/org/deeplearning4j/examples/convolution/objectdetection Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1
- /** *****************************************************************************
1
+ /* *****************************************************************************
2
2
* Copyright (c) 2015-2019 Skymind, Inc.
3
3
*
4
4
* This program and the accompanying materials are made available under the
54
54
import java .util .Random ;
55
55
56
56
import org .bytedeco .opencv .opencv_core .*;
57
- import org .bytedeco .opencv .opencv_imgproc .*;
58
57
import static org .bytedeco .opencv .global .opencv_core .*;
59
58
import static org .bytedeco .opencv .global .opencv_imgproc .*;
60
59
@@ -96,7 +95,6 @@ public static void main(String[] args) throws java.lang.Exception {
96
95
int batchSize = 10 ;
97
96
int nEpochs = 20 ;
98
97
double learningRate = 1e-4 ;
99
- double lrMomentum = 0.9 ;
100
98
101
99
int seed = 123 ;
102
100
Random rng = new Random (seed );
@@ -149,8 +147,8 @@ public static void main(String[] args) throws java.lang.Exception {
149
147
//.updater(new Nesterovs.Builder().learningRate(learningRate).momentum(lrMomentum).build())
150
148
.l2 (0.00001 )
151
149
.activation (Activation .IDENTITY )
152
- .trainingWorkspaceMode (WorkspaceMode .SEPARATE )
153
- .inferenceWorkspaceMode (WorkspaceMode .SEPARATE )
150
+ .trainingWorkspaceMode (WorkspaceMode .ENABLED )
151
+ .inferenceWorkspaceMode (WorkspaceMode .ENABLED )
154
152
.build ();
155
153
156
154
model = new TransferLearning .GraphBuilder (pretrained )
You can’t perform that action at this time.
0 commit comments