void InitializePix2Pix() { var filePath = System.IO.Path.Combine(Application.streamingAssetsPath, _weightFileName); _weightTable = Pix2Pix.WeightReader.ReadFromFile(filePath); _generator = new Pix2Pix.Generator(_weightTable); }
void InitializePix2Pix() { _sourceTensor = new Pix2Pix.Tensor(new Pix2Pix.Shape(256, 256, 3)); _resultTensor = new Pix2Pix.Tensor(new Pix2Pix.Shape(256, 256, 3)); var filePath = System.IO.Path.Combine(Application.streamingAssetsPath, _weightFileName); _weightTable = Pix2Pix.WeightReader.ReadFromFile(filePath); _generator = new Pix2Pix.Generator(_weightTable); }
void InitializePix2Pix() { Debug.Log("init"); var filePath = System.IO.Path.Combine(Application.streamingAssetsPath, _weightFileName); if (_weightTable == null) { _weightTable = Pix2Pix.WeightReader.ReadFromFile(filePath); } if (_generator == null) { _generator = new Pix2Pix.Generator(_weightTable); } isInitialized = true; }