You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: script.js
+15-11Lines changed: 15 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,16 @@
2
2
3
3
// Define settings
4
4
constnumParameters=3;
5
-
constnumLayers=6;
5
+
constnumLayers=10;
6
6
// Size of input and output images in pixels (width and height)
7
-
constimageSize=8;
7
+
constimageSize=32;
8
8
// Number of images to use when training the neural network
9
9
constnumTrainingImages=15;
10
-
constlogData=false;
10
+
constlogData=true;
11
+
constoptimizer={
12
+
"generator": tf.train.adam(0.01),
13
+
"discriminator": tf.train.adam(0.01)
14
+
}
11
15
12
16
// Automatically generated settings and parameters
13
17
// Volume of image data, calculated by squaring imageSize to find the area of the image (total number of pixels) and multiplying by three for each color channel (RGB)
@@ -43,13 +47,13 @@ const generator = {
43
47
// Evaluate the loss function given the output of the autoencoder network and the actual image
0 commit comments