Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Standardize batchifying image features #2461

Open
EricMichaelSmith opened this issue Mar 11, 2020 · 4 comments
Open

Standardize batchifying image features #2461

EricMichaelSmith opened this issue Mar 11, 2020 · 4 comments
Labels
donotreap Avoid automatically marking as stale. H2 2020 Help Wanted Small

Comments

@EricMichaelSmith
Copy link
Contributor

Currently, ImageSeq2seqAgent and ImagePolyencoderAgent have two separate .batchify_image_features() methods for preparing image features for encoding. The main advantage of ImagePolyencoderAgent's implementation of this method is that the images are packed into a Tensor for data_parallel. It's worth testing whether ImageSeq2seqAgent really requires a separate .batchify_image_features() method now: if not, it should be removed, and ImagePolyencoderAgent.batchify_image_features() should be moved into TorchImageAgent.

@github-actions
Copy link

github-actions bot commented Jun 2, 2020

This issue has not had activity in 30 days. Marking as stale.

@github-actions github-actions bot closed this as completed Jun 2, 2020
@stephenroller stephenroller reopened this Jun 2, 2020
@stephenroller stephenroller added donotreap Avoid automatically marking as stale. and removed stale-issue labels Jun 2, 2020
@stephenroller
Copy link
Contributor

@EricMichaelSmith this seems done right?

@EricMichaelSmith
Copy link
Contributor Author

@stephenroller Hmm there are still two different .batchify_image_features() methods in ImagePolyencoderAgent and ImageSeq2seqAgent, so as far as I know this is still an open issue. @klshuster may be able to speak more on this because he's been refactoring some of this code recently

@klshuster
Copy link
Contributor

This is still not done, however it seems like it'd be a good change to do

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
donotreap Avoid automatically marking as stale. H2 2020 Help Wanted Small
Projects
None yet
Development

No branches or pull requests

3 participants