Logo
Explore Help
Register Sign In
mirrors/mmsegmentation
1
0
Fork 0
You've already forked mmsegmentation
mirror of https://github.com/open-mmlab/mmsegmentation.git synced 2025-06-03 22:03:48 +08:00
Code Issues Projects Releases Wiki Activity
mmsegmentation/projects/example_project/dummy/dummy_resnet.py

16 lines
451 B
Python
Raw Normal View History

[Projects] Add 'Projects/' folder, and the first example project in 0.x (#2457) ## Motivation Introducing new models and features into OpenMMLab's algorithm libraries has long been complained to be troublesome due to the rigorous requirements on code quality, which could hinder the fast iteration of SOTA models and might discourage potential contributors from sharing their latest outcome here. Ref: https://github.com/open-mmlab/mmsegmentation/pull/2412 ## Modification This PR adds a new `projects/` folder, which will be a place for some experimental models/features. Implementations inside might be not quite perfect but already fine to produce some exciting results. We hope that this PR can help us better embrace the contribution from our community. We also add the first example project to illustrate what we expect a good project to have.
2023-01-09 12:37:33 +08:00
# Copyright (c) OpenMMLab. All rights reserved.
from mmseg.models import BACKBONES
from mmseg.models.backbones import ResNetV1c
@BACKBONES.register_module()
class DummyResNet(ResNetV1c):
"""Implements a dummy ResNet wrapper for demonstration purpose.
Args:
**kwargs: All the arguments are passed to the parent class.
"""
def __init__(self, **kwargs) -> None:
print('Hello world!')
super().__init__(**kwargs)
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 464ms Template: 5ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API