资源算法detectron2-helpers

detectron2-helpers

2020-03-05 | |  111 |   0 |   0

detectron2-helpers

Helpers for detectron2

DummyAlbuMapper allows you to use albumentations during fitting detectron2 for detection tasks.

It requires improvements to work with keypoints and masks.

To use custom dataset_mapper you also need to define new class Trainer with modified build_train_loader. Smth like this:

from detectron2.engine import DefaultTrainerclass Trainer(DefaultTrainer):    @classmethod
    def build_train_loader(cls, cfg):
        mapper = DummyAlbuMapper(cfg, is_train=True)        return build_detection_train_loader(cfg, mapper=mapper)


上一篇:detectron-traffic-signs

下一篇:RetinaNet-and-SSD-in-PyTorch-Detectron

用户评价
全部评价

热门资源

  • allennlp-server

    allennlp-server Serve allennlp services as sep...

  • allennlp_extras

    allennlp_extras Some utilities build on top of...

  • qp_testing

    qp_testing mkdir build cd build cmake .. make

  • allennlp-speech

    allennlp-speech

  • allennlp-dureader

    An Apache 2.0 NLP research library, built on Py...