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] TypeError: can't convert np.ndarray of type numpy.object_ #8

Open
HankKung opened this issue Jul 11, 2023 · 3 comments
Open

[bug] TypeError: can't convert np.ndarray of type numpy.object_ #8

HankKung opened this issue Jul 11, 2023 · 3 comments

Comments

@HankKung
Copy link

Hi I'm encountering the following error when training vip3d with exactly the same scripts and configs:

File "/media/user/data/ViP3D/plugin/vip3d/models/attention_dert3d.py", line 440, in feature_sampling
lidar2img = reference_points.new_tensor(lidar2img) # (B, N, 4, 4)
TypeError: can't convert np.ndarray of type numpy.object_. The only supported types are: float64, float32, float16, complex64, complex128, int64, int32, int16, int8, uint8, and bool.

Does anyone have idea how to fix this bug?

Many thanks!!!

@GentleSmile
Copy link
Member

Have you modified the batch_size or something else?

@HankKung
Copy link
Author

My bad I modified the fix_feats=True, samples_per_gpu=2 in /vip3d_resnet50_3frame.py
I run it with 4 GPUs and the batch_size remains 8:
bash tools/dist_train.sh plugin/vip3d/configs/vip3d_resnet50_3frame.py 4 --work-dir=vip3d_resnet50_3frame.1

@GentleSmile
Copy link
Member

For larger batch_size, you can refer to this issue.

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

2 participants