Thanks for this very important work.
I'm trying train Image Transformer as one layer flow and have a few questions I hope you can help me with.
In section 4 you describe how to make PixelCNN++ and related models (including Image Transformer) into a single-layer autoregressive flows.
Question 1. Is it correct that the modifications to be done for PixelCNN++ and Image Transformer are the same because both use DMOL?
Question 2. The below comment states that the PixelCNN++ is raw copy. If I am to extend Image Transformer, can I also just make a raw copy?
|
# Raw copy of https://github.com/pclucas14/pixel-cnn-pp |
Question 3. It seems to me that the AutoregressiveSubsetFlow2d class does not assume PixelCNN++ and thus may work for ImageTransformer. In principle, if I change the following code to use Image Transformer, should it work?
|
model = AutoregressiveSubsetFlow2d(base_shape = (3,32,32,), |
Thanks for this very important work.
I'm trying train Image Transformer as one layer flow and have a few questions I hope you can help me with.
In section 4 you describe how to make PixelCNN++ and related models (including Image Transformer) into a single-layer autoregressive flows.
Question 1. Is it correct that the modifications to be done for PixelCNN++ and Image Transformer are the same because both use DMOL?
Question 2. The below comment states that the PixelCNN++ is raw copy. If I am to extend Image Transformer, can I also just make a raw copy?
pixelcnn_flow/pixelflow/networks/autoregressive/pixelcnn_pp.py
Line 7 in 9030f6a
Question 3. It seems to me that the AutoregressiveSubsetFlow2d class does not assume PixelCNN++ and thus may work for ImageTransformer. In principle, if I change the following code to use Image Transformer, should it work?
pixelcnn_flow/experiments/train/exact_pixelcnn_pp.py
Line 63 in 9030f6a