Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: mosaic_prob is no 1 or 0, AttributeError: 'int' object has no attribute 'numel' #1749

Open
OceanWong1991 opened this issue Dec 29, 2023 · 0 comments

Comments

@OceanWong1991
Copy link

Hi, @FateScript, recently, when I test the Yolox, I find when you set 0<mosaic_prob<1, we may have this bug:

numel = sum(x.numel() for x in batch)
AttributeError: 'int' object has no attribute 'numel'

I debug it find that:
image
image

When we ConcatDataset, The data type should be same, So I think we should just return idx, because when I read the source code the img_id is totally same with idx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant