Code Monkey home page Code Monkey logo

changes_for_mm's Introduction

Changes for MM

Table of Contents

I. MMDetection

1. Comment off several assertions

Purpose: We can set multi-scale image input in config files.

Comment off the lines in mmdet.datasets.pipelines:

test_time_aug.py

class MultiScaleFlipAug
    def __init__: 
        # assert mmcv.is_list_of(self.img_scale, tuple)

transforms.py

class Resize
    def __init__:
        # assert mmcv.is_list_of(self.img_scale, tuple)
        
    def random_select:
        # assert mmcv.is_list_of(img_scales, tuple)
        
    def random_sample:
        # assert mmcv.is_list_of(img_scales, tuple) and len(img_scales) == 2
        
    def random_sample_ratio:
        # assert isinstance(img_scale, tuple) and len(img_scale) == 2

2. Add xizhe

It mainly contains the self-defined code files.

It is recommended to put it under the mmdet directory.

DataLoader

Everything should be in xizhe.dataloader,

and all the code inside should NOT import anything from mmdet.datasets in canse of mutual import.

If any DataLoader class is self-defined,

mmdet.datasets.builder.py

# comment off the original DataLoader
# from torch.utils.data import DataLoader
# add the new DataLoader
from mmdet.xizhe.dataloader import XDataLoader as DataLoader

Datasets

Everything should be in xizhe.datasets.

If any Dataset class is self-defined,

mmdet.datasets.__init__.py,

# add
from ..xizhe.datasets import *

add the class name into __all__,

.dev_scripts.gather_models.py (.dev_scripts is in the mmdetection root directory)

# add the class name
def get_dataset_name:
  name_map = dict(...add it here...)

Models

Everything should be in xizhe.models.

If any Model class is self-defined,

mmdet.models.__init__.py.

# add
from ..xizhe.models import *

Add utils

It mainly contains the self-defined config files.

MMYOLO

changes_for_mm's People

Contributors

wangxizhe2017 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.