Skip to content

TypeError: cannot pickle 'dict_keys' object when distributed training #1155

@Tonny24Wang

Description

@Tonny24Wang

there is a subtle bug in
https://github.com/nutonomy/nuscenes-devkit/blame/master/python-sdk/nuscenes/eval/detection/data_classes.py:39
self.class_names = self.class_range.keys()
when this line is pickled for pytorch distributed training , it will cause TypeError: cannot pickle 'dict_keys' object.
so it is necessary to change it to self.class_names = list(self.class_range.keys()) .

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