Skip to content

Issues during the reproduction process #5

Open

Description

@bgnbl

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.

Activity

  1. changed the title [-]Problems encountered during the replication process[/-] [+]Issues during the reproduction process[/+] on Dec 15, 2024
  2. Xinghui-Li commented on Dec 15, 2024

    @Xinghui-Li
    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.

  3. bgnbl commented on Dec 16, 2024

    @bgnbl
    Author
  4. Xinghui-Li commented on Dec 16, 2024

    @Xinghui-Li
    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.

  5. bgnbl commented on Dec 19, 2024

    @bgnbl
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions