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.
from time import time from time import time
......
# Copyright (c) Open-MMLab. All rights reserved.
__version__ = '0.2.15' __version__ = '0.2.15'
# Copyright (c) Open-MMLab. All rights reserved.
from .io import Cache, VideoReader, frames2video from .io import Cache, VideoReader, frames2video
from .optflow import (dequantize_flow, flow_warp, flowread, flowwrite, from .optflow import (dequantize_flow, flow_warp, flowread, flowwrite,
quantize_flow) quantize_flow)
......
# Copyright (c) Open-MMLab. All rights reserved.
import os.path as osp import os.path as osp
from collections import OrderedDict from collections import OrderedDict
......
# Copyright (c) Open-MMLab. All rights reserved.
import numpy as np import numpy as np
from mmcv._ext import flow_warp_c from mmcv._ext import flow_warp_c
......
# Copyright (c) Open-MMLab. All rights reserved.
// Copyright (c) Open-MMLab. All rights reserved.
#include "flow_warp.hpp" #include "flow_warp.hpp"
void FlowWarp(double* img, double* flow, double* out, const int height, void FlowWarp(double* img, double* flow, double* out, const int height,
......
// Copyright (c) Open-MMLab. All rights reserved.
#include <math.h> #include <math.h>
#include <string.h> #include <string.h>
......
# Copyright (c) Open-MMLab. All rights reserved.
STUFF = "Hi" STUFF = "Hi"
import numpy as np import numpy as np
......
# Copyright (c) Open-MMLab. All rights reserved.
import os import os
import os.path as osp import os.path as osp
import subprocess import subprocess
......
# Copyright (c) Open-MMLab. All rights reserved.
from .color import Color, color_val from .color import Color, color_val
from .image import imshow, imshow_bboxes, imshow_det_bboxes from .image import imshow, imshow_bboxes, imshow_det_bboxes
from .optflow import flow2rgb, flowshow, make_color_wheel from .optflow import flow2rgb, flowshow, make_color_wheel
......
# Copyright (c) Open-MMLab. All rights reserved.
from enum import Enum from enum import Enum
import numpy as np import numpy as np
......
# Copyright (c) Open-MMLab. All rights reserved.
import cv2 import cv2
import numpy as np import numpy as np
......
# Copyright (c) Open-MMLab. All rights reserved.
from __future__ import division from __future__ import division
import numpy as np import numpy as np
......
...@@ -17,6 +17,6 @@ line_length = 79 ...@@ -17,6 +17,6 @@ line_length = 79
multi_line_output = 0 multi_line_output = 0
known_standard_library = pkg_resources,setuptools known_standard_library = pkg_resources,setuptools
known_first_party = mmcv known_first_party = mmcv
known_third_party = Cython,addict,cv2,mock,numpy,pytest,requests,resnet_cifar,six,terminaltables,torch,torchvision,yaml known_third_party = Cython,addict,cv2,mock,numpy,pytest,requests,resnet_cifar,six,torch,torchvision,yaml
no_lines_before = STDLIB,LOCALFOLDER no_lines_before = STDLIB,LOCALFOLDER
default_section = THIRDPARTY default_section = THIRDPARTY
# Copyright (c) Open-MMLab. All rights reserved.
from __future__ import division from __future__ import division
import numpy as np import numpy as np
......
# Copyright (c) Open-MMLab. All rights reserved.
import os.path as osp import os.path as osp
import pytest import pytest
......
# Copyright (c) Open-MMLab. All rights reserved.
import os import os
import os.path as osp import os.path as osp
import tempfile import tempfile
......
# Copyright (c) Open-MMLab. All rights reserved.
import os import os
import os.path as osp import os.path as osp
import tempfile import tempfile
......
# Copyright (c) Open-MMLab. All rights reserved.
import pytest import pytest
import mmcv import mmcv
......
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