Imported from https://github.com/zcyang/imageqa-san