I started with this example: https://github.com/wmeddie/dl4j-gans/tree/master/src/main/java/io/skymind/example
I updated it to instead of using MNIST 28X28 grayscale it uses 100X100 RGB 3 channel images.
Flow:
- Get data set iterator for real images
- create the 3 models: Gen, Dis, Gan
- iterate over training data
- Create INDArray of real and fake and merge them
- I verified that the real and fake both have the shape: [130,3,100,100]
- Call fit() on the discriminator
inside the fit implementation for the discriminator I get a silent error/application crash:
Class:MultiLayerNetwork.class Function: fitHelper(INDArray features, INDArray labels, INDArray featuresMask, INDArray labelsMask) Line 2357: solver.optimize(workspaceMgr);
Tess4j: 5.8.0 deeplearning4j-core: 1.0.0-M2.1 dl4j-spark_2.12: 1.0.0-M2.1 nd4j-native-platform: 1.0.0-M2.1 deeplearning4j-nn: 1.0.0-M2.1
Thanks.
I didn't notice CPU/GPU/SSD/RAM near any limits.