Skip to content

A question about inserting the module into yolov5 #22

Description

@iangiu

Hi, I have read the impressive paper, and i try to insert the module into some tasks of object detection. Concretely, i modified the dataset module and the calculation loss module in yolov5. As following:

from utils.infobatch import InfoBatch 
info_dataset = InfoBatch(dataset, 0.5, 100, 0.875)
dataloader = loader(info_dataset,
                    batch_size=batch_size,
                    num_workers=nw,
                    sampler=info_dataset.pruning_sampler(),
                    pin_memory=True,
                    )
info_dataset.__setscore__(indice.detach().cpu().numpy().astype(int), loss.detach().cpu().numpy())

During the training process, I encountered a severe loss of mAP metric under the same epoch setting and default hyperparameter conditions. By the way, I pruned at the image level, not the target level. I do not know how to optimize or improve, I hope the author can give me some advice. Thanks a lot.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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