Cadene / vqa.pytorch

Visual Question Answering in Pytorch
717 stars 178 forks source link

extract.py gives error for COCOImages #10

Closed backpropper closed 7 years ago

backpropper commented 7 years ago

extract.py calls self._raw() (https://github.com/Cadene/vqa.pytorch/blob/f24a006bc1ee5b2a51af169201db9e05219ba967/vqa/datasets/images.py#L63). But since self.split_name is not defined until the parent constructor is complete, it gives an Attribute error. Some suggestions - you can either pass the split_name to the _raw function or define it before calling the parent constructor in COCOImages.

Cadene commented 7 years ago

Thanks for your contribution. If you have enough time, you could send a PR. If not, I will update the code asap.

backpropper commented 7 years ago

Cool I will send in a PR.