Skip to content

Grounddino weight downloaded to wrong location on error during init #678

@pawel-kotowski

Description

@pawel-kotowski

Describe the bug

When I have this bug (btw why this happens? it is resolved on system restart):

ERROR Could not load model: CUDA unknown error - this may be due to an incorrectly set up environment, e.g. changing env variable CUDA_VISIBLE_DEVICES after program start. Setting the available devices to be zero.

during grounding dino init, the code decides to redownload the weights as it treats them as corrupted. Then it downloads them to a wrong location:

~/.cache/rai/vision/weights 13s
❯ tree
.
├── groundingdino_swint_ogc.pth
│   └── vision
│       └── weights
│           └── groundingdino_swint_ogc.pth

Platform

  • OS: Ubuntu 22.04
  • ROS 2 Version: Humble
  • Driver Version: 575.64.03 CUDA Version: 12.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions