Skip to content

Extracting features encountered RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu) #97

@pfvaldez

Description

@pfvaldez

Hello thank you for your work.
I would like to ask for assistance, I tried running the extract_features.py

I encountered this error:

File "../d2-net/extract_features.py", line 114, in
keypoints, scores, descriptors = process_multiscale(
File "../Development/d2-net/lib/pyramid.py", line 86, in process_multiscale
fmap_pos = fmap_pos[:, ids]
RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu)

I use pytorch= 1.13.1 in my conda environment and have a GPU recognized as device.
Also, I already tried git pull to make sure the repo was up to date.
But I still encountered this error. Please help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions