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
+9-10Lines changed: 9 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -7,16 +7,16 @@ const numParameters = 1;
7
7
constimageSize=32;
8
8
// Number of images to use when training the neural network
9
9
constnumTrainingImages=15;
10
-
constlogData=true;
10
+
constlogData=false;
11
11
constoptimizer={
12
-
"generator": tf.train.adam(0.01),
13
-
"discriminator": tf.train.adam(0.01)
12
+
"generator": tf.train.adam(0.0001),
13
+
"discriminator": tf.train.sgd(0.0001)
14
14
}
15
15
16
16
// Automatically generated settings and parameters
17
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)
18
18
constimageVolume=(imageSize**2)*1;
19
-
constnumLayers=8;
19
+
constnumLayers=10;
20
20
// Get information for canvas
21
21
constcanvas=document.getElementById("canvas");
22
22
// Get context for canvas
@@ -46,7 +46,7 @@ const generator = {
46
46
// Do we need these tidys?
47
47
()=>{
48
48
// Evaluate the loss function given the output of the autoencoder network and the actual image
0 commit comments