public override void OnInspectorGUI() { DrawDefaultInspector(); GAN gAN = (GAN)target; if (GUILayout.Button("Run GAN")) { gAN.RunGAN(); } }
public void CreateGAN() { gan = new GAN(2, 0, 2, 10, 5, 10, 5, DeviceDescriptor.GPUDevice(0)); trainerGan = new TrainerGAN(gan, LearnerDefs.AdamLearner(lrGenerator), LearnerDefs.AdamLearner(lrDiscriminator), DeviceDescriptor.GPUDevice(0)); trainerGan.usePredictionInTraining = true; }
static void Main(string[] args) { GAN currentGAN = new GAN(); Console.WriteLine("Hello World!"); }