Unverified Commit 10fa1eea authored by Kai Chen's avatar Kai Chen Committed by GitHub
Browse files

Add copyright header (#171)

* add copyright header

* change # to // for cpp files
parent da7bb063
Copyright (c) Open-MMLab. All rights reserved.
Apache License Apache License
Version 2.0, January 2004 Version 2.0, January 2004
http://www.apache.org/licenses/ http://www.apache.org/licenses/
...@@ -186,7 +188,7 @@ ...@@ -186,7 +188,7 @@
same "printed page" as the copyright notice for easier same "printed page" as the copyright notice for easier
identification within third-party archives. identification within third-party archives.
Copyright [yyyy] [name of copyright owner] Copyright 2018-2020 Open-MMLab. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
......
# Copyright (c) Open-MMLab. All rights reserved.
# flake8: noqa # flake8: noqa
from .arraymisc import * from .arraymisc import *
from .fileio import * from .fileio import *
......
# Copyright (c) Open-MMLab. All rights reserved.
from .quantization import dequantize, quantize from .quantization import dequantize, quantize
__all__ = ['quantize', 'dequantize'] __all__ = ['quantize', 'dequantize']
# Copyright (c) Open-MMLab. All rights reserved.
import numpy as np import numpy as np
......
# Copyright (c) Open-MMLab. All rights reserved.
from .alexnet import AlexNet from .alexnet import AlexNet
from .resnet import ResNet, make_res_layer from .resnet import ResNet, make_res_layer
from .vgg import VGG, make_vgg_layer from .vgg import VGG, make_vgg_layer
......
# Copyright (c) Open-MMLab. All rights reserved.
import logging import logging
import torch.nn as nn import torch.nn as nn
......
# Copyright (c) Open-MMLab. All rights reserved.
import logging import logging
import torch.nn as nn import torch.nn as nn
......
# Copyright (c) Open-MMLab. All rights reserved.
import logging import logging
import torch.nn as nn import torch.nn as nn
......
# Copyright (c) Open-MMLab. All rights reserved.
import torch.nn as nn import torch.nn as nn
......
# Copyright (c) Open-MMLab. All rights reserved.
from .handlers import BaseFileHandler, JsonHandler, PickleHandler, YamlHandler from .handlers import BaseFileHandler, JsonHandler, PickleHandler, YamlHandler
from .io import dump, load, register_handler from .io import dump, load, register_handler
from .parse import dict_from_file, list_from_file from .parse import dict_from_file, list_from_file
......
# Copyright (c) Open-MMLab. All rights reserved.
from .base import BaseFileHandler from .base import BaseFileHandler
from .json_handler import JsonHandler from .json_handler import JsonHandler
from .pickle_handler import PickleHandler from .pickle_handler import PickleHandler
......
# Copyright (c) Open-MMLab. All rights reserved.
from abc import ABCMeta, abstractmethod from abc import ABCMeta, abstractmethod
......
# Copyright (c) Open-MMLab. All rights reserved.
import json import json
from .base import BaseFileHandler from .base import BaseFileHandler
......
# Copyright (c) Open-MMLab. All rights reserved.
from six.moves import cPickle as pickle from six.moves import cPickle as pickle
from .base import BaseFileHandler from .base import BaseFileHandler
......
# Copyright (c) Open-MMLab. All rights reserved.
import yaml import yaml
try: try:
......
# Copyright (c) Open-MMLab. All rights reserved.
from pathlib import Path from pathlib import Path
from ..utils import is_list_of, is_str from ..utils import is_list_of, is_str
......
# Copyright (c) Open-MMLab. All rights reserved.
def list_from_file(filename, prefix='', offset=0, max_num=0): def list_from_file(filename, prefix='', offset=0, max_num=0):
"""Load a text file and parse the content as a list of strings. """Load a text file and parse the content as a list of strings.
......
# Copyright (c) Open-MMLab. All rights reserved.
from .io import imfrombytes, imread, imwrite from .io import imfrombytes, imread, imwrite
from .transforms import (bgr2gray, bgr2hls, bgr2hsv, bgr2rgb, gray2bgr, from .transforms import (bgr2gray, bgr2hls, bgr2hsv, bgr2rgb, gray2bgr,
gray2rgb, hls2bgr, hsv2bgr, imcrop, imdenormalize, gray2rgb, hls2bgr, hsv2bgr, imcrop, imdenormalize,
......
# Copyright (c) Open-MMLab. All rights reserved.
import os.path as osp import os.path as osp
import cv2 import cv2
......
# Copyright (c) Open-MMLab. All rights reserved.
from .colorspace import (bgr2gray, bgr2hls, bgr2hsv, bgr2rgb, gray2bgr, from .colorspace import (bgr2gray, bgr2hls, bgr2hsv, bgr2rgb, gray2bgr,
gray2rgb, hls2bgr, hsv2bgr, iminvert, posterize, gray2rgb, hls2bgr, hsv2bgr, iminvert, posterize,
rgb2bgr, rgb2gray, solarize) rgb2bgr, rgb2gray, solarize)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment