Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
MMCV
Commits
10fa1eea
Unverified
Commit
10fa1eea
authored
Jan 10, 2020
by
Kai Chen
Committed by
GitHub
Jan 10, 2020
Browse files
Add copyright header (#171)
* add copyright header * change # to // for cpp files
parent
da7bb063
Changes
87
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
22 additions
and
1 deletion
+22
-1
LICENSE
LICENSE
+3
-1
mmcv/__init__.py
mmcv/__init__.py
+1
-0
mmcv/arraymisc/__init__.py
mmcv/arraymisc/__init__.py
+1
-0
mmcv/arraymisc/quantization.py
mmcv/arraymisc/quantization.py
+1
-0
mmcv/cnn/__init__.py
mmcv/cnn/__init__.py
+1
-0
mmcv/cnn/alexnet.py
mmcv/cnn/alexnet.py
+1
-0
mmcv/cnn/resnet.py
mmcv/cnn/resnet.py
+1
-0
mmcv/cnn/vgg.py
mmcv/cnn/vgg.py
+1
-0
mmcv/cnn/weight_init.py
mmcv/cnn/weight_init.py
+1
-0
mmcv/fileio/__init__.py
mmcv/fileio/__init__.py
+1
-0
mmcv/fileio/handlers/__init__.py
mmcv/fileio/handlers/__init__.py
+1
-0
mmcv/fileio/handlers/base.py
mmcv/fileio/handlers/base.py
+1
-0
mmcv/fileio/handlers/json_handler.py
mmcv/fileio/handlers/json_handler.py
+1
-0
mmcv/fileio/handlers/pickle_handler.py
mmcv/fileio/handlers/pickle_handler.py
+1
-0
mmcv/fileio/handlers/yaml_handler.py
mmcv/fileio/handlers/yaml_handler.py
+1
-0
mmcv/fileio/io.py
mmcv/fileio/io.py
+1
-0
mmcv/fileio/parse.py
mmcv/fileio/parse.py
+1
-0
mmcv/image/__init__.py
mmcv/image/__init__.py
+1
-0
mmcv/image/io.py
mmcv/image/io.py
+1
-0
mmcv/image/transforms/__init__.py
mmcv/image/transforms/__init__.py
+1
-0
No files found.
LICENSE
View file @
10fa1eea
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.
...
...
mmcv/__init__.py
View file @
10fa1eea
# Copyright (c) Open-MMLab. All rights reserved.
# flake8: noqa
# flake8: noqa
from
.arraymisc
import
*
from
.arraymisc
import
*
from
.fileio
import
*
from
.fileio
import
*
...
...
mmcv/arraymisc/__init__.py
View file @
10fa1eea
# Copyright (c) Open-MMLab. All rights reserved.
from
.quantization
import
dequantize
,
quantize
from
.quantization
import
dequantize
,
quantize
__all__
=
[
'quantize'
,
'dequantize'
]
__all__
=
[
'quantize'
,
'dequantize'
]
mmcv/arraymisc/quantization.py
View file @
10fa1eea
# Copyright (c) Open-MMLab. All rights reserved.
import
numpy
as
np
import
numpy
as
np
...
...
mmcv/cnn/__init__.py
View file @
10fa1eea
# 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
...
...
mmcv/cnn/alexnet.py
View file @
10fa1eea
# Copyright (c) Open-MMLab. All rights reserved.
import
logging
import
logging
import
torch.nn
as
nn
import
torch.nn
as
nn
...
...
mmcv/cnn/resnet.py
View file @
10fa1eea
# Copyright (c) Open-MMLab. All rights reserved.
import
logging
import
logging
import
torch.nn
as
nn
import
torch.nn
as
nn
...
...
mmcv/cnn/vgg.py
View file @
10fa1eea
# Copyright (c) Open-MMLab. All rights reserved.
import
logging
import
logging
import
torch.nn
as
nn
import
torch.nn
as
nn
...
...
mmcv/cnn/weight_init.py
View file @
10fa1eea
# Copyright (c) Open-MMLab. All rights reserved.
import
torch.nn
as
nn
import
torch.nn
as
nn
...
...
mmcv/fileio/__init__.py
View file @
10fa1eea
# 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
...
...
mmcv/fileio/handlers/__init__.py
View file @
10fa1eea
# 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
...
...
mmcv/fileio/handlers/base.py
View file @
10fa1eea
# Copyright (c) Open-MMLab. All rights reserved.
from
abc
import
ABCMeta
,
abstractmethod
from
abc
import
ABCMeta
,
abstractmethod
...
...
mmcv/fileio/handlers/json_handler.py
View file @
10fa1eea
# Copyright (c) Open-MMLab. All rights reserved.
import
json
import
json
from
.base
import
BaseFileHandler
from
.base
import
BaseFileHandler
...
...
mmcv/fileio/handlers/pickle_handler.py
View file @
10fa1eea
# 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
...
...
mmcv/fileio/handlers/yaml_handler.py
View file @
10fa1eea
# Copyright (c) Open-MMLab. All rights reserved.
import
yaml
import
yaml
try
:
try
:
...
...
mmcv/fileio/io.py
View file @
10fa1eea
# 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
...
...
mmcv/fileio/parse.py
View file @
10fa1eea
# 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.
...
...
mmcv/image/__init__.py
View file @
10fa1eea
# 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
,
...
...
mmcv/image/io.py
View file @
10fa1eea
# Copyright (c) Open-MMLab. All rights reserved.
import
os.path
as
osp
import
os.path
as
osp
import
cv2
import
cv2
...
...
mmcv/image/transforms/__init__.py
View file @
10fa1eea
# 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
)
...
...
Prev
1
2
3
4
5
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment