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

setting an array element with a sequence. #586

Open
BlankOtis opened this issue Mar 31, 2023 · 4 comments
Open

setting an array element with a sequence. #586

BlankOtis opened this issue Mar 31, 2023 · 4 comments

Comments

@BlankOtis
Copy link

how to solve this problem?
setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (6,) + inhomogeneous part.

@jingchengQF
Copy link

I also have this question
I change the file path and the train.py(RuntimeError: Expected a 'cuda' device type for generator but found 'cpu')

data_loader = data.DataLoader(dataset, args.batch_size,

#                               num_workers=args.num_workers,
#                               shuffle=True, collate_fn=detection_collate,   
#                               pin_memory=True)
data_loader = data.DataLoader(dataset, args.batch_size,
                              num_workers=args.num_workers,
                              shuffle=True, collate_fn=detection_collate,
                              pin_memory=True, generator=torch.Generator(device='cuda'))

I think there is no parameter changed

@jingchengQF
Copy link

what your cuda vision?

@sonukiller
Copy link

Downgrading numpy solved the issue for me
pip install numpy==1.21.6

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

4 participants
@sonukiller @jingchengQF @BlankOtis and others