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

Issues during the reproduction process #5

Open
bgnbl opened this issue Dec 13, 2024 · 4 comments
Open

Issues during the reproduction process #5

bgnbl opened this issue Dec 13, 2024 · 4 comments

Comments

@bgnbl
Copy link

bgnbl commented Dec 13, 2024

I encountered an error while running pre_computate-dino_feature. py:ValueError: Unable to create tensor, you should probably activate padding with 'padding=True' to have batched tensors with the same length.I added padding=True in: img=vision-processor (img, return_tensors="pt", padding=True) ["pixel_values"], but it still reported an error.

@bgnbl bgnbl changed the title Problems encountered during the replication process Issues during the reproduction process Dec 15, 2024
@Xinghui-Li
Copy link
Collaborator

Hi,

I am sorry that I have not encountered this problem before. I have googled it and a possible reason could be incompatibility of package. Would you mind trying to follow this post by rolling back numpy to a version earlier than 2.0? and please tell me whether this is working or not afterward.

@bgnbl
Copy link
Author

bgnbl commented Dec 16, 2024 via email

@Xinghui-Li
Copy link
Collaborator

Yes, please check whether your number of GPUs matches the configuration in the bash script. The --num_processes should match the number of GPUs.

@bgnbl
Copy link
Author

bgnbl commented Dec 19, 2024 via email

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