sahajgarg / image_transformer Goto Github PK
View Code? Open in Web Editor NEWPytorch implementation of the image transformer for unconditional image generation
Pytorch implementation of the image transformer for unconditional image generation
Hi, Sahaj. Maybe a dumb question. Can I know how the masked attention weigtht is implemented in your script?
Hi there, I essentially have the same problem as this issue. Would you mind clarifying how masking is implemented?
I want to modify masking so that I may get inference to work in a different order.
Very nice job, the code is very nice!
Context. Autoregressive models (including Image Transformer) can be viewed as a one layer normalizing flow as described in this article Section 4. The article contains code which trains PixelCNN as a flow. I am trying to do the same for Image Transformer by using your implementation.
Question 1. PixelCNN generates in raster scan order. Does your Pixel Transformer implementation also use raster scan order?
image_transformer/image_transformer.py
Line 208 in d33b8d0
Hi,
Thanks for sharing your codes. But it seems there are two problems with your code. Please ignore it if I am wrong.
It seems you forget to add position embedding to the input representations. Maybe your add_timing_signal finish this job, but I am not sure. By the way, what is add_timing_signal function for?
In your training code, you forget to generate a mask to mask off the pixels that have not been generated. It means the previous pixel can get the information of the next pixel.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.