Skip to content

The code may have some bugs #10722

Open
Open
@li624120638

Description

@li624120638

mmdet/models/data_preprocessors/data_preprocessor.py
DetDataPreprocessor._get_pad_shape():

elif isinstance(_batch_inputs, torch.Tensor):
    ....
    pad_h = int(np.ceil(_batch_inputs.shape[1] / self.pad_size_divisor)) * self.pad_size_divisor
    pad_w = int( np.ceil(_batch_inputs.shape[2] / self.pad_size_divisor)) * self.pad_size_divisor
    ....

might be

elif isinstance(_batch_inputs, torch.Tensor):
    ....
    pad_h = int(np.ceil(_batch_inputs.shape[2] / self.pad_size_divisor)) * self.pad_size_divisor
    pad_w = int( np.ceil(_batch_inputs.shape[3] / self.pad_size_divisor)) * self.pad_size_divisor
    ....

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions