Skip to content

RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu) #9

@ghost

Description

Hello @mkang315 , I was trying to use this code base for my project. When I use the train script I get the following error:

File "/teamspace/studios/this_studio/CST-YOLO/utils/loss.py", line 759, in build_targets
    from_which_layer = from_which_layer[fg_mask_inboxes]
RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu)

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