Issue: The function is not returning tensors for some images (based on size). I have two images (one for demonstration and one query image) and I get different number of patches for each image. As a result, a list is returned instead of a tensor from torch.stack function. How do I resolve this?
Log:
AttributeError: 'list' object has no attribute 'to'
Describe the issue
Issue: The function is not returning tensors for some images (based on size). I have two images (one for demonstration and one query image) and I get different number of patches for each image. As a result, a list is returned instead of a tensor from torch.stack function. How do I resolve this?
Log:
AttributeError: 'list' object has no attribute 'to'