MCPcopy Create free account
hub / github.com/tensorflow/tfjs-examples / run

Function run

fashion-mnist-vae/train.js:136–151  ·  view source on GitHub ↗
(savePath, logDir)

Source from the content-addressed store, hash-verified

134 }
135
136 async function run(savePath, logDir) {
137 // Load the data
138 const dataPath = path.join(DATASET_PATH, TRAIN_IMAGES_FILE);
139 const images = await loadImages(dataPath);
140 console.log('Data Loaded', images.length);
141 await previewImage(images[5]);
142 await previewImage(images[50]);
143 await previewImage(images[500]);
144 // Start the training.
145 const vaeOpts = {
146 originalDim: IMAGE_FLAT_SIZE,
147 intermediateDim: INTERMEDIATE_DIM,
148 latentDim: LATENT_DIM
149 };
150 await train(images, vaeOpts, savePath, logDir);
151 }
152
153 (async function() {
154 const parser = new argparse.ArgumentParser();

Callers 1

train.jsFile · 0.70

Calls 3

previewImageFunction · 0.85
loadImagesFunction · 0.70
trainFunction · 0.70

Tested by

no test coverage detected