Skip to content

TorchVisionODAdapter does not convert BoxList to array/tensor when using torchvision and pytorch lightning #1768

Answered by AdeelH
aerotractjack asked this question in Q&A
Discussion options

You must be logged in to vote

Option 1 is correct. The model doesn't seem to be the problem here though. It's just that you need to pass in a different collate function to the DataLoaders instead of using the default one. This one:

from rastervision.pytorch_learner.object_detection utils import collate_fn

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@AdeelH
Comment options

@aerotractjack
Comment options

@aerotractjack
Comment options

@aerotractjack
Comment options

@aerotractjack
Comment options

Answer selected by aerotractjack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants