ssd.pytorch icon indicating copy to clipboard operation
ssd.pytorch copied to clipboard

setting an array element with a sequence.

Open BlankOtis opened this issue 3 years ago • 4 comments

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.

BlankOtis avatar Mar 31 '23 12:03 BlankOtis

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

liansekongyk avatar May 16 '23 12:05 liansekongyk

what your cuda vision?

liansekongyk avatar May 16 '23 12:05 liansekongyk

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

sonukiller avatar Jul 07 '23 15:07 sonukiller