Example #1
0
    void InitializePix2Pix()
    {
        var filePath = System.IO.Path.Combine(Application.streamingAssetsPath, _weightFileName);

        _weightTable  = Pix2Pix.WeightReader.ReadFromFile(filePath);
        _sourceTensor = new Pix2Pix.Tensor(new[] { 256, 256, 3 });
        _resultTensor = new Pix2Pix.Tensor(new[] { 256, 256, 3 });
    }